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] 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);
+---
+
+
+
+
+ {t('commmon.footer.actions.start')}
+
+
+
+ GITHUB
+
+
\ 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')}
-
-
-
- {t('commmon.footer.actions.start')}
-
-
-
- GITHUB
-
-
+
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 {
-
+
@@ -28,7 +28,7 @@ const {
-
+
diff --git a/src/components/home/Carousel_ai.astro b/src/components/home/Carousel_ai.astro
deleted file mode 100644
index 78c3e5d86..000000000
--- a/src/components/home/Carousel_ai.astro
+++ /dev/null
@@ -1,109 +0,0 @@
----
-interface Props {
- useduration?: string; // 是否启用自动轮播 apply / disabled
- duration?: number; // 图片轮播时间 例如: 1000。 (组件默认 5000s)
-}
-
-const {
- duration=5000,
- useduration="disabled",
-} = Astro.props as Props;
----
-
-
-
-
-
diff --git a/src/components/home/CompaniesFeedback.astro b/src/components/home/CompaniesFeedback.astro
index eec25239c..fd5073a16 100644
--- a/src/components/home/CompaniesFeedback.astro
+++ b/src/components/home/CompaniesFeedback.astro
@@ -113,6 +113,7 @@ const themeCardColor = {