From 416abfbd6d6b5e1a0643944bc318e1d859502f99 Mon Sep 17 00:00:00 2001 From: Cxx0822 <1556464090@qq.com> Date: Thu, 16 Oct 2025 22:10:08 +0800 Subject: [PATCH] =?UTF-8?q?feat:=E5=A2=9E=E5=8A=A0=E9=A3=9F=E5=85=89?= =?UTF-8?q?=E9=9B=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/App.vue | 45 ++++++++++++++++++++++++++++++++++----------- src/style.css | 3 ++- 2 files changed, 36 insertions(+), 12 deletions(-) diff --git a/src/App.vue b/src/App.vue index 2a4be68..00b14f0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,7 +5,7 @@
-
@@ -13,7 +13,15 @@
- + +
+ 博客Admin +
+
+ +
@@ -21,15 +29,15 @@
- - + +
- 博客管理系统 + 食光集
-
@@ -67,6 +75,15 @@ const sweetHutClick = () => { window.open(`${window.location.origin}/sweet-hut/`, '_blank'); } +const foodHubClick = () => { + if (!isMobile()) { + ElMessage.info('暂不支持PC端访问') + return + } + + window.open(`${window.location.origin}/food-hub/`, '_blank'); +} + const blogAdminClick = () => { if (isMobile()) { ElMessage.info('暂不支持移动端访问') @@ -104,7 +121,7 @@ const resumeClick = () => { margin-top: 100px; display: grid; - grid-template-columns: repeat(2, 1fr); + grid-template-columns: repeat(3, 1fr); gap: 25px; .app-card { @@ -113,8 +130,8 @@ const resumeClick = () => { font-size: 1.3rem; .el-card__body { - display: flex; - justify-content: center; + display: grid; + grid-template-columns: 25px 1fr; align-items: center; gap: 10px; } @@ -125,13 +142,19 @@ const resumeClick = () => { } } + @media (max-width: 768px) { + .app-center { + grid-template-columns: repeat(2, 1fr); + } + } + .footer-content { position: fixed; bottom: 0; left: 0; right: 0; - color: #6B7280; + color: #2B2B2C; padding: 10px; text-align: center; box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1); diff --git a/src/style.css b/src/style.css index 4664600..0e7be95 100644 --- a/src/style.css +++ b/src/style.css @@ -2,7 +2,7 @@ body { -moz-osx-font-smoothing: grayscale; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; - font-family: Helvetica Neue, Helvetica, PingFang SC, Hiragino Sans GB, Microsoft YaHei, Arial, sans-serif; + font-family: '华文楷体', 'Times New Roman', sans-serif; } *, @@ -32,6 +32,7 @@ html, body { #app { height: 100%; + background-color: lightgray; } html {