From 98d9535e61a5a00f91970ea82c586060bf197f16 Mon Sep 17 00:00:00 2001 From: zguiyang Date: Fri, 13 Mar 2026 15:37:35 +0800 Subject: [PATCH] refactor(layout): unify inner-page typography rhythm with container-based widths --- src/components/ui/Container.astro | 2 +- src/layouts/AboutLayout.astro | 6 +++--- src/layouts/BlogPostLayout.astro | 6 +++--- src/pages/blog/index.astro | 4 ++-- src/pages/hire.astro | 16 ++++++++-------- src/pages/now.astro | 12 ++++++------ src/pages/projects.astro | 4 ++-- src/pages/zh/blog/index.astro | 4 ++-- src/pages/zh/hire.astro | 16 ++++++++-------- src/pages/zh/now.astro | 12 ++++++------ src/pages/zh/projects.astro | 4 ++-- src/styles/global.css | 8 ++++++++ 12 files changed, 51 insertions(+), 43 deletions(-) diff --git a/src/components/ui/Container.astro b/src/components/ui/Container.astro index 6e83c6b..c17a73c 100644 --- a/src/components/ui/Container.astro +++ b/src/components/ui/Container.astro @@ -6,6 +6,6 @@ interface Props { const { className = "" } = Astro.props; --- -
+
diff --git a/src/layouts/AboutLayout.astro b/src/layouts/AboutLayout.astro index c1c71ab..e82dd94 100644 --- a/src/layouts/AboutLayout.astro +++ b/src/layouts/AboutLayout.astro @@ -31,7 +31,7 @@ const lang = Astro.currentLocale as Lang || defaultLang;
-
+
@@ -42,14 +42,14 @@ const lang = Astro.currentLocale as Lang || defaultLang; {description && ( -

+

📝 {description}

)} -
+
diff --git a/src/layouts/BlogPostLayout.astro b/src/layouts/BlogPostLayout.astro index a61db57..e650444 100644 --- a/src/layouts/BlogPostLayout.astro +++ b/src/layouts/BlogPostLayout.astro @@ -48,7 +48,7 @@ const finalReadingTime = readTime ? parseInt(readTime.replace(/\D/g, '')) : unde
-
+
@@ -88,14 +88,14 @@ const finalReadingTime = readTime ? parseInt(readTime.replace(/\D/g, '')) : unde {description && ( -

+

{description}

)} -
diff --git a/src/pages/blog/index.astro b/src/pages/blog/index.astro index 9baa66e..988d308 100644 --- a/src/pages/blog/index.astro +++ b/src/pages/blog/index.astro @@ -51,7 +51,7 @@ const sortedBlogPosts = sortPostsByDate(blogPosts);

Blog

-

+

Thoughts on AI products, full-stack development, and building in public. Exploring the intersection of technology and product building.

@@ -74,7 +74,7 @@ const sortedBlogPosts = sortPostsByDate(blogPosts);
-
+ diff --git a/src/pages/hire.astro b/src/pages/hire.astro index 4b3cd0f..8dca36e 100644 --- a/src/pages/hire.astro +++ b/src/pages/hire.astro @@ -27,7 +27,7 @@ const pageTitle = lang === 'zh' ? '合作' : 'Hire Me';

{lang === 'zh' ? '合作' : 'Hire Me'}

-

+

{lang === 'zh' ? '构建优秀产品,从找到合适的技术合伙人开始' : 'Building great products starts with finding the right technical partner'} @@ -39,7 +39,7 @@ const pageTitle = lang === 'zh' ? '合作' : 'Hire Me';

-
+
👥 @@ -101,7 +101,7 @@ const pageTitle = lang === 'zh' ? '合作' : 'Hire Me';
-
+
🛠️ @@ -167,7 +167,7 @@ const pageTitle = lang === 'zh' ? '合作' : 'Hire Me';
-
+
📋 @@ -227,7 +227,7 @@ const pageTitle = lang === 'zh' ? '合作' : 'Hire Me';
-
+
🎯 @@ -300,7 +300,7 @@ const pageTitle = lang === 'zh' ? '合作' : 'Hire Me';
-
+
📅 @@ -341,11 +341,11 @@ const pageTitle = lang === 'zh' ? '合作' : 'Hire Me';
-
+

{lang === 'zh' ? '准备好一起构建了吗?' : 'Ready to build together?'}

-

+

{lang === 'zh' ? '告诉我你的项目想法,让我们看看能否合作。' : "Tell me about your project idea and let's see if we can work together."} diff --git a/src/pages/now.astro b/src/pages/now.astro index eb3e352..9ef1d35 100644 --- a/src/pages/now.astro +++ b/src/pages/now.astro @@ -27,7 +27,7 @@ const pageTitle = lang === 'zh' ? '现在' : 'Now';

{lang === 'zh' ? '现在' : 'Now'}

-

+

{lang === 'zh' ? '持续更新我的现状、正在构建的内容以及合作机会' : 'Continuously updating my current status, what I am building, and collaboration opportunities'} @@ -39,7 +39,7 @@ const pageTitle = lang === 'zh' ? '现在' : 'Now';

-
+
🔨 @@ -76,7 +76,7 @@ const pageTitle = lang === 'zh' ? '现在' : 'Now';
-
+
🔭 @@ -116,7 +116,7 @@ const pageTitle = lang === 'zh' ? '现在' : 'Now';
-
+
🚀 @@ -150,7 +150,7 @@ const pageTitle = lang === 'zh' ? '现在' : 'Now';
-
+
🤝 @@ -190,7 +190,7 @@ const pageTitle = lang === 'zh' ? '现在' : 'Now';
-
+

{lang === 'zh' ? '最后更新:' : 'Last updated: '} 2025年3月 diff --git a/src/pages/projects.astro b/src/pages/projects.astro index 43663b1..6d4fb9a 100644 --- a/src/pages/projects.astro +++ b/src/pages/projects.astro @@ -44,7 +44,7 @@ const statusClassMap = {

{t('projects.title')}

-

+

{t('projects.slogan')} {t('projects.description')}

@@ -53,7 +53,7 @@ const statusClassMap = {
-
+
{filterOptions.map((option, index) => (
@@ -87,7 +87,7 @@ const tags = extractTags(allPostsArray);
-
+
diff --git a/src/pages/zh/hire.astro b/src/pages/zh/hire.astro index 1866e8e..278f457 100644 --- a/src/pages/zh/hire.astro +++ b/src/pages/zh/hire.astro @@ -27,7 +27,7 @@ const pageTitle = lang === 'zh' ? '合作' : 'Hire Me';

合作

-

+

构建优秀产品,从找到合适的技术合伙人开始

@@ -37,7 +37,7 @@ const pageTitle = lang === 'zh' ? '合作' : 'Hire Me';
-
+
👥 @@ -91,7 +91,7 @@ const pageTitle = lang === 'zh' ? '合作' : 'Hire Me';
-
+
🛠️ @@ -151,7 +151,7 @@ const pageTitle = lang === 'zh' ? '合作' : 'Hire Me';
-
+
📋 @@ -205,7 +205,7 @@ const pageTitle = lang === 'zh' ? '合作' : 'Hire Me';
-
+
🎯 @@ -262,7 +262,7 @@ const pageTitle = lang === 'zh' ? '合作' : 'Hire Me';
-
+
📅 @@ -301,11 +301,11 @@ const pageTitle = lang === 'zh' ? '合作' : 'Hire Me';
-
+

准备好一起构建了吗?

-

+

告诉我你的项目想法,让我们看看能否合作。

diff --git a/src/pages/zh/now.astro b/src/pages/zh/now.astro index 2ab363a..aa474d7 100644 --- a/src/pages/zh/now.astro +++ b/src/pages/zh/now.astro @@ -27,7 +27,7 @@ const pageTitle = lang === 'zh' ? '现在' : 'Now';

现在

-

+

持续更新我的现状、正在构建的内容以及合作机会

@@ -37,7 +37,7 @@ const pageTitle = lang === 'zh' ? '现在' : 'Now';
-
+
🔨 @@ -72,7 +72,7 @@ const pageTitle = lang === 'zh' ? '现在' : 'Now';
-
+
🔭 @@ -108,7 +108,7 @@ const pageTitle = lang === 'zh' ? '现在' : 'Now';
-
+
🚀 @@ -140,7 +140,7 @@ const pageTitle = lang === 'zh' ? '现在' : 'Now';
-
+
🤝 @@ -178,7 +178,7 @@ const pageTitle = lang === 'zh' ? '现在' : 'Now';
-
+

最后更新: 2025年3月 diff --git a/src/pages/zh/projects.astro b/src/pages/zh/projects.astro index 43663b1..6d4fb9a 100644 --- a/src/pages/zh/projects.astro +++ b/src/pages/zh/projects.astro @@ -44,7 +44,7 @@ const statusClassMap = {

{t('projects.title')}

-

+

{t('projects.slogan')} {t('projects.description')}

@@ -53,7 +53,7 @@ const statusClassMap = {
-
+
{filterOptions.map((option, index) => (