From 1354ffab589d19680c8ea7e7863ca88c46b60558 Mon Sep 17 00:00:00 2001 From: joyzhao Date: Mon, 16 Jun 2025 17:29:35 +0800 Subject: [PATCH] feat(services): add services section with outsourcing and bugfix cards Add new services section to showcase outsourcing projects and bug fixing services Update i18n translations for services section Change hero section link from projects to about Remove personalInfo import and use translation for name in footer --- src/components/Footer.tsx | 3 +- src/components/HeroSection.tsx | 2 +- src/i18n/ui.ts | 30 +++++++++++++ src/pages/index.astro | 81 ++++++++++++++++++++++++++++++++++ src/pages/zh/index.astro | 81 ++++++++++++++++++++++++++++++++++ 5 files changed, 194 insertions(+), 3 deletions(-) diff --git a/src/components/Footer.tsx b/src/components/Footer.tsx index f51497d..4fe08a9 100644 --- a/src/components/Footer.tsx +++ b/src/components/Footer.tsx @@ -1,4 +1,3 @@ -import { personalInfo } from "@/lib/data"; import { useTranslations, type Lang } from "@/i18n/utils"; import { motion } from "framer-motion"; @@ -22,7 +21,7 @@ export default function Footer({ lang }: FooterProps) { className="text-sm text-muted-foreground text-center md:text-left" whileHover={{ scale: 1.01 }} > - © {new Date().getFullYear()} {personalInfo.name}. {t('footer.rights')} ✨ + © {new Date().getFullYear()} {t('personal.name')}. {t('footer.rights')} ✨ + + +
+
+

+ {t('services.title')} +

+ +
+ +
+
+
+ + + +
+

{t('services.outsourcing.title')}

+
+
    +
  • + 1. + {t('services.outsourcing.item1')} +
  • +
  • + 2. + {t('services.outsourcing.item2')} +
  • +
  • + 3. + {t('services.outsourcing.item3')} +
  • +
  • + 4. + {t('services.outsourcing.item4')} +
  • +
  • + 5. + {t('services.outsourcing.item5')} +
  • +
+
+ + +
+
+
+ + + + +
+

{t('services.bugfix.title')}

+
+
    +
  • + 1. + {t('services.bugfix.item1')} +
  • +
  • + 2. + {t('services.bugfix.item2')} +
  • +
  • + 3. + {t('services.bugfix.item3')} +
  • +
  • + 4. + {t('services.bugfix.item4')} +
  • +
  • + 5. + {t('services.bugfix.item5')} +
  • +
+
+
+
+
+ diff --git a/src/pages/zh/index.astro b/src/pages/zh/index.astro index dd784ea..c913b04 100644 --- a/src/pages/zh/index.astro +++ b/src/pages/zh/index.astro @@ -18,6 +18,87 @@ const pageTitle = t('page.home.title');
+ + +
+
+

+ {t('services.title')} +

+ +
+ +
+
+
+ + + +
+

{t('services.outsourcing.title')}

+
+
    +
  • + 1. + {t('services.outsourcing.item1')} +
  • +
  • + 2. + {t('services.outsourcing.item2')} +
  • +
  • + 3. + {t('services.outsourcing.item3')} +
  • +
  • + 4. + {t('services.outsourcing.item4')} +
  • +
  • + 5. + {t('services.outsourcing.item5')} +
  • +
+
+ + +
+
+
+ + + + +
+

{t('services.bugfix.title')}

+
+
    +
  • + 1. + {t('services.bugfix.item1')} +
  • +
  • + 2. + {t('services.bugfix.item2')} +
  • +
  • + 3. + {t('services.bugfix.item3')} +
  • +
  • + 4. + {t('services.bugfix.item4')} +
  • +
  • + 5. + {t('services.bugfix.item5')} +
  • +
+
+
+
+
+