diff --git a/app/.vitepress/public/img/home/carouse/img-list1.png b/app/.vitepress/public/img/home/carouse/img-list1.png new file mode 100644 index 0000000000000000000000000000000000000000..8c7550e8927c98516a9b03f022e837225b4c08ad Binary files /dev/null and b/app/.vitepress/public/img/home/carouse/img-list1.png differ diff --git a/app/.vitepress/public/img/home/carouse/img-list2.png b/app/.vitepress/public/img/home/carouse/img-list2.png new file mode 100644 index 0000000000000000000000000000000000000000..0803822bcef2710d92fff9b06e970cd8b0b1253d Binary files /dev/null and b/app/.vitepress/public/img/home/carouse/img-list2.png differ diff --git a/app/.vitepress/public/img/home/carouse/img-list3.png b/app/.vitepress/public/img/home/carouse/img-list3.png new file mode 100644 index 0000000000000000000000000000000000000000..28b211a5f45f53ee054a220c00a0d7a0b06103d7 Binary files /dev/null and b/app/.vitepress/public/img/home/carouse/img-list3.png differ diff --git a/app/.vitepress/public/img/home/carouse/list-img1.png b/app/.vitepress/public/img/home/carouse/list-img1.png deleted file mode 100644 index 1c15573bd7511ed0057a36aab397aed1b29331cf..0000000000000000000000000000000000000000 Binary files a/app/.vitepress/public/img/home/carouse/list-img1.png and /dev/null differ diff --git a/app/.vitepress/public/img/home/case/education-active.svg b/app/.vitepress/public/img/home/case/education-active.svg new file mode 100644 index 0000000000000000000000000000000000000000..d6b475af256513f3f22ece705728fdd28f766f8c --- /dev/null +++ b/app/.vitepress/public/img/home/case/education-active.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/app/.vitepress/public/img/home/case/energy-active.svg b/app/.vitepress/public/img/home/case/energy-active.svg new file mode 100644 index 0000000000000000000000000000000000000000..b6a44f3a3b97e43a197916f56d45e3188bae16dd --- /dev/null +++ b/app/.vitepress/public/img/home/case/energy-active.svg @@ -0,0 +1,16 @@ + + + + + + + + + + + + + + + + diff --git a/app/.vitepress/public/img/home/case/finance-active.svg b/app/.vitepress/public/img/home/case/finance-active.svg new file mode 100644 index 0000000000000000000000000000000000000000..14345d01eb1c911d6cff5a8d6302a194982b2c4e --- /dev/null +++ b/app/.vitepress/public/img/home/case/finance-active.svg @@ -0,0 +1,13 @@ + + + 插画/light/选中/三级插画/12 + + + + + + + + + + \ No newline at end of file diff --git a/app/.vitepress/public/img/home/case/finance.svg b/app/.vitepress/public/img/home/case/finance.svg index a14e408977ee9d6bdb31e26fa81165ed36417531..650043f172618595efa756130465b9877b0883a6 100644 --- a/app/.vitepress/public/img/home/case/finance.svg +++ b/app/.vitepress/public/img/home/case/finance.svg @@ -1,12 +1,12 @@ - - - - - - - - - - - - + + + 插画/light/未选中/三级插画/12 + + + + + + + + + \ No newline at end of file diff --git a/app/.vitepress/public/img/home/case/government-active.svg b/app/.vitepress/public/img/home/case/government-active.svg new file mode 100644 index 0000000000000000000000000000000000000000..b14b852afd262e277aba62c621a35ab8f2a69c30 --- /dev/null +++ b/app/.vitepress/public/img/home/case/government-active.svg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/app/.vitepress/public/img/home/case/logistics-active.svg b/app/.vitepress/public/img/home/case/logistics-active.svg new file mode 100644 index 0000000000000000000000000000000000000000..27c0814c79aa3021f86e999285de24ab9486400a --- /dev/null +++ b/app/.vitepress/public/img/home/case/logistics-active.svg @@ -0,0 +1,22 @@ + + + + + + + + + + + + + + + + + + + + + + diff --git a/app/.vitepress/public/img/home/case/operator-active.svg b/app/.vitepress/public/img/home/case/operator-active.svg new file mode 100644 index 0000000000000000000000000000000000000000..53047810b6e59fe7db3c2246df09291b1264e62d --- /dev/null +++ b/app/.vitepress/public/img/home/case/operator-active.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/app/.vitepress/public/img/home/case/spaceflight-active.svg b/app/.vitepress/public/img/home/case/spaceflight-active.svg new file mode 100644 index 0000000000000000000000000000000000000000..13d15955192bd723ad143648fd343faed4db3475 --- /dev/null +++ b/app/.vitepress/public/img/home/case/spaceflight-active.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/app/.vitepress/public/img/home/dark/case/education.svg b/app/.vitepress/public/img/home/dark/case/education.svg index b7c2ff7fa20731f6ce10a511e348097820df455f..f3edcf0a002329360e57ff0d1b95e3855ac33393 100644 --- a/app/.vitepress/public/img/home/dark/case/education.svg +++ b/app/.vitepress/public/img/home/dark/case/education.svg @@ -1,16 +1,10 @@ - - - 切片 - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + diff --git a/app/.vitepress/public/img/home/dark/case/energy.svg b/app/.vitepress/public/img/home/dark/case/energy.svg index f69be8d762963c8c1b86ccde62a0fcda350ea216..f696b14fbde70520a1562e41a26f65296ba949e4 100644 --- a/app/.vitepress/public/img/home/dark/case/energy.svg +++ b/app/.vitepress/public/img/home/dark/case/energy.svg @@ -1,53 +1,15 @@ - - - 切片 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + diff --git a/app/.vitepress/public/img/home/dark/case/government.svg b/app/.vitepress/public/img/home/dark/case/government.svg index 5da1e8d40a10dfed80f7866bc844af4c416f2bed..604a98af601055fd25bb5d21112d61f5124b2e60 100644 --- a/app/.vitepress/public/img/home/dark/case/government.svg +++ b/app/.vitepress/public/img/home/dark/case/government.svg @@ -1,15 +1,9 @@ - - - 切片 - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + diff --git a/app/.vitepress/public/img/home/dark/case/logistics.svg b/app/.vitepress/public/img/home/dark/case/logistics.svg index c7ee55a7d671634cd45e6841dacf3de2c0f4bcf5..8bdd46c95e8f090e52fad2a787c449d36eaf0f80 100644 --- a/app/.vitepress/public/img/home/dark/case/logistics.svg +++ b/app/.vitepress/public/img/home/dark/case/logistics.svg @@ -1,73 +1,21 @@ - - - 切片 - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + + + + + + diff --git a/app/.vitepress/public/img/home/dark/case/operator.svg b/app/.vitepress/public/img/home/dark/case/operator.svg index 32bed1f833573f80fba419d17792fa1b96c19d87..f34193b9a17875566ab05f50ca7b9dfa7d862465 100644 --- a/app/.vitepress/public/img/home/dark/case/operator.svg +++ b/app/.vitepress/public/img/home/dark/case/operator.svg @@ -1,17 +1,11 @@ - - - 切片 - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + diff --git a/app/.vitepress/public/img/home/dark/case/spaceflight.svg b/app/.vitepress/public/img/home/dark/case/spaceflight.svg index c8cd3eba0ef81793cb51d50c127da71b5efe7675..1172191da7548a171604a53e41a568e526f277b0 100644 --- a/app/.vitepress/public/img/home/dark/case/spaceflight.svg +++ b/app/.vitepress/public/img/home/dark/case/spaceflight.svg @@ -1,17 +1,11 @@ - - - 切片 - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + diff --git a/app/.vitepress/public/img/home/dark/round/contributer.svg b/app/.vitepress/public/img/home/dark/round/contributer.svg index 8c2b7144ef3d551f6ee616901ca156ac5f07ab53..6fdbad1830b7c420159b0846773037e3e7258209 100644 --- a/app/.vitepress/public/img/home/dark/round/contributer.svg +++ b/app/.vitepress/public/img/home/dark/round/contributer.svg @@ -1,20 +1,10 @@ - - - 切片 - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + diff --git a/app/.vitepress/public/img/home/dark/round/osv.svg b/app/.vitepress/public/img/home/dark/round/osv.svg index ed46061b510442e26d1bfc7f97a0eca0f8e74f7b..aba7115d170231c2514cdaeff1382b4298a0b7e3 100644 --- a/app/.vitepress/public/img/home/dark/round/osv.svg +++ b/app/.vitepress/public/img/home/dark/round/osv.svg @@ -1,26 +1,14 @@ - - - 切片 - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + diff --git a/app/.vitepress/public/img/home/dark/round/sig.svg b/app/.vitepress/public/img/home/dark/round/sig.svg index 202e083cb99cadb2f1afecf448a898508e39dcc7..ae75edd0b963aab54c670b87a42c921b07c2404a 100644 --- a/app/.vitepress/public/img/home/dark/round/sig.svg +++ b/app/.vitepress/public/img/home/dark/round/sig.svg @@ -1,22 +1,14 @@ - - - 切片 - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + diff --git a/app/.vitepress/public/img/home/dark/round/software.svg b/app/.vitepress/public/img/home/dark/round/software.svg index 93a76ae4450d689c8537b39a197727c804010824..52a623000c21dfc15dc7004897bc969e34aae88c 100644 --- a/app/.vitepress/public/img/home/dark/round/software.svg +++ b/app/.vitepress/public/img/home/dark/round/software.svg @@ -1,26 +1,16 @@ - - - 切片 - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + + + + + + + + + diff --git a/app/.vitepress/public/img/home/dark/round/user.svg b/app/.vitepress/public/img/home/dark/round/user.svg index cf38ab2e4e946a82228b596a1fca85f3dc22d446..87c683b76e512b273dae0a5210de33650fc74df6 100644 --- a/app/.vitepress/public/img/home/dark/round/user.svg +++ b/app/.vitepress/public/img/home/dark/round/user.svg @@ -1,18 +1,8 @@ - - - 切片 - - - - - - - - - - - - - - - \ No newline at end of file + + + + + + + + diff --git a/app/.vitepress/public/img/other/brand/Style.png b/app/.vitepress/public/img/other/brand/Style.png deleted file mode 100644 index d24c88882af2800b75e5b16f577238afce3c3c77..0000000000000000000000000000000000000000 Binary files a/app/.vitepress/public/img/other/brand/Style.png and /dev/null differ diff --git a/app/.vitepress/public/img/other/brand/brand-mobile-1.png b/app/.vitepress/public/img/other/brand/brand-mobile-1.png new file mode 100644 index 0000000000000000000000000000000000000000..c955c572e8fd1bb6d472561249148743a3335443 Binary files /dev/null and b/app/.vitepress/public/img/other/brand/brand-mobile-1.png differ diff --git a/app/.vitepress/public/img/other/brand/brand-mobile-2.png b/app/.vitepress/public/img/other/brand/brand-mobile-2.png new file mode 100644 index 0000000000000000000000000000000000000000..3202cfccaf4d6e8e6e2541e6ac22fcef302bb873 Binary files /dev/null and b/app/.vitepress/public/img/other/brand/brand-mobile-2.png differ diff --git a/app/.vitepress/public/img/other/brand/brand-mobile-3.png b/app/.vitepress/public/img/other/brand/brand-mobile-3.png new file mode 100644 index 0000000000000000000000000000000000000000..a597d3149d119f1e0b98ac0fcafc752099fbd64e Binary files /dev/null and b/app/.vitepress/public/img/other/brand/brand-mobile-3.png differ diff --git a/app/.vitepress/public/img/other/brand/brand-mobile-4.png b/app/.vitepress/public/img/other/brand/brand-mobile-4.png new file mode 100644 index 0000000000000000000000000000000000000000..e277ad3ab314893509b9fc542250a78324af41a4 Binary files /dev/null and b/app/.vitepress/public/img/other/brand/brand-mobile-4.png differ diff --git a/app/.vitepress/public/img/other/brand/brand-mobile-5.png b/app/.vitepress/public/img/other/brand/brand-mobile-5.png new file mode 100644 index 0000000000000000000000000000000000000000..3757fde6c694215916af5c1091a1faae9844bf8d Binary files /dev/null and b/app/.vitepress/public/img/other/brand/brand-mobile-5.png differ diff --git a/app/.vitepress/public/img/other/brand/brand-mobile-6.png b/app/.vitepress/public/img/other/brand/brand-mobile-6.png new file mode 100644 index 0000000000000000000000000000000000000000..948a3ea42aed3566010a2d08d57f9dae40600965 Binary files /dev/null and b/app/.vitepress/public/img/other/brand/brand-mobile-6.png differ diff --git a/app/.vitepress/src/api/api-mirror.ts b/app/.vitepress/src/api/api-mirror.ts index 340b7dd63b3431995016463640e2a8ece52b4897..16720f0eb1b5c6d5188502014c10bef5f5661502 100644 --- a/app/.vitepress/src/api/api-mirror.ts +++ b/app/.vitepress/src/api/api-mirror.ts @@ -12,3 +12,15 @@ export function getAllMirror() { const url = '/api/mirrors/?mirrorstats=true'; return request.get(url).then((res: AxiosResponse) => res.data); } + +/** + * 调用接口获取优选镜像列表 + * @name getAllMirror + * @param {string} version 镜像版本 + * @return {Array} 镜像列表 + */ + +export const selectMirror = (version: string) => { + const url = `/api/mirrors/openEuler-${version}/ISO/`; + return request.get(url).then((res: AxiosResponse) => res.data); +}; diff --git a/app/.vitepress/src/assets/illustrations/brand.png b/app/.vitepress/src/assets/illustrations/brand.png new file mode 100644 index 0000000000000000000000000000000000000000..a079c3f7df3243d2d71c10bfb7ff474c7b1b207a Binary files /dev/null and b/app/.vitepress/src/assets/illustrations/brand.png differ diff --git a/app/.vitepress/src/i18n/home/home-zh.ts b/app/.vitepress/src/i18n/home/home-zh.ts index 9f586607e414355f3979b921b2a6c5636fc24277..87530a3f32f10188abf63e3dd48ab4c246bf0788 100644 --- a/app/.vitepress/src/i18n/home/home-zh.ts +++ b/app/.vitepress/src/i18n/home/home-zh.ts @@ -5,19 +5,19 @@ export default { LIST: [ { TITLE: '覆盖全场景应用', - IMG_URL: '/img/home/carouse/list-img1.png', + IMG_URL: '/img/home/carouse/img-list1.png', }, { TITLE: '支持多样性计算', - IMG_URL: '/img/home/carouse/list-img1.png', + IMG_URL: '/img/home/carouse/img-list2.png', }, { TITLE: '全产业生态共建', - IMG_URL: '/img/home/carouse/list-img1.png', + IMG_URL: '/img/home/carouse/img-list3.png', }, { TITLE: '开源 开放 创新', - IMG_URL: '/img/home/carouse/list-img1.png', + IMG_URL: '/img/home/carouse/img-list4.png', }, ], }, @@ -69,11 +69,13 @@ export default { USER_CASE: { TITLE: '用户案例', VIEW_MORE: '查看更多', + VIEW_MORE_URL: '', CASE_LIST: [ { TYPE: '金融', URL: '/img/home/case/finance.svg', URL_DARK: '/img/home/dark/case/finance.svg', + URL_ACTIVE: '/img/home/case/finance-active.svg', CONTENT: [ { NAME: '中国建设银行', @@ -97,6 +99,7 @@ export default { TYPE: '运营商', URL: '/img/home/case/operator.svg', URL_DARK: '/img/home/dark/case/operator.svg', + URL_ACTIVE: '/img/home/case/operator-active.svg', CONTENT: [ { NAME: '中国建设银行', @@ -120,6 +123,7 @@ export default { TYPE: '政府', URL: '/img/home/case/government.svg', URL_DARK: '/img/home/dark/case/government.svg', + URL_ACTIVE: '/img/home/case/government-active.svg', CONTENT: [ { NAME: '中国建设银行', @@ -143,6 +147,7 @@ export default { TYPE: '能源', URL: '/img/home/case/energy.svg', URL_DARK: '/img/home/dark/case/energy.svg', + URL_ACTIVE: '/img/home/case/energy-active.svg', CONTENT: [ { NAME: '中国建设银行', @@ -166,6 +171,7 @@ export default { TYPE: '航天', URL: '/img/home/case/spaceflight.svg', URL_DARK: '/img/home/dark/case/spaceflight.svg', + URL_ACTIVE: '/img/home/case/spaceflight-active.svg', CONTENT: [ { NAME: '中国建设银行', @@ -189,6 +195,7 @@ export default { TYPE: '物流', URL: '/img/home/case/logistics.svg', URL_DARK: '/img/home/dark/case/logistics.svg', + URL_ACTIVE: '/img/home/case/logistics-active.svg', CONTENT: [ { NAME: '中国建设银行', @@ -212,6 +219,7 @@ export default { TYPE: '教育', URL: '/img/home/case/education.svg', URL_DARK: '/img/home/dark/case/education.svg', + URL_ACTIVE: '/img/home/case/education-active.svg', CONTENT: [ { NAME: '中国建设银行', diff --git a/app/.vitepress/src/views/TheDemo.vue b/app/.vitepress/src/views/TheDemo.vue index 13aaf5aff773c48c7dfb8d265dda11d413eb5c99..b4ff09919b57c01b480c28169c50120114f169b8 100644 --- a/app/.vitepress/src/views/TheDemo.vue +++ b/app/.vitepress/src/views/TheDemo.vue @@ -191,7 +191,7 @@ onMounted(() => {
-

OTimelien

+

OTimeline

import { Ref, ref } from 'vue'; import banner from '@/assets/banner-secondary.png'; -import search from '@/assets/illustrations/search.png'; +import brand from '@/assets/illustrations/brand.png'; import BannerLevel2 from '@/components/BannerLevel2.vue'; import { useData } from 'vitepress'; @@ -30,11 +30,21 @@ const initList = () => { '/img/other/brand/block-hor-poster.png', ]; + const imageListMobile = [ + '/img/other/brand/brand-mobile-1.png', + '/img/other/brand/brand-mobile-2.png', + '/img/other/brand/brand-mobile-3.png', + '/img/other/brand/brand-mobile-4.png', + '/img/other/brand/brand-mobile-5.png', + '/img/other/brand/brand-mobile-6.png', + ]; + for (let i = 0; i < imageList.length; i++) { const temp = { name: cndata.PICTURE_TITLE[i], url: imageList[i], image: cndata[nameList[i]], + mobile: imageListMobile[i], }; result.push(temp); } @@ -49,7 +59,7 @@ list.value = initList(); :background-image="banner" background-text="CONTENT" :title="i18n.brand.BRAND" - :illustration="search" + :illustration="brand" />
@@ -60,13 +70,13 @@ list.value = initList();
{{ brand.name }}
- +
@@ -119,6 +129,9 @@ list.value = initList(); font-size: var(--o-font-size-text); font-weight: 400; line-height: var(--o-line-height-text); + @media (max-width: 768px) { + max-width: 80px; + } } &-item:hover { background-color: var(--o-color-brand); @@ -131,6 +144,7 @@ list.value = initList(); max-width: 1504px; @media (max-width: 1100px) { padding: 0 var(--o-spacing-h5); + margin: var(--o-spacing-h2) auto; } &-title { font-size: var(--o-font-size-h3); @@ -139,6 +153,10 @@ list.value = initList(); line-height: var(--o-line-height-h3); width: 100%; text-align: center; + @media (max-width: 768px) { + font-size: var(--o-font-size-h8); + line-height: var(--o-line-height-h8); + } } &-word { @@ -147,6 +165,11 @@ list.value = initList(); color: var(--o-color-text2); line-height: var(--o-line-height-h7); margin-top: var(--o-spacing-h10); + @media (max-width: 768px) { + font-size: var(--o-font-size-tip); + line-height: var(--o-line-height-tip); + margin-top: var(--o-spacing-h5); + } } &-list { @@ -161,8 +184,14 @@ list.value = initList(); &-item { width: 100%; - padding: var(--o-spacing-h10); + padding: 0; max-width: 336px; + :deep(.el-card__body) { + padding: var(--o-spacing-h4); + @media (max-width: 768px) { + padding: var(--o-spacing-h5) var(--o-spacing-h6); + } + } &-title { font-size: var(--o-font-size-h7); @@ -170,6 +199,10 @@ list.value = initList(); color: var(--o-color-text2); line-height: var(--o-line-height-h7); margin-top: var(--o-spacing-h10); + @media (max-width: 768px) { + font-size: var(--o-font-size-text); + line-height: var(--o-line-height-text); + } } &-img { height: 120px; @@ -179,8 +212,15 @@ list.value = initList(); align-items: center; justify-content: center; img { - max-width: 100%; - max-height: 100%; + object-fit: contain; + max-width: 220px; + height: 100%; + @media (max-width: 768px) { + max-width: 240px; + } + } + @media (max-width: 768px) { + height: 80px; } } } @@ -196,6 +236,10 @@ list.value = initList(); line-height: var(--o-line-height-h3); width: 100%; text-align: center; + @media (max-width: 768px) { + font-size: var(--o-font-size-h8); + line-height: var(--o-line-height-h8); + } } } } @@ -209,6 +253,10 @@ list.value = initList(); align-items: center; grid-template-columns: repeat(4, 1fr); grid-gap: var(--o-spacing-h4); + @media (max-width: 768px) { + font-size: var(--o-font-size-h8); + line-height: var(--o-line-height-h8); + } } &-item { width: 100%; @@ -232,6 +280,13 @@ list.value = initList(); } } +@media (max-width: 980px) { + .ppt-list, + .brand-list { + grid-template-columns: repeat(2, 1fr); + } +} + @media (max-width: 768px) { .ppt-list, .brand-list { diff --git a/app/.vitepress/src/views/download/TheDownload.vue b/app/.vitepress/src/views/download/TheDownload.vue index 6b3d7ce8c0fdefad86a5e14766ec5d351d8bf50e..60e3db227928670aa0197ee527dfd9d201f43c15 100644 --- a/app/.vitepress/src/views/download/TheDownload.vue +++ b/app/.vitepress/src/views/download/TheDownload.vue @@ -56,6 +56,19 @@ const urlStyle = computed(() => { :title="i18n.download.OUTSIDE_TITLE" />
+ + + +
{
- { /> - - +
diff --git a/app/.vitepress/src/views/download/TheMirSelect.vue b/app/.vitepress/src/views/download/TheMirSelect.vue new file mode 100644 index 0000000000000000000000000000000000000000..5bada038e2bef4da3180614c990e10768e5a57d8 --- /dev/null +++ b/app/.vitepress/src/views/download/TheMirSelect.vue @@ -0,0 +1,386 @@ + + + + + + + diff --git a/app/.vitepress/src/views/home/CommunityActivity.vue b/app/.vitepress/src/views/home/CommunityActivity.vue index de1f02065c98214ecb84bd532de5584592a162f4..e77253c29d842e52aa84f45bda3808a9c61fb8f5 100644 --- a/app/.vitepress/src/views/home/CommunityActivity.vue +++ b/app/.vitepress/src/views/home/CommunityActivity.vue @@ -132,7 +132,10 @@ const { theme: i18n } = useData(); .community { max-width: 1504px; margin: 0 auto; - padding: 0; + padding: 0 var(--o-spacing-h2); + @media (max-width: 1100px) { + padding: 0 var(--o-spacing-h5); + } margin-top: var(--o-spacing-h1); @media (max-width: 768px) { margin-top: var(--o-spacing-h2); diff --git a/app/.vitepress/src/views/home/ImgCarousel.vue b/app/.vitepress/src/views/home/ImgCarousel.vue index 7144e900a74c8f384dae7a7bdca4b0478ddf53a9..6f9f40416c3008c2b197f45c1171bbc3154799da 100644 --- a/app/.vitepress/src/views/home/ImgCarousel.vue +++ b/app/.vitepress/src/views/home/ImgCarousel.vue @@ -2,21 +2,32 @@ import { useData } from 'vitepress'; import { ref } from 'vue'; import IconArrowRight from '~icons/app/arrow-right.svg'; -import IconDown from '~icons/app/icon-down.svg'; +import useWindowResize from '@/components/hooks/useWindowResize'; + +const screenWidth = useWindowResize(); const { theme: i18n } = useData(); const active = ref(0); +const activeMobile = ref(0); + const changeActive = (index: number) => { active.value = index; + activeMobile.value = index; +}; + +const changeActiveMobile = (activeNames: any) => { + if (activeNames !== '') { + active.value = activeNames; + } }; @@ -65,7 +84,10 @@ const changeActive = (index: number) => { .carousel { max-width: 1504px; margin: 0 auto; - padding: 0; + padding: 0 var(--o-spacing-h2); + @media (max-width: 1100px) { + padding: 0 var(--o-spacing-h5); + } h3 { font-size: var(--o-font-size-h3); font-weight: 300; @@ -83,18 +105,25 @@ const changeActive = (index: number) => { &-mobile { margin-top: var(--o-spacing-h5); - display: none; - @media (max-width: 1080px) { - display: flex; - flex-flow: column; - } + + flex-flow: column; + &-card { - :deep(.el-card__body) { + :deep(.el-collapse-item__content) { + padding-bottom: 0px; + } + + :deep(.el-collapse-item__header) { + height: 100%; padding: var(--o-spacing-h4); @media (max-width: 768px) { padding: var(--o-spacing-h8); } } + + :deep(.el-collapse-item__wrap) { + margin: var(--o-spacing-h5) 0; + } } &-content { @@ -106,7 +135,8 @@ const changeActive = (index: number) => { &-img { width: 100%; - margin: var(--o-spacing-h5) 0; + height: 100%; + img { width: 100%; height: 100%; @@ -115,6 +145,7 @@ const changeActive = (index: number) => { } &-title { + cursor: pointer; font-size: var(--o-font-size-h5); font-weight: 500; color: var(--o-color-text2); @@ -132,9 +163,7 @@ const changeActive = (index: number) => { } &-pc { margin-top: var(--o-spacing-h2); - @media (max-width: 1080px) { - display: none; - } + &-card { :deep(.el-card__body) { padding: var(--o-spacing-h1) var(--o-spacing-h1) var(--o-spacing-h2); @@ -177,6 +206,7 @@ const changeActive = (index: number) => { } &-title { + cursor: pointer; font-size: var(--o-font-size-h4); font-weight: 400; color: var(--o-color-text2); @@ -191,15 +221,37 @@ const changeActive = (index: number) => { &-button { display: flex; - flex-flow: row; + margin-top: var(--o-line-height-h3); justify-content: center; align-items: center; - margin-top: var(--o-spacing-h2); + cursor: pointer; + display: flex; + align-items: center; + text-decoration: none; + color: var(--o-color-text2); + transition: all 0.3s; + &-icon { + margin-left: var(--o-spacing-h8); width: var(--o-font-size-h8); height: var(--o-font-size-h8); + transition: all 0.3s; color: var(--o-color-brand); - margin-left: var(--o-spacing-h8); + } + + a { + cursor: pointer; + display: flex; + align-items: center; + text-decoration: none; + color: var(--o-color-text2); + transition: all 0.3s; + &:hover { + color: var(--o-color-brand); + .carousel-pc-button-icon { + transform: translateX(3px); + } + } } } } diff --git a/app/.vitepress/src/views/home/UserCase.vue b/app/.vitepress/src/views/home/UserCase.vue index 6d695ea7e3e8a1cd5140cdeed256dfd1968dc84d..1eba531b681715eb8d6932ce429ef71fd03d889f 100644 --- a/app/.vitepress/src/views/home/UserCase.vue +++ b/app/.vitepress/src/views/home/UserCase.vue @@ -2,50 +2,69 @@ import { useData } from 'vitepress'; import { useCommon } from '@/stores/common'; import IconArrowRight from '~icons/app/arrow-right.svg'; -import IconDown from '~icons/app/icon-down.svg'; import { ref } from 'vue'; +import useWindowResize from '@/components/hooks/useWindowResize'; const { theme: i18n } = useData(); const commonStore = useCommon(); const active = ref(0); +const activeMobile = ref(0); + +const screenWidth = useWindowResize(); const changeActive = (index: number) => { active.value = index; + activeMobile.value = index; +}; + +const changeActiveMobile = (activeNames: any) => { + if (activeNames !== '') { + active.value = activeNames; + } };