From f5395a5c5a9427f7033f4037f16fcdeb7539ec28 Mon Sep 17 00:00:00 2001 From: Brandon Zhang Date: Mon, 29 Sep 2025 10:55:50 +0800 Subject: [PATCH 1/2] accessibility: few semantic improvements - Why: replace h4 to h3 with some extra Tailwind classes - Footer: add an accessible label for email input - Global styles: remove some unneeded CSS - Base layout: add
landmark element --- src/components/global/footer.astro | 4 ++++ src/components/landing/posts.astro | 4 +++- src/components/landing/why.astro | 20 ++++++++++++++------ src/layouts/base.astro | 8 +++++--- src/styles/global.css | 16 ---------------- 5 files changed, 26 insertions(+), 26 deletions(-) diff --git a/src/components/global/footer.astro b/src/components/global/footer.astro index 66d28152..033cd7fa 100644 --- a/src/components/global/footer.astro +++ b/src/components/global/footer.astro @@ -19,7 +19,11 @@ target="_blank" >
+
-

{post.data.title}

+

+ {post.data.title} +

{post.data.description}

diff --git a/src/components/landing/why.astro b/src/components/landing/why.astro index 9219ae66..a68c7f21 100644 --- a/src/components/landing/why.astro +++ b/src/components/landing/why.astro @@ -14,8 +14,10 @@ star symbol
-

Truly independent

-

+

+ Truly independent +

+

No code from other browsers. We're building a new engine, based on web standards.

@@ -29,8 +31,12 @@ target symbol
-

Singular focus

-

We are focused on one thing: the web browser.

+

+ Singular focus +

+

+ We are focused on one thing: the web browser. +

@@ -44,8 +50,10 @@ />
-

No monetization

-

+

+ No monetization +

+

No "default search deals", crypto tokens, or other forms of user monetization, ever.

diff --git a/src/layouts/base.astro b/src/layouts/base.astro index 4c91fcf6..7ee8dfc8 100644 --- a/src/layouts/base.astro +++ b/src/layouts/base.astro @@ -15,8 +15,10 @@ const { title, description, author, image } = Astro.props; /> - - -
+
+ + +
+
diff --git a/src/styles/global.css b/src/styles/global.css index bc476d99..3d4a03b7 100644 --- a/src/styles/global.css +++ b/src/styles/global.css @@ -280,15 +280,6 @@ header a, footer a { background-color: #2a1373; } -.why__slide h4 { - margin-bottom: 14px; - color: #fff; -} - -.why__slide p { - color: #fff; -} - .news { position: relative; margin: 30px 20px 100px 20px; @@ -386,13 +377,6 @@ header a, footer a { padding: 5px 13px; } -.news__box h4 { - font-size: 20px; - font-weight: 600; - line-height: 150%; - margin-bottom: 10px; -} - .news__box p { color: #444345; } From 4c7179a6b42472fadac9793758ff80f3ede6f71d Mon Sep 17 00:00:00 2001 From: Brandon Zhang Date: Mon, 29 Sep 2025 11:20:11 +0800 Subject: [PATCH 2/2] Why component: add `leading-normall` class --- src/components/landing/why.astro | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/landing/why.astro b/src/components/landing/why.astro index a68c7f21..21922ec8 100644 --- a/src/components/landing/why.astro +++ b/src/components/landing/why.astro @@ -14,7 +14,7 @@ star symbol
-

+

Truly independent

@@ -31,7 +31,7 @@ target symbol

-

+

Singular focus

@@ -50,7 +50,7 @@ />

-

+

No monetization