diff --git a/docs/website/docusaurus.config.js b/docs/website/docusaurus.config.js index 5e38eb1a599..b2f01098998 100644 --- a/docs/website/docusaurus.config.js +++ b/docs/website/docusaurus.config.js @@ -60,34 +60,34 @@ const config = { themeConfig: { // @type {import('@docusaurus/preset-classic').ThemeConfig} metadata: [{ name: 'title', content: 'Sealos by 环界云' }], - ...(!isChinese && { - announcementBar: { - id: 'sealos_tip', - content: ` -
- `, - isCloseable: true, - } - }), + // ...(!isChinese && { + // announcementBar: { + // id: 'sealos_tip', + // content: ` + // + // `, + // isCloseable: true, + // } + // }), algolia: { // Algolia 提供的应用 ID appId: "SLTSB7B9Y0", diff --git a/docs/website/src/components/SaleBanner/index.scss b/docs/website/src/components/SaleBanner/index.scss index 33782391737..bfa5c53dfb2 100644 --- a/docs/website/src/components/SaleBanner/index.scss +++ b/docs/website/src/components/SaleBanner/index.scss @@ -71,7 +71,7 @@ flex-direction: column; align-items: center; justify-content: center; - padding: 0 117px; + padding: 0 110px; color: #fff; font-style: normal; diff --git a/docs/website/src/components/SaleBanner/index.tsx b/docs/website/src/components/SaleBanner/index.tsx index 8850522507a..cc5c8437a32 100644 --- a/docs/website/src/components/SaleBanner/index.tsx +++ b/docs/website/src/components/SaleBanner/index.tsx @@ -3,17 +3,21 @@ import DrawIcon from '@site/static/icons/draw.svg'; import LogoIcon from '@site/static/icons/sealos.svg'; import React, { useEffect, useState } from 'react'; import './index.scss'; +import useWindow from '@site/src/hooks/useWindow'; export default function SaleBanner() { const [isBannerVisible, setIsBannerVisible] = useState(false); - const [doMain, setDoMain] = useState('cloud.sealos.io'); + const { cloudUrl } = useWindow(); const closeBanner = () => { setIsBannerVisible(false); }; const goDetailFeishu = () => { - window.open(`https://forum.laf.run/d/1207`, '_blank'); + window.open( + `https://fael3z0zfze.feishu.cn/wiki/SzKowEuQji5coRkm5o8cm8oJn3L?from=from_copylink`, + '_blank' + ); }; useEffect(() => { @@ -32,7 +36,7 @@ export default function SaleBanner() { return ( <>