diff --git a/app/.vitepress/src/views/brand/TheBrand.vue b/app/.vitepress/src/views/brand/TheBrand.vue index 5dd0fd2453d775ef2a769394492347ad4d9b191c..039370acf82f323021e64838ae5c946db45be3ec 100644 --- a/app/.vitepress/src/views/brand/TheBrand.vue +++ b/app/.vitepress/src/views/brand/TheBrand.vue @@ -126,7 +126,12 @@ list.value = initList(); } } .brand { - margin: var(--o-spacing-h1) 0; + margin: var(--o-spacing-h1) auto; + padding: 0 var(--o-spacing-h2); + max-width: 1504px; + @media (max-width: 1100px) { + padding: 0 var(--o-spacing-h5); + } &-title { font-size: var(--o-font-size-h3); font-weight: 300; diff --git a/app/.vitepress/src/views/download/TheDownload.vue b/app/.vitepress/src/views/download/TheDownload.vue index 5dee74de87f16ff3e1008b352a6565cd1ced5cc1..6b3d7ce8c0fdefad86a5e14766ec5d351d8bf50e 100644 --- a/app/.vitepress/src/views/download/TheDownload.vue +++ b/app/.vitepress/src/views/download/TheDownload.vue @@ -2,6 +2,7 @@ import { computed, ref } from 'vue'; import IconDownload from '~icons/app/icon-download.svg'; import banner from '@/assets/banner-secondary.png'; +import useWindowResize from '@/components/hooks/useWindowResize'; import BannerLevel3 from '@/components/BannerLevel3.vue'; import { useData } from 'vitepress'; @@ -14,14 +15,28 @@ const downloadUrl = (url: string) => { const currentPage = ref(1); const pageSize = ref(9); const total = ref(i18n.value.download.DOWNLOAD_LIST.length); +const screenWidth = useWindowResize(); const dataList = computed(() => { - return i18n.value.download.DOWNLOAD_LIST.slice( - (currentPage.value - 1) * pageSize.value, - currentPage.value * pageSize.value - ); + if (screenWidth.value > 768) { + return i18n.value.download.DOWNLOAD_LIST.slice( + (currentPage.value - 1) * pageSize.value, + currentPage.value * pageSize.value + ); + } else { + return i18n.value.download.DOWNLOAD_LIST.slice( + 0, + currentPage.value * pageSize.value + ); + } }); +const LoadMore = () => { + if (currentPage.value * pageSize.value < total.value) { + currentPage.value = currentPage.value + 1; + } +}; + const urlStyle = computed(() => { if (lang.value === 'zh') { return 'url-list-zh'; @@ -45,51 +60,55 @@ const urlStyle = computed(() => { -
- {{ download.NAME }} -
-
- {{ download.DESC }} -
-
-
- - {{ i18n.download.SEEK_HELP }} - -
-
- - {{ i18n.download.GET_ISO }} - +
+
+ {{ download.NAME }} +
+
+ {{ download.DESC }}
-
- - {{ i18n.download.LIFE_CYCLE }} - -
-
- - {{ i18n.download.RELEASE_DESC }} - -
-
- - {{ i18n.download.INSTALL_GUIDENCE }} - -
-
- - {{ i18n.download.WHITE_PAPER }} - -
-
- - {{ i18n.download.WEBSITE_SELECT }} - +
+ {
-
-
- - 5/50 - +
+ + {{ pageSize }} / {{ total }} + +
+
+ 已显示{{ + pageSize * currentPage < total ? pageSize * currentPage : total + }}条记录/共{{ total }}条 +
+
+
+
+ + 加载更多 + +
+
@@ -123,13 +169,43 @@ const urlStyle = computed(() => { justify-content: center; align-items: center; margin-bottom: var(--o-spacing-h1); + + &-mobile { + width: 100%; + display: flex; + flex-flow: column; + justify-content: center; + align-items: center; + } + + &-divide { + max-width: 328px; + width: 100%; + height: 1px; + margin-top: var(--o-spacing-h5); + background-color: var(--o-color-division); + &-in { + height: 100%; + background-color: var(--o-color-brand); + } + } + + &-button { + margin-top: var(--o-spacing-h5); + padding: var(--o-spacing-h10) var(--o-spacing-h4); + } } .download { - margin: var(--o-spacing-h2) 0; + margin: 0 auto; + max-width: 1504px; + padding: 0 var(--o-spacing-h2); + @media (max-width: 1100px) { + padding: 0 var(--o-spacing-h5); + } + &-list { display: grid; - max-width: 1504px; - margin: 0 auto; + margin: var(--o-spacing-h2) auto; justify-items: center; align-items: center; grid-template-columns: repeat(3, 1fr); @@ -137,26 +213,50 @@ const urlStyle = computed(() => { &-item { width: 100%; max-width: 456px; - padding: 20px; height: 100%; + + @media (max-width: 768px) { + max-width: 328px; + } + + :deep(.el-card__body) { + padding: var(--o-spacing-h2); + width: 100%; + display: flex; + flex-flow: column; + justify-content: space-between; + align-items: flex-start; + height: 100%; + @media (max-width: 768px) { + padding: var(--o-spacing-h5) var(--o-spacing-h6); + } + } } } &-name { font-size: var(--o-font-size-h5); line-height: var(--o-line-height-h5); + @media (max-width: 768px) { + font-size: var(--o-font-size-text); + line-height: var(--o-line-height-text); + } } &-desc { margin-top: var(--o-spacing-h5); font-size: var(--o-font-size-text); color: var(--o-color-text3); - line-height: var(--o-line-height-h8); + line-height: var(--o-line-height-text); overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; - height: var(--o-line-height-h3); + @media (max-width: 768px) { + font-size: var(--o-font-size-tip); + line-height: var(--o-line-height-tip); + margin-top: var(--o-spacing-h10); + } } &-button { @@ -179,10 +279,17 @@ const urlStyle = computed(() => { display: grid; grid-template-columns: repeat(5, 1fr); grid-gap: var(--o-spacing-h5) var(--o-spacing-h8); + @media (max-width: 768px) { + grid-gap: var(--o-spacing-h8); + } a { font-size: var(--o-font-size-text); color: var(--o-color-brand); + @media (max-width: 768px) { + font-size: var(--o-font-size-tip); + line-height: var(--o-line-height-tip); + } } } @@ -191,10 +298,17 @@ const urlStyle = computed(() => { display: grid; grid-template-columns: repeat(4, 1fr); grid-gap: var(--o-spacing-h5) var(--o-spacing-h8); + @media (max-width: 768px) { + grid-gap: var(--o-spacing-h8); + } a { font-size: var(--o-font-size-text); color: var(--o-color-brand); + @media (max-width: 768px) { + font-size: var(--o-font-size-tip); + line-height: var(--o-line-height-tip); + } } } @@ -203,10 +317,17 @@ const urlStyle = computed(() => { display: grid; grid-template-columns: repeat(3, 1fr); grid-gap: var(--o-spacing-h5) var(--o-spacing-h8); + @media (max-width: 768px) { + grid-gap: var(--o-spacing-h8); + } a { font-size: var(--o-font-size-text); color: var(--o-color-brand); + @media (max-width: 768px) { + font-size: var(--o-font-size-tip); + line-height: var(--o-line-height-tip); + } } } diff --git a/app/.vitepress/src/views/download/TheMirList.vue b/app/.vitepress/src/views/download/TheMirList.vue index 9c3f9da96fb1c6cf0d5df54e6f4f63c588ee92e1..dabe08e33fdb477a2192e03e61e2282786547b72 100644 --- a/app/.vitepress/src/views/download/TheMirList.vue +++ b/app/.vitepress/src/views/download/TheMirList.vue @@ -1,11 +1,12 @@ @@ -227,6 +230,11 @@ h3 { } } .case { + &-main { + max-width: 1504px; + margin: 0 auto; + padding: 0; + } display: block; @media (max-width: 1080px) { display: none; diff --git a/app/en/mirror/index.md b/app/en/mirror/list/index.md similarity index 100% rename from app/en/mirror/index.md rename to app/en/mirror/list/index.md diff --git a/app/ru/mirror/index.md b/app/ru/mirror/list/index.md similarity index 100% rename from app/ru/mirror/index.md rename to app/ru/mirror/list/index.md diff --git a/app/zh/mirror/index.md b/app/zh/mirror/list/index.md similarity index 100% rename from app/zh/mirror/index.md rename to app/zh/mirror/list/index.md