From 79ac0d220d7b821507d6949178961fbbad43ce9f Mon Sep 17 00:00:00 2001 From: xpy01xpy <49626679+xpy01xpy@users.noreply.github.com> Date: Wed, 18 Sep 2024 09:53:18 +0800 Subject: [PATCH 1/4] Scaaienter (#266) * add scaenter * fix style * fix style * update github url --- src/components/ai/AiButton.astro | 32 +++ src/components/ai/HomeIntroduce.astro | 30 +-- src/components/home/Carousel.astro | 6 +- src/components/home/Carousel_ai.astro | 109 ---------- src/components/home/CompaniesFeedback.astro | 1 + src/components/home/HomeIntroduce.astro | 91 +++++--- src/components/home/HomeIntroduce_ai.astro | 220 -------------------- 7 files changed, 97 insertions(+), 392 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..3d335b2d1 --- /dev/null +++ b/src/components/ai/AiButton.astro @@ -0,0 +1,32 @@ +--- +import { useTranslations } from "@i18n/util"; +import Button from "@components/home/StarAndForkV2/Button.jsx"; +import Video from "@components/home/StarAndForkV2/Video.jsx"; + +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 72585c8f1..6b02b8fb8 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 {