From 4073f80e7e84836f2380e4f0c55afc0776c877bb Mon Sep 17 00:00:00 2001 From: xpf <965732851@qq.com> Date: Fri, 13 Sep 2024 18:27:57 +0800 Subject: [PATCH 1/4] add scaenter --- src/components/ai/AiButton.astro | 33 ++++ src/components/ai/HomeIntroduce.astro | 30 +-- src/components/home/Carousel.astro | 6 +- src/components/home/Carousel_ai.astro | 109 ---------- src/components/home/HomeIntroduce.astro | 87 +++++--- src/components/home/HomeIntroduce_ai.astro | 220 --------------------- 6 files changed, 95 insertions(+), 390 deletions(-) create mode 100644 src/components/ai/AiButton.astro delete mode 100644 src/components/home/Carousel_ai.astro delete mode 100644 src/components/home/HomeIntroduce_ai.astro diff --git a/src/components/ai/AiButton.astro b/src/components/ai/AiButton.astro new file mode 100644 index 000000000..e7951db2b --- /dev/null +++ b/src/components/ai/AiButton.astro @@ -0,0 +1,33 @@ +--- +import { useTranslations } from "@i18n/util"; +import Button from "@components/home/StarAndForkV2/Button.jsx"; +import Video from "@components/home/StarAndForkV2/Video.jsx"; +import { SITE } from "@utils/config"; + +const t = useTranslations(Astro); +--- + +
+ + + +
\ No newline at end of file diff --git a/src/components/ai/HomeIntroduce.astro b/src/components/ai/HomeIntroduce.astro index 9bce0c8e2..b8b68f7e6 100644 --- a/src/components/ai/HomeIntroduce.astro +++ b/src/components/ai/HomeIntroduce.astro @@ -1,9 +1,6 @@ --- import { useTranslations } from "@i18n/util"; -import Button from "@components/home/StarAndForkV2/Button.jsx"; -import Video from "@components/home/StarAndForkV2/Video.jsx"; -import { SITE } from "@utils/config"; - +import AiButton from "@components/ai/AiButton.astro"; const t = useTranslations(Astro); --- @@ -18,30 +15,7 @@ const t = useTranslations(Astro);

{t('home.website.ai.quickly.develop')}

-
- - - -
+ diff --git a/src/components/home/Carousel.astro b/src/components/home/Carousel.astro index ad3cedbb8..78c3e5d86 100644 --- a/src/components/home/Carousel.astro +++ b/src/components/home/Carousel.astro @@ -13,11 +13,11 @@ const {