From e717984be6c8d080a60198f462b050c945b35250 Mon Sep 17 00:00:00 2001 From: imsyy Date: Mon, 21 Aug 2023 15:23:43 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=96=B0=E5=A2=9E=E5=BA=95=E6=A0=8F?= =?UTF-8?q?=E5=B1=95=E7=A4=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env | 1 + src/App.vue | 5 +- src/components/AllFunc/AllFunc.vue | 14 +- src/components/AllFunc/Box/ShortCut.vue | 6 +- src/components/Footer.vue | 135 +++++++++++++++++++- src/components/SearchInput/SearchEngine.vue | 1 - src/components/SearchInput/SearchInp.vue | 7 +- src/components/WeatherTime.vue | 8 +- 8 files changed, 159 insertions(+), 18 deletions(-) diff --git a/.env b/.env index b4a0d68..6a273c5 100644 --- a/.env +++ b/.env @@ -5,6 +5,7 @@ VITE_SITE_KEYWORDS = "Snavigation,导航,网站导航,主页,简约导航,起始 VITE_SITE_DES = "一个简约的起始页,支持自定义搜索引擎,自定义快捷方式,自定义壁纸以及数据备份" VITE_SITE_LOGO = "/favicon.png" VITE_SITE_APPLE_LOGO = "/logo/logo.png" +VITE_SITE_COPYRIGHTLINK = "https://github.com/imsyy/Snavigation" # 进入欢迎词 VITE_WELCOME_TEXT = "欢迎访问本站" diff --git a/src/App.vue b/src/App.vue index 87fb79e..22c03a7 100644 --- a/src/App.vue +++ b/src/App.vue @@ -157,9 +157,12 @@ onMounted(() => { &.main-set { .main-box { opacity: 1; - margin-top: 220px; + margin-top: 20vh; transform: scale(1); visibility: visible; + @media (max-width: 478px) { + margin-top: 22vh; + } } .search-input { :deep(.all) { diff --git a/src/components/AllFunc/AllFunc.vue b/src/components/AllFunc/AllFunc.vue index 5b9da5b..2192337 100644 --- a/src/components/AllFunc/AllFunc.vue +++ b/src/components/AllFunc/AllFunc.vue @@ -28,7 +28,7 @@ const status = statusStore(); .main-box { position: absolute; width: 80%; - height: 460px; + height: 64vh; max-width: 1200px; background-color: var(--main-background-light-color); backdrop-filter: blur(20px); @@ -40,7 +40,8 @@ const status = statusStore(); overflow: hidden; height: 100%; :deep(.scrollbar) { - max-height: calc(460px - 84px); + max-height: calc(64vh - 84px); + transition: max-height 0.3s; } :deep(.set-item) { width: 100%; @@ -97,14 +98,14 @@ const status = statusStore(); height: 100%; :deep(.n-tab-pane) { .scrollbar { - max-height: calc(460px - 84px); + max-height: calc(64vh - 84px); } .not-shortcut { - min-height: calc(460px - 84px); + min-height: calc(64vh - 84px); } &.no-padding { .scrollbar { - max-height: calc(460px - 44px); + max-height: calc(64vh - 44px); } } } @@ -116,5 +117,8 @@ const status = statusStore(); max-height: calc(80vh - 84px); } } + @media (max-width: 478px) { + height: 60vh; + } } diff --git a/src/components/AllFunc/Box/ShortCut.vue b/src/components/AllFunc/Box/ShortCut.vue index 5fdebe3..76cc6d7 100644 --- a/src/components/AllFunc/Box/ShortCut.vue +++ b/src/components/AllFunc/Box/ShortCut.vue @@ -6,7 +6,7 @@ @@ -70,7 +70,8 @@ @@ -78,7 +79,6 @@ diff --git a/src/components/Footer.vue b/src/components/Footer.vue index 332d875..897644e 100644 --- a/src/components/Footer.vue +++ b/src/components/Footer.vue @@ -1,7 +1,75 @@ + + diff --git a/src/components/SearchInput/SearchEngine.vue b/src/components/SearchInput/SearchEngine.vue index 10dd6ed..c841c72 100644 --- a/src/components/SearchInput/SearchEngine.vue +++ b/src/components/SearchInput/SearchEngine.vue @@ -47,7 +47,6 @@ diff --git a/src/components/SearchInput/SearchInp.vue b/src/components/SearchInput/SearchInp.vue index ba1d180..17ff77f 100644 --- a/src/components/SearchInput/SearchInp.vue +++ b/src/components/SearchInput/SearchInp.vue @@ -225,7 +225,6 @@ const changeEngine = () => { &::placeholder { width: 100%; text-align: center; - transform: translateY(1px); color: var(--main-text-color); letter-spacing: 2px; transition: opacity 0.3s; @@ -251,7 +250,7 @@ const changeEngine = () => { } } &.small { - width: 240px; + width: 260px; .all { .engine, .go { @@ -259,7 +258,7 @@ const changeEngine = () => { } .input { &::placeholder { - opacity: 0.3; + opacity: 0.6; } } &.focus { @@ -270,7 +269,7 @@ const changeEngine = () => { } } &:hover { - width: calc(100% - 60px); + // width: calc(100% - 60px); .all { .input { &::placeholder { diff --git a/src/components/WeatherTime.vue b/src/components/WeatherTime.vue index 494f31b..af125f0 100644 --- a/src/components/WeatherTime.vue +++ b/src/components/WeatherTime.vue @@ -221,13 +221,19 @@ onBeforeUnmount(() => { &.focus { transform: translateY(-180px); + // transform: translateY(-24vh); } &.box, &.set { - transform: translateY(-220px); + // transform: translateY(-220px); + transform: translateY(-34vh); + @media (max-width: 478px) { + transform: translateY(-32vh); + } } &.hidden { transform: translateY(-180px); + // transform: translateY(-24vh); opacity: 0; } &.lunar {