From 9699e2056fee38e74e2eba792f8020df6e86e815 Mon Sep 17 00:00:00 2001 From: Siubeng Date: Fri, 23 Oct 2026 22:23:25 +0800 Subject: [PATCH] style: simplify website hero and refine theme toggle --- website/src/components/Hero.astro | 6 -- website/src/components/SiteHeader.astro | 20 ++++- website/src/i18n/en.ts | 1 - website/src/scripts/theme.ts | 11 ++- website/src/styles/global.css | 102 ++++++++++++++---------- 5 files changed, 85 insertions(+), 55 deletions(-) diff --git a/website/src/components/Hero.astro b/website/src/components/Hero.astro index 81ba032..9071087 100644 --- a/website/src/components/Hero.astro +++ b/website/src/components/Hero.astro @@ -4,12 +4,6 @@ const { t, local } = useTranslations(Astro.url.pathname); ---
- {t("为你的车机,打开一种新可能")}

{t("让 CarPlay,")}
{t("在浏览器里就位。")}

{t("一部 Android,一块车机屏幕。")}
{t("把 iPhone 的熟悉体验,带到你的每一次出发。")}

diff --git a/website/src/components/SiteHeader.astro b/website/src/components/SiteHeader.astro index 440c07e..33277a0 100644 --- a/website/src/components/SiteHeader.astro +++ b/website/src/components/SiteHeader.astro @@ -15,17 +15,33 @@ import LanguageSwitch from "./LanguageSwitch.astro";