From 00f8c080efd2c4dafcfaa5007e91e3f6a06c403e Mon Sep 17 00:00:00 2001 From: shaun Date: Fri, 10 Apr 2026 15:03:41 +0800 Subject: [PATCH] Split cloud page content from homepage --- src/components/CloudPageBrandBreak/index.tsx | 110 +++ .../CloudPageBrandBreak/styles.module.scss | 170 ++++ .../CloudPageDeveloperBenefits/index.tsx | 121 +++ .../styles.module.scss | 429 ++++++++++ src/components/CloudPageFirstScreen/index.tsx | 135 +++ .../CloudPageFirstScreen/styles.module.scss | 454 ++++++++++ src/components/CloudPageIntro/index.tsx | 16 + src/components/CloudPageLinearFlow/index.tsx | 457 ++++++++++ .../CloudPageLinearFlow/styles.module.scss | 788 ++++++++++++++++++ src/components/CloudPagePainPoints/index.tsx | 110 +++ .../CloudPagePainPoints/styles.module.scss | 224 +++++ src/components/DownloadButton/index.tsx | 75 +- src/components/GetStartedPrompt/index.tsx | 5 +- .../HomePagePricing/style.module.scss | 6 +- src/components/HomepageBrandBreak/index.tsx | 53 +- .../HomepageBrandBreak/styles.module.scss | 16 +- src/components/HomepageCodexBlocks/index.tsx | 9 +- .../HomepageCodexBlocks/styles.module.scss | 9 +- .../HomepageDownloads/styles.module.scss | 6 +- .../HomepageLifecycle/styles.module.scss | 13 +- .../HomepageLinearFlow/styles.module.scss | 8 +- .../HomepagePainPoints/styles.module.scss | 12 +- .../styles.module.scss | 21 +- .../StudioDetailContent/styles.module.scss | 3 +- .../StudioPdfCraftCase/styles.module.scss | 5 +- src/pages/app/index.tsx | 31 +- src/pages/app/styles.module.scss | 1 - src/pages/cloud/index.tsx | 239 +----- src/pages/cloud/styles.module.scss | 433 ---------- src/pages/contact-us/styles.module.scss | 6 +- src/pages/downloads/index.tsx | 4 +- src/pages/hub/styles.module.scss | 8 +- src/pages/studio/styles.module.scss | 3 +- src/theme/Navbar/index.tsx | 9 +- 34 files changed, 3231 insertions(+), 758 deletions(-) create mode 100644 src/components/CloudPageBrandBreak/index.tsx create mode 100644 src/components/CloudPageBrandBreak/styles.module.scss create mode 100644 src/components/CloudPageDeveloperBenefits/index.tsx create mode 100644 src/components/CloudPageDeveloperBenefits/styles.module.scss create mode 100644 src/components/CloudPageFirstScreen/index.tsx create mode 100644 src/components/CloudPageFirstScreen/styles.module.scss create mode 100644 src/components/CloudPageIntro/index.tsx create mode 100644 src/components/CloudPageLinearFlow/index.tsx create mode 100644 src/components/CloudPageLinearFlow/styles.module.scss create mode 100644 src/components/CloudPagePainPoints/index.tsx create mode 100644 src/components/CloudPagePainPoints/styles.module.scss delete mode 100644 src/pages/cloud/styles.module.scss diff --git a/src/components/CloudPageBrandBreak/index.tsx b/src/components/CloudPageBrandBreak/index.tsx new file mode 100644 index 0000000..7fb6d3a --- /dev/null +++ b/src/components/CloudPageBrandBreak/index.tsx @@ -0,0 +1,110 @@ +import styles from "./styles.module.scss"; + +import type { DocusaurusContext } from "@docusaurus/types"; + +import useDocusaurusContext from "@docusaurus/useDocusaurusContext"; +import React from "react"; + +export default function CloudPageBrandBreak() { + const { i18n } = useDocusaurusContext() as unknown as DocusaurusContext & { + i18n: { currentLocale: string }; + }; + const isZh = i18n.currentLocale === "zh-CN"; + + return ( +
+
+

+ {isZh ? "一次构建\n持续交付" : "Build once\nDeliver continuously"} +

+

+ {isZh + ? "从 Skill 创建到云端运行,一条完整的路径。" + : "From skill creation to cloud runtime — one complete path."} +

+
+
+
+ + + + +
+ + {isZh ? "Studio 创建" : "Create in Studio"} + +
+ +
+
+ + + +
+ + {isZh ? "Cloud 运行" : "Run on Cloud"} + +
+ +
+
+