From ba235c421fa13189c736ce3d83e6e0d9c27f9d74 Mon Sep 17 00:00:00 2001 From: pengzhanbo Date: Sat, 9 Mar 2024 00:30:26 +0800 Subject: [PATCH] =?UTF-8?q?perf(theme):=20=E8=B0=83=E6=95=B4=E9=A6=96?= =?UTF-8?q?=E9=A1=B5=E5=B8=83=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- theme/src/client/components/Home/Home.vue | 2 +- theme/src/client/components/Home/HomeHero.vue | 6 +++--- theme/src/client/components/Home/HomeProfile.vue | 8 ++------ theme/src/client/components/Home/HomeTextImage.vue | 8 +++++--- 4 files changed, 11 insertions(+), 13 deletions(-) diff --git a/theme/src/client/components/Home/Home.vue b/theme/src/client/components/Home/Home.vue index 82d81ccd..d78a3137 100644 --- a/theme/src/client/components/Home/Home.vue +++ b/theme/src/client/components/Home/Home.vue @@ -64,7 +64,7 @@ function resolveComponentName(type: string) { v-for="(item, index) in config" :key="item.type + index" > -
+
hero.value.actions ?? []) width: 714px; height: 390px; clip-path: polygon(0 10%, 30% 0, 100% 40%, 70% 100%, 20% 90%); - background: #fe5; + background: var(--vp-c-yellow-3); transform: translate(-50%, 0); } @@ -211,7 +211,7 @@ const actions = computed(() => hero.value.actions ?? []) width: 1000px; height: 450px; clip-path: polygon(10% 0, 100% 70%, 100% 100%, 20% 90%); - background: #e950d1; + background: var(--vp-c-red-3); transform: translate(-50%, 0); } @@ -221,7 +221,7 @@ const actions = computed(() => hero.value.actions ?? []) width: 1000px; height: 450px; clip-path: polygon(80% 0, 100% 70%, 100% 100%, 20% 90%); - background: rgba(87, 80, 233); + background: var(--vp-c-purple-3); transform: translate(-50%, 0); } diff --git a/theme/src/client/components/Home/HomeProfile.vue b/theme/src/client/components/Home/HomeProfile.vue index 647e4b07..919d2c36 100644 --- a/theme/src/client/components/Home/HomeProfile.vue +++ b/theme/src/client/components/Home/HomeProfile.vue @@ -31,13 +31,9 @@ const profile = computed(() => { > -

- {{ profile.name }} -

+

-

- {{ profile.description }} -

+

diff --git a/theme/src/client/components/Home/HomeTextImage.vue b/theme/src/client/components/Home/HomeTextImage.vue index 2e83373b..19804a1e 100644 --- a/theme/src/client/components/Home/HomeTextImage.vue +++ b/theme/src/client/components/Home/HomeTextImage.vue @@ -80,6 +80,7 @@ const maxWidth = computed(() => { .content-text h2 { margin-top: 0; + margin-bottom: 12px; } .content-text ul { @@ -87,6 +88,7 @@ const maxWidth = computed(() => { } .content-text .description { + margin: 12px 0 24px; font-size: 16px; font-weight: 500; color: var(--vp-c-text-1); @@ -102,6 +104,7 @@ const maxWidth = computed(() => { .content-text ul p { margin: 0; + font-weight: 400; color: var(--vp-c-text-1); transition: color var(--t-color); } @@ -112,13 +115,12 @@ const maxWidth = computed(() => { @media (min-width: 768px) { .content-image :deep(.plume-image) { - max-width: 160px; + max-width: 180px; margin: 0 48px; } .content-text { flex: 1; - width: 100%; } } @@ -128,7 +130,7 @@ const maxWidth = computed(() => { } .content-image :deep(.plume-image) { - max-width: 180px; + max-width: 220px; margin: 0 96px; }