From 79192f8a551d016a66375b4a7242c19bd0b3be1e Mon Sep 17 00:00:00 2001 From: KUN1007 Date: Fri, 20 Oct 2023 22:34:19 +0800 Subject: [PATCH] feat: about page aside i18n --- src/language/en.ts | 14 +++ src/language/zh.ts | 14 +++ src/views/Home/footer/components/Contacts.vue | 13 ++- src/views/Home/footer/components/List.vue | 6 ++ src/views/kungalgame/KUNGalgame.vue | 19 +++- src/views/kungalgame/components/Aside.vue | 86 +++++++++---------- vite.config.ts | 1 + 7 files changed, 101 insertions(+), 52 deletions(-) diff --git a/src/language/en.ts b/src/language/en.ts index 82b2959e..5258a317 100644 --- a/src/language/en.ts +++ b/src/language/en.ts @@ -325,6 +325,20 @@ export default { replies: 'Replies', comments: 'Comments', }, + kungalgame: { + introduction: 'Introduction', + operating: 'Operating', + rules: 'Forum Rules', + privacy: 'Privacy', + bylaw: 'Bylaws', + update: 'Update Log', + pl: 'Profit & Loss', + nonMoe: 'Non-Moe', + join: 'Join Us', + thanks: 'Thanks List', + donate: 'Donate Us', + home: 'Back Home', + }, // 非页面组件这里统一用大驼峰 ComponentAlert: { confirm: 'OK', diff --git a/src/language/zh.ts b/src/language/zh.ts index a94a6625..73bf91e8 100644 --- a/src/language/zh.ts +++ b/src/language/zh.ts @@ -324,6 +324,20 @@ export default { replies: '回复数', comments: '评论数', }, + kungalgame: { + introduction: '网站简介', + operating: '运营理念', + rules: '论坛规定', + privacy: '隐私政策', + bylaw: '执行条例', + update: '更新日志', + pl: '收支公示', + nonMoe: '不萌记录', + join: '加入我们', + thanks: '感谢名单', + donate: '赞助我们', + home: '返回主页', + }, // 非页面组件这里统一用大驼峰 ComponentAlert: { confirm: '确定', diff --git a/src/views/Home/footer/components/Contacts.vue b/src/views/Home/footer/components/Contacts.vue index d8a0abf6..d2270b9b 100644 --- a/src/views/Home/footer/components/Contacts.vue +++ b/src/views/Home/footer/components/Contacts.vue @@ -11,18 +11,27 @@ import { Icon } from '@iconify/vue'
  • - +
  • - +
  • diff --git a/src/views/Home/footer/components/List.vue b/src/views/Home/footer/components/List.vue index a41573fa..96b7f84d 100644 --- a/src/views/Home/footer/components/List.vue +++ b/src/views/Home/footer/components/List.vue @@ -164,5 +164,11 @@ const link: FooterInfoItem[] = [ .mobile { display: none; } + + .function { + li { + height: 48px; + } + } } diff --git a/src/views/kungalgame/KUNGalgame.vue b/src/views/kungalgame/KUNGalgame.vue index 2e2fcccd..f4ae04b5 100644 --- a/src/views/kungalgame/KUNGalgame.vue +++ b/src/views/kungalgame/KUNGalgame.vue @@ -26,8 +26,6 @@ const kungalgamePageWidth = computed(() => {

    关于我们

    -
    -

    网站简介

    KUNGalgame 是由 KUN(鲲)个人发起的一个 @@ -242,7 +240,7 @@ p, .list { color: var(--kungalgame-font-color-2); } -/* da标题的字体 */ + h1 { margin-right: 30px; margin-top: 57px; @@ -286,8 +284,21 @@ a { @media (max-width: 1000px) { .content-container { - width: 100%; + width: 90%; padding: 0; } } + +@media (max-width: 700px) { + .content-container { + width: 100%; + } + .article { + margin-left: 7px; + } + + h1 { + margin: 20px auto; + } +} diff --git a/src/views/kungalgame/components/Aside.vue b/src/views/kungalgame/components/Aside.vue index 496df571..3b8e625b 100644 --- a/src/views/kungalgame/components/Aside.vue +++ b/src/views/kungalgame/components/Aside.vue @@ -6,37 +6,35 @@ interface asideBar { } const asideBarItem: asideBar[] = [ - { index: 1, name: '隐私政策', router: '/privacy' }, - { index: 2, name: '执行条例', router: '/bylaw' }, - { index: 3, name: '更新日志', router: '/update-log' }, - { index: 4, name: '收支公示', router: '/balance' }, - { index: 5, name: '不萌记录', router: '/non-moe' }, - { index: 6, name: '加入我们', router: '/contact' }, - { index: 7, name: '感谢名单', router: '/thanks-list' }, - { index: 8, name: '赞助我们', router: '/donate' }, - { index: 9, name: '返回主页', router: '/' }, + { index: 1, name: 'privacy', router: '/privacy' }, + { index: 2, name: 'bylaw', router: '/bylaw' }, + { index: 3, name: 'update', router: '/update-log' }, + { index: 4, name: 'pl', router: '/balance' }, + { index: 5, name: 'nonMoe', router: '/non-moe' }, + { index: 6, name: 'join', router: '/contact' }, + { index: 7, name: 'thanks', router: '/thanks-list' }, + { index: 8, name: 'donate', router: '/donate' }, + { index: 9, name: 'home', router: '/' }, ] diff --git a/vite.config.ts b/vite.config.ts index 7977eb27..15639754 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -13,6 +13,7 @@ export default defineConfig({ '@': path.resolve(__dirname, './src'), }, }, + server: { host: '127.0.0.1', port: 1007 }, // 消除 i18n 警告 define: { __VUE_I18N_FULL_INSTALL__: true,