diff --git a/src/components/BaseComponents/Card/index.tsx b/src/components/BaseComponents/Card/index.tsx index 5f5d8532b0..b66a3a47ed 100644 --- a/src/components/BaseComponents/Card/index.tsx +++ b/src/components/BaseComponents/Card/index.tsx @@ -10,6 +10,7 @@ interface IProps extends ICommonProps { isDownload?: boolean; padding?: number[]; onClick?: () => void; + title?: string; } const Card: FC = ({ children, @@ -19,6 +20,7 @@ const Card: FC = ({ isDownload = false, style, onClick, + title, }): ReactElement => { const p = padding || [28, 24]; const props = { @@ -28,7 +30,13 @@ const Card: FC = ({ return ( <> {href ? ( - + {children} ) : ( diff --git a/src/components/DocsOverview/index.tsx b/src/components/DocsOverview/index.tsx index dd69a77ef3..abc596f2ed 100644 --- a/src/components/DocsOverview/index.tsx +++ b/src/components/DocsOverview/index.tsx @@ -67,7 +67,11 @@ const DocsOverview: FC = (): ReactElement => {
- +

{$t("Databend Cloud")}

@@ -77,9 +81,13 @@ const DocsOverview: FC = (): ReactElement => {
- +

- {$t("Databend Enterprise")} + {$t("Databend Enterprise")}

{$t("Self-hosted with enterprise features and support.")} @@ -87,7 +95,11 @@ const DocsOverview: FC = (): ReactElement => { - +

{$t("Databend Community")}

@@ -189,6 +201,7 @@ const DocsOverview: FC = (): ReactElement => { @@ -206,17 +219,26 @@ const DocsOverview: FC = (): ReactElement => {
{$t("What you need to know:")}
  • - + {$t("Choose Your Edition")}
  • - + {$t("Pricing & Plans")}
  • - + {$t("Using Databend Cloud")}
  • @@ -226,7 +248,11 @@ const DocsOverview: FC = (): ReactElement => { - +
    {$t("Deploy Your Own Instance")}
    @@ -241,17 +267,26 @@ const DocsOverview: FC = (): ReactElement => {
    {$t("What you need to know:")}
    • - + {$t("5-Minute Quick Start")}
    • - + {$t("Download & Install")}
    • - + {$t("Enterprise Features & Licensing")}
    • diff --git a/src/components/DocsOverview/small-card.tsx b/src/components/DocsOverview/small-card.tsx index fc80d44475..7624b7a687 100644 --- a/src/components/DocsOverview/small-card.tsx +++ b/src/components/DocsOverview/small-card.tsx @@ -12,7 +12,7 @@ interface IProps { const SmallCard: FC = ({ icon, text, to }): ReactElement => { return (
      - + {icon} {text} diff --git a/src/components/DocsOverview/title.tsx b/src/components/DocsOverview/title.tsx index a52002511c..5c6c8d4c44 100644 --- a/src/components/DocsOverview/title.tsx +++ b/src/components/DocsOverview/title.tsx @@ -39,6 +39,7 @@ const Title: FC = ({ {link?.text && ( diff --git a/src/components/JoinCommunity/index.tsx b/src/components/JoinCommunity/index.tsx index 9b8cc2f8f5..b01b90741b 100644 --- a/src/components/JoinCommunity/index.tsx +++ b/src/components/JoinCommunity/index.tsx @@ -16,6 +16,7 @@ import Bili from "@site/static/icons/bili.svg"; import GongzhonghaoImg from "@site/static/img/databend-gongzhonghao.jpeg"; import SalesImg from "@site/static/img/sales.jpeg"; import { Tooltip } from "antd"; +import Contact from "@site/static/icons/contact.svg"; interface TProps { titleAlign?: | "start" @@ -118,7 +119,7 @@ const JoinCommunity: FC = ({ > {community.map((item, index) => { return ( - +
      {item.icon}
      {item.title}
      @@ -133,7 +134,7 @@ const JoinCommunity: FC = ({ ); })} - {isChina && ( + {isChina ? (
      微信
      @@ -167,6 +168,36 @@ const JoinCommunity: FC = ({ 185 1688 8139
      + ) : ( +
      +
      + Or simply contact us directly +
      +
      + +
      +
      + +
      +
      Contact Us
      +
      + + +
      +
      🚀
      +
      Explore Databend Cloud
      +
      + +
      +
      )}
      diff --git a/src/components/JoinCommunity/styles.module.scss b/src/components/JoinCommunity/styles.module.scss index dd87a69a46..6f657e999d 100644 --- a/src/components/JoinCommunity/styles.module.scss +++ b/src/components/JoinCommunity/styles.module.scss @@ -1,57 +1,57 @@ -.Community{ +.Community { display: flex; gap: 24px; flex-direction: column; padding-top: 32px; - h6{ + h6 { text-align: center; margin: 0; font-weight: 400; color: var(--color-text-1); } - .CommunityGroup{ - display: flex; - gap: 24px; - flex-direction: row; - flex-wrap: wrap; - .communityItem{ - padding: 12px; + .CommunityGroup { display: flex; - gap: 8px; - align-items: center; - background-color: var(--color-fill-0); - border-radius: 6px; - border: 1px solid var(--color-border); - min-width: 340px; - width: 100%; - h6{ - margin: 0; - color:var(--color-text-0); - font-weight: 700; - } - .Icon{ - padding: 6px; + gap: 24px; + flex-direction: row; + flex-wrap: wrap; + .communityItem { + padding: 12px; display: flex; - color:var(--color-text-0) - } - &:hover{ - background-color: var(--color-primary-light-default); - border-color: var(--color-primary); - .Icon{ - color: var(--color-primary)!important; + gap: 8px; + align-items: center; + background-color: var(--color-fill-0); + border-radius: 6px; + border: 1px solid var(--color-border); + min-width: 340px; + width: 100%; + h6 { + margin: 0; + color: var(--color-text-0); + font-weight: 700; } - h6{ - text-decoration: none!important; - color: var(--color-primary); + .Icon { + padding: 6px; + display: flex; + color: var(--color-text-0); + } + &:hover { + background-color: var(--color-primary-light-default); + border-color: var(--color-primary); + .Icon { + color: var(--color-primary) !important; + } + h6 { + text-decoration: none !important; + color: var(--color-primary); + } + } + .tag { + font-size: 14px; + color: var(--color-text-1); + background-color: var(--color-fill-1); + padding: 0 4px; + border-radius: 3px; } } - .tag{ - font-size: 14px; - color: var(--color-text-1); - background-color: var(--color-fill-1); - padding: 0 4px; - border-radius: 3px; - } - } } -} \ No newline at end of file +} diff --git a/src/theme/Footer/index.tsx b/src/theme/Footer/index.tsx index 0c672d77b1..71b30c55a1 100644 --- a/src/theme/Footer/index.tsx +++ b/src/theme/Footer/index.tsx @@ -163,11 +163,7 @@ function Footer() { })}
    -

    - Copyright © {year} The Databend Community. Apache, Apache OpenDAL and - OpenDAL are either registered trademarks or trademarks of the Apache - Software Foundation. -

    +

    Copyright © {year} The Databend Community. All rights reserved.

    ); diff --git a/src/theme/MDXComponents/A.js b/src/theme/MDXComponents/A.js index 3ae8dfecbf..a2da4e1b68 100644 --- a/src/theme/MDXComponents/A.js +++ b/src/theme/MDXComponents/A.js @@ -7,26 +7,34 @@ function hasProtocolPrefix(str) { return str.startsWith("http://") || str.startsWith("https://"); } export default function MDXA(props) { - if ( - props?.href?.includes("https://github.com/databendlabs/databend/pull/") || - props?.href?.includes("https://github.com/databendlabs/databend/pull/") - ) { - return ; + let title = props?.children; + if (typeof title !== "string") { + title = ""; + } + if (props?.href?.includes("https://github.com/databendlabs/databend/pull/")) { + return ; } if (hasProtocolPrefix(props?.href)) { return ( - + ); } else { - return ; + return ; } }