@@ -35,7 +35,6 @@ const t = useTranslations(Astro);
/* 小于50rem 小于 800px */
@media (max-width: 50rem) {
.top-title {
- margin-top: 2.5rem;
margin-bottom: 2.5rem;
}
.top-title .title {
diff --git a/src/components/home/OverViewImage/index.jsx b/src/components/home/OverViewImage/index.jsx
index b013f7e99fa..5640df6ff1f 100644
--- a/src/components/home/OverViewImage/index.jsx
+++ b/src/components/home/OverViewImage/index.jsx
@@ -2,11 +2,6 @@ import React from "react";
import "tailwindcss/tailwind.css";
import "./style.css";
import { useState } from "preact/hooks";
-import { Arrow } from "./components/common/Arrow";
-import { Panel } from "./components/common/Panel";
-import { Product } from "./components/common/Product";
-
-import { PopupContent } from "./components/common/PopupContent";
import { GovernancePanel } from "./components/GovernancePanel";
import { ControlPanel } from "./components/ControlPanel";
import { OpsPanel } from "./components/OpsPanel";
@@ -50,7 +45,7 @@ function App({ colors = defaultColorConfig, linkStyle = "text-sm", className = '
}}
>
-
-
-
-
\ No newline at end of file
diff --git a/src/components/home/StarAndForkV2/Button.jsx b/src/components/home/StarAndForkV2/Button.jsx
new file mode 100644
index 00000000000..d5d1c47b139
--- /dev/null
+++ b/src/components/home/StarAndForkV2/Button.jsx
@@ -0,0 +1,36 @@
+import Jump from './Jump';
+
+const Button = (props) =>{
+ const {
+ href,
+ type = "normal",
+ size = "medium",
+ visibility = true,
+ target = "_self",
+ children,
+ iconClass='',
+ } = props;
+
+ return (
+
+
+
+ );
+};
+
+export default Button;
\ No newline at end of file
diff --git a/src/components/home/StarAndForkV2/Fork.jsx b/src/components/home/StarAndForkV2/Fork.jsx
new file mode 100644
index 00000000000..00fc0b4d8eb
--- /dev/null
+++ b/src/components/home/StarAndForkV2/Fork.jsx
@@ -0,0 +1,23 @@
+const Fork = (props) => {
+ return (
+
+ );
+};
+
+export default Fork;
\ No newline at end of file
diff --git a/src/components/home/StarAndForkV2/Jump.jsx b/src/components/home/StarAndForkV2/Jump.jsx
new file mode 100644
index 00000000000..465cdad1ca4
--- /dev/null
+++ b/src/components/home/StarAndForkV2/Jump.jsx
@@ -0,0 +1,22 @@
+const Jump = (props) => {
+ return (
+
+ );
+};
+
+export default Jump;
\ No newline at end of file
diff --git a/src/components/home/StarAndForkV2/Star.jsx b/src/components/home/StarAndForkV2/Star.jsx
new file mode 100644
index 00000000000..b4a8bb48ffc
--- /dev/null
+++ b/src/components/home/StarAndForkV2/Star.jsx
@@ -0,0 +1,24 @@
+const Star = (props) => {
+ return (
+
+ );
+};
+
+export default Star;
\ No newline at end of file
diff --git a/src/components/home/StarAndForkV2/index.tsx b/src/components/home/StarAndForkV2/index.tsx
new file mode 100644
index 00000000000..a2b71aa26b7
--- /dev/null
+++ b/src/components/home/StarAndForkV2/index.tsx
@@ -0,0 +1,57 @@
+import Button from './Button.jsx';
+import Star from "./Star.jsx";
+import Fork from "./Fork.jsx";
+import { useEffect, useState } from "preact/hooks";
+import useCustomSWR from "@/utils/useCustomSWR";
+import type { StarAndForkT } from 'src/types';
+
+
+const StarAndForkV2 = (props:StarAndForkT) =>{
+ const { swrData={}, fetchData } = useCustomSWR("https://git-proxy-test-git-proxy-ieeqhwptvv.cn-hongkong.fcapp.run/api/alibaba/nacos");
+ const [startCount, setStartCount] = useState(props.stargazers_count || 0);
+ const [forkCount, setForkCount] = useState(props.forks_count || 0);
+
+ const start = async () => {
+ // 请求成功才会设置star/fork数
+ if (swrData.stargazers_count) {
+ const { stargazers_count, forks_count } = swrData;
+ setStartCount(stargazers_count || props.stargazers_count);
+ setForkCount(forks_count || props.forks_count);
+ }
+ };
+
+ useEffect(()=>{
+ start();
+ },[swrData]);
+
+ useEffect(()=>{
+ fetchData()
+ },[]);
+
+ return (
+
+
+
+
+
+ );
+};
+
+export default StarAndForkV2;
\ No newline at end of file
diff --git a/src/components/icon/Flames.astro b/src/components/icon/Flames.astro
new file mode 100644
index 00000000000..7591b08df62
--- /dev/null
+++ b/src/components/icon/Flames.astro
@@ -0,0 +1,23 @@
+---
+interface Props {
+ classes?: string;
+}
+
+const { classes='icon' } = Astro.props;
+---
+
+
\ No newline at end of file
diff --git a/src/components/markdownSet/BlogTop.astro b/src/components/markdownSet/BlogTop.astro
index 66a1554037d..be7b5bdc19b 100644
--- a/src/components/markdownSet/BlogTop.astro
+++ b/src/components/markdownSet/BlogTop.astro
@@ -13,6 +13,7 @@ const backIconMap = {
"news-sub": "/news",
"activity-sub": "/activity",
};
+const typeArr = ["home", "blog-sub", "wuyi-sub"];
---