diff --git a/src/language/zh.ts b/src/language/zh.ts index 934dada8..ddb13dd8 100644 --- a/src/language/zh.ts +++ b/src/language/zh.ts @@ -1,5 +1,5 @@ export default { header: { - name: '鲲站', + name: '鲲Galgame', }, } diff --git a/src/views/Home/content/aside/MainPageAside.vue b/src/views/Home/content/aside/MainPageAside.vue index 401d0694..2b1de29f 100644 --- a/src/views/Home/content/aside/MainPageAside.vue +++ b/src/views/Home/content/aside/MainPageAside.vue @@ -1,17 +1,29 @@ @@ -20,14 +32,29 @@ const handleFold = () => {
- - - + +
+ +
+ + +
+ +
+
技术交流
+
其它游戏
+
排行榜
+
执行条例
+
加入我们
+
帖子池
+
+
+ +
@@ -36,7 +63,7 @@ const handleFold = () => { .aside { /* 侧边栏距离文章区域的距离 */ margin-right: 5px; - width: v-bind('asideWidthStyle'); + width: v-bind('asideWidth'); /* 侧边栏相对于整体可视部分的占比 */ /* 侧边栏高度 */ height: 100%; @@ -44,6 +71,7 @@ const handleFold = () => { display: flex; /* 方向为竖向 */ flex-direction: column; + transition: 0.2s; } /* 侧边栏交互 */ .nav-aside { @@ -59,9 +87,78 @@ const handleFold = () => { /* 字体设置 */ font-size: small; color: @kungalgame-font-color-3; + cursor: pointer; +} +@media (max-width: 50px) { + .nav-aside { + background-color: aqua; + } +} +/* 侧边栏功能区 */ +.item-box { + width: 100%; + height: 1px; + /* 功能区相对于侧边栏的占比 */ + flex-grow: 6; + /* 设置六个功能(模式、排行、背景等)分布的弹性盒 */ + display: flex; + flex-direction: column; +} +/* 发布帖子 */ +.new-article { + width: 100%; + /* 发布帖子的按钮相对于功能区盒子的占比 */ + flex-grow: 2; +} +/* 发布按钮样式 */ +.new-article button { + height: 100%; + width: 100%; + background-color: @kungalgame-red-0; + border: 1px solid @kungalgame-red-3; + border-radius: 5px; + cursor: pointer; + color: @kungalgame-red-3; + font-weight: bold; + font-size: larger; /* 页面缩小到最小时不换行 */ overflow: hidden; white-space: nowrap; +} +/* 发布按钮 hover 效果 */ +.new-article button:hover { + font-size: xx-large; + background-color: @kungalgame-red-3; + color: @kungalgame-red-0; + /* 效果过渡时长 */ + transition: 0.3s; +} +/* 功能区容器 */ +/* 功能区容器 */ +.item-box-container { + /* 两行三列 grid 布局 */ + display: grid; + grid-template-columns: repeat(3, 80px); + grid-template-rows: repeat(2, 40px); + font-size: 14px; + /* 字体颜色 */ + color: @kungalgame-font-color-3; + /* 相对定位 */ + position: relative; +} +/* 六个功能之间的距离 */ +.item-box-container > div { + /* 设置六个功能(模式、排行、背景等)之间的间距 */ + display: flex; + justify-content: center; + align-items: center; + font-weight: bold; + color: @kungalgame-font-color-2; +} +/* 设置六个功能(模式、排行、背景等)的 hover */ +.item-box-container > div:hover { + color: @kungalgame-font-color-3; + background-color: @kungalgame-blue-0; cursor: pointer; } diff --git a/src/views/Home/content/aside/item/AsideItem.vue b/src/views/Home/content/aside/item/AsideItem.vue deleted file mode 100644 index 978aeebc..00000000 --- a/src/views/Home/content/aside/item/AsideItem.vue +++ /dev/null @@ -1,98 +0,0 @@ - - - - - diff --git a/src/views/Home/content/aside/topic/components/SingleTopic.vue b/src/views/Home/content/aside/topic/components/SingleTopic.vue new file mode 100644 index 00000000..25c28814 --- /dev/null +++ b/src/views/Home/content/aside/topic/components/SingleTopic.vue @@ -0,0 +1,72 @@ + + + + + diff --git a/src/views/Home/content/aside/topic/components/Topic.vue b/src/views/Home/content/aside/topic/components/Topic.vue new file mode 100644 index 00000000..5bfd7f85 --- /dev/null +++ b/src/views/Home/content/aside/topic/components/Topic.vue @@ -0,0 +1,61 @@ + + + + + diff --git a/vite.config.ts b/vite.config.ts index 253add4b..b8a3fa9d 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -4,11 +4,11 @@ import vue from '@vitejs/plugin-vue' // 引入 Rollup Plugin Visualizer 打包可视化工具 import { visualizer } from 'rollup-plugin-visualizer' // 引入 mock-js -import { viteMockServe } from 'vite-plugin-mock' +// import { viteMockServe } from 'vite-plugin-mock' // https://vitejs.dev/config/ export default defineConfig({ - plugins: [vue(), visualizer() as PluginOption, viteMockServe()], + plugins: [vue(), visualizer() as PluginOption], /* src 别名为 @ */ resolve: { alias: {