From cd1e54688f8a740db0318b061814e415b0a6c249 Mon Sep 17 00:00:00 2001 From: "tangly1024.com" Date: Mon, 5 Feb 2024 19:10:17 +0800 Subject: [PATCH 1/2] =?UTF-8?q?Landing=E4=B8=BB=E9=A2=98=E5=AE=8C=E5=96=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- next.config.js | 13 ++--- themes/landing/components/Features.js | 10 ++-- themes/landing/components/FeaturesBlocks.js | 18 +++---- themes/landing/components/Header.js | 4 +- themes/landing/components/Hero.js | 2 +- themes/landing/components/Pricing.js | 56 +++++++++++++++++++++ themes/landing/components/Testimonials.js | 4 +- themes/landing/config.js | 23 ++++++++- themes/landing/index.js | 8 +-- 9 files changed, 109 insertions(+), 29 deletions(-) create mode 100644 themes/landing/components/Pricing.js diff --git a/next.config.js b/next.config.js index d0e32e96..13025163 100644 --- a/next.config.js +++ b/next.config.js @@ -16,13 +16,14 @@ function scanSubdirectories(directory) { const subdirectories = [] fs.readdirSync(directory).forEach(file => { - const fullPath = path.join(directory, file) - const stats = fs.statSync(fullPath) + // 这段代码会将landing排除在可选主题中 - // landing主题比较特殊,不在可切换的主题中显示 - if (stats.isDirectory() && file !== 'landing') { - subdirectories.push(file) - } + // const fullPath = path.join(directory, file) + // const stats = fs.statSync(fullPath) + // landing主题默认隐藏掉,一般网站不会用到 + // if (stats.isDirectory() && file !== 'landing') { + // subdirectories.push(file) + // } }) return subdirectories diff --git a/themes/landing/components/Features.js b/themes/landing/components/Features.js index c0e403b5..c576fd3a 100644 --- a/themes/landing/components/Features.js +++ b/themes/landing/components/Features.js @@ -25,7 +25,7 @@ export default function Features() {
{/* Section background (needs .relative class on parent and next sibling elements) */} - +
@@ -33,8 +33,8 @@ export default function Features() { {/* Section header */}
-

{siteConfig('LANDING_FEATURES_HEADER_1', null, CONFIG)}

-

+

{siteConfig('LANDING_FEATURES_HEADER_1', null, CONFIG)}

+

{/* Section content */} @@ -43,8 +43,8 @@ export default function Features() { {/* Content */}
-

{siteConfig('LANDING_FEATURES_HEADER_2', null, CONFIG)}

-

{siteConfig('LANDING_FEATURES_HEADER_2_P', null, CONFIG)}

+

{siteConfig('LANDING_FEATURES_HEADER_2', null, CONFIG)}

+

{siteConfig('LANDING_FEATURES_HEADER_2_P', null, CONFIG)}

{/* Tabs buttons */}
diff --git a/themes/landing/components/FeaturesBlocks.js b/themes/landing/components/FeaturesBlocks.js index 07e63e50..fd3068b6 100644 --- a/themes/landing/components/FeaturesBlocks.js +++ b/themes/landing/components/FeaturesBlocks.js @@ -6,7 +6,7 @@ export default function FeaturesBlocks() {
{/* Section background (needs .relative class on parent and next sibling elements) */} - +
@@ -14,15 +14,15 @@ export default function FeaturesBlocks() { {/* Section header */}
-

{siteConfig('LANDING_FEATURES_BLOCK_HEADER', null, CONFIG)}

-

+

{siteConfig('LANDING_FEATURES_BLOCK_HEADER', null, CONFIG)}

+

{/* Items */}
{/* 1st item */} -
+
@@ -39,7 +39,7 @@ export default function FeaturesBlocks() {
{/* 2nd item */} -
+
@@ -55,7 +55,7 @@ export default function FeaturesBlocks() {
{/* 3rd item */} -
+
@@ -72,7 +72,7 @@ export default function FeaturesBlocks() {
{/* 4th item */} -
+
@@ -89,7 +89,7 @@ export default function FeaturesBlocks() {
{/* 5th item */} -
+
@@ -105,7 +105,7 @@ export default function FeaturesBlocks() {
{/* 6th item */} -
+
diff --git a/themes/landing/components/Header.js b/themes/landing/components/Header.js index 2b0540ff..2b71d944 100644 --- a/themes/landing/components/Header.js +++ b/themes/landing/components/Header.js @@ -22,7 +22,7 @@ export default function Header() { }, [top]) return ( -
+
@@ -36,7 +36,7 @@ export default function Header() { {/* Desktop sign in links */}