From d407b68ebb0d809b85f83885756d25d883826587 Mon Sep 17 00:00:00 2001 From: merlin Date: Fri, 17 Oct 2025 11:42:53 +0800 Subject: [PATCH] refactor: main page updated --- src/styles/base.css | 4 ++ src/styles/show.css | 19 +++++-- src/views/blog/blog.vue | 22 ++++++-- src/views/blog/show.vue | 120 +++++++++++++++++++++++++++++----------- vite.config.js | 1 + 5 files changed, 127 insertions(+), 39 deletions(-) diff --git a/src/styles/base.css b/src/styles/base.css index 8816868..54d7dcb 100644 --- a/src/styles/base.css +++ b/src/styles/base.css @@ -84,3 +84,7 @@ body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } + +.el-scrollbar__view{ + height: 100%; +} \ No newline at end of file diff --git a/src/styles/show.css b/src/styles/show.css index 551fb6a..d5dec5f 100644 --- a/src/styles/show.css +++ b/src/styles/show.css @@ -3,9 +3,9 @@ height: 100%; padding: 10px; } -h1 { +.show-top-text h2{ padding: 10px; - font-size: 30px; + font-size: 25px; font-weight: bold; margin: auto; font-style: italic; @@ -15,6 +15,9 @@ h1 { font-style: italic; text-align: right; } +.show-top-text{ + text-align: center; +} .newsbox { width: 100%; height: 100%; @@ -27,15 +30,23 @@ h1 { margin: auto; padding: 10px; flex: 2; + height: 100px; } .newspic { display: inline-block; background-color: #5b5a5a; - width: 170px; - height: 110px; + width: 20%; + min-width: 100px; + max-width: 130px; + height: 100%; } .newscontent { margin-right: auto; display: inline-block; padding: 10px; } + +.search-input{ + width: 70%; + margin: auto +} \ No newline at end of file diff --git a/src/views/blog/blog.vue b/src/views/blog/blog.vue index c64365c..4a2f3de 100644 --- a/src/views/blog/blog.vue +++ b/src/views/blog/blog.vue @@ -2,10 +2,11 @@
- + 首页 - 参与项目 - 联系站长 + 文章 +