Skip to content

Commit c342601

Browse files
committed
fix: address review feedback on landing pages, a11y, dates, and web-client container
1 parent ea12d9a commit c342601

15 files changed

Lines changed: 44 additions & 26 deletions

File tree

‎apps/landing/src/components/BlogCard.astro‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ const { slug, title, description, date, author, category, tags = [] } = Astro.pr
1616
const formattedDate = new Date(date).toLocaleDateString('en-US', {
1717
year: 'numeric',
1818
month: 'short',
19-
day: 'numeric'
19+
day: 'numeric',
20+
timeZone: 'UTC',
2021
});
2122
---
2223

‎apps/landing/src/components/Navbar.astro‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ import { Zap, DollarSign, FileText, Layers, Database, GitCompare, Code, BookOpen
184184
transition: transform 0.2s ease;
185185
}
186186

187-
.nav-group:hover .nav-group-trigger .chevron {
187+
.nav-group:hover .nav-group-trigger .chevron,
188+
.nav-group:focus-within .nav-group-trigger .chevron {
188189
transform: rotate(180deg);
189190
}
190191

@@ -210,7 +211,8 @@ import { Zap, DollarSign, FileText, Layers, Database, GitCompare, Code, BookOpen
210211
z-index: 200;
211212
}
212213

213-
.nav-group:hover .nav-dropdown {
214+
.nav-group:hover .nav-dropdown,
215+
.nav-group:focus-within .nav-dropdown {
214216
opacity: 1;
215217
visibility: visible;
216218
transform: translateX(-50%) translateY(0);

‎apps/landing/src/layouts/ContentPage.astro‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const formattedDate = date
3131
year: 'numeric',
3232
month: 'long',
3333
day: 'numeric',
34+
timeZone: 'UTC',
3435
})
3536
: null;
3637

‎apps/landing/src/pages/blog/[...slug].astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import { getCollection, render } from 'astro:content';
33
import ContentPage from '../../layouts/ContentPage.astro';
44
55
export async function getStaticPaths() {
6-
const posts = await getCollection('blog');
6+
const posts = await getCollection('blog', ({ data }) => !data.draft);
77
return posts.map((post) => ({
88
params: { slug: post.id },
99
props: { post },

‎apps/landing/src/pages/blog/index.astro‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const remainingPosts = allPosts.slice(1);
6767
</div>
6868

6969
<div class="posts-grid">
70-
{allPosts.map((post) => (
70+
{remainingPosts.map((post) => (
7171
<BlogCard
7272
slug={post.id}
7373
title={post.data.title}
@@ -216,7 +216,7 @@ const remainingPosts = allPosts.slice(1);
216216

217217
.posts-grid {
218218
display: grid;
219-
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
219+
grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
220220
gap: 2rem;
221221
}
222222

‎apps/landing/src/pages/changelog.astro‎

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -98,14 +98,23 @@ let releases: ReleaseEntry[] = fallbackReleases;
9898
9999
if (changelogDir) {
100100
try {
101+
const parseFileDate = (fileName: string): number => {
102+
const clean = fileName.replace('.mdx', '').trim();
103+
const parts = clean.split('-');
104+
if (parts.length >= 2) {
105+
const month = parts[0];
106+
const year = parts[parts.length - 1];
107+
const timestamp = Date.parse(`${month} 1, ${year}`);
108+
if (!isNaN(timestamp)) {
109+
return timestamp;
110+
}
111+
}
112+
return 0;
113+
};
114+
101115
const files = fs.readdirSync(changelogDir)
102116
.filter((f) => f.endsWith('.mdx'))
103-
.sort((a, b) => {
104-
const monthOrder = ['september', 'august', 'july', 'june', 'may', 'april'];
105-
const aMonth = a.split('-')[0].toLowerCase();
106-
const bMonth = b.split('-')[0].toLowerCase();
107-
return monthOrder.indexOf(aMonth) - monthOrder.indexOf(bMonth);
108-
});
117+
.sort((a, b) => parseFileDate(b) - parseFileDate(a));
109118
110119
const parsedReleases: ReleaseEntry[] = [];
111120

‎apps/landing/src/pages/compare/index.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ import { ArrowRight, Database, Flame, Server } from 'lucide-react';
8181

8282
.compare-cards-grid {
8383
display: grid;
84-
grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
84+
grid-template-columns: repeat(auto-fit, minmax(min(100%, 360px), 1fr));
8585
gap: 3rem;
8686
}
8787

‎apps/landing/src/pages/compare/supabase.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -194,7 +194,7 @@ const COMPARISON_ROWS = [
194194

195195
.takeaways-grid {
196196
display: grid;
197-
grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
197+
grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
198198
gap: 2.5rem;
199199
}
200200

‎apps/landing/src/pages/developers.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ const DEV_HIGHLIGHTS = [
133133
<div class="section-header-centered">
134134
<span class="section-badge">OFFICIAL PACKAGES</span>
135135
<h2 class="section-title">First-Party Client Libraries</h2>
136-
<p class="section-desc">Zero-dependency, strictly typed packages maintained directly by the urBackend core team.</p>
136+
<p class="section-desc">Official client libraries and developer tooling maintained directly by the urBackend core team.</p>
137137
</div>
138138

139139
<div class="sdks-grid">

‎apps/landing/src/pages/features.astro‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ await client.mail.send({
444444

445445
.infra-grid {
446446
display: grid;
447-
grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
447+
grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
448448
gap: 2rem;
449449
}
450450

0 commit comments

Comments
 (0)