Skip to content

Commit 3bf3f42

Browse files
committed
UI & Dark theme improvements
1 parent a97e152 commit 3bf3f42

File tree

4 files changed

+18
-11
lines changed

4 files changed

+18
-11
lines changed

public/og-image.png

519 KB
Loading

src/components/BaseHead.astro

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ interface Props {
1414
1515
const canonicalURL = new URL(Astro.url.pathname, Astro.site);
1616
17-
const { title, description, image = FallbackImage } = Astro.props;
17+
const { title, description, image } = Astro.props;
18+
19+
// Use custom OG image from public folder, or provided image, or fallback
20+
const ogImageUrl = image
21+
? new URL(image.src, Astro.url)
22+
: new URL('/og-image.png', Astro.url);
1823
---
1924

2025
<!-- Global Metadata -->
@@ -49,11 +54,11 @@ const { title, description, image = FallbackImage } = Astro.props;
4954
<meta property="og:url" content={Astro.url} />
5055
<meta property="og:title" content={title} />
5156
<meta property="og:description" content={description} />
52-
<meta property="og:image" content={new URL(image.src, Astro.url)} />
57+
<meta property="og:image" content={ogImageUrl} />
5358

5459
<!-- Twitter -->
5560
<meta property="twitter:card" content="summary_large_image" />
5661
<meta property="twitter:url" content={Astro.url} />
5762
<meta property="twitter:title" content={title} />
5863
<meta property="twitter:description" content={description} />
59-
<meta property="twitter:image" content={new URL(image.src, Astro.url)} />
64+
<meta property="twitter:image" content={ogImageUrl} />

src/layouts/BlogPost.astro

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -381,9 +381,9 @@ const { title, description, pubDate, updatedDate, heroImage } = Astro.props;
381381
/* Layout Grid - Fixed Widths for Proper Alignment */
382382
.content-grid {
383383
display: grid;
384-
grid-template-columns: 280px 800px 280px; /* Fixed widths for alignment */
384+
grid-template-columns: 280px 900px 280px; /* Increased center from 800px to 900px */
385385
gap: 3rem;
386-
max-width: 1460px; /* 280 + 800 + 280 + gaps */
386+
max-width: 1560px; /* 280 + 900 + 280 + gaps */
387387
margin: 0 auto;
388388
align-items: start;
389389
padding: 0 2rem;

src/pages/breakdowns/index.astro

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -205,20 +205,22 @@ const totalPages = Math.ceil(breakdowns.length / BREAKDOWNS_PER_PAGE);
205205
}
206206

207207
.tag {
208-
background: rgba(255, 255, 255, 0.5);
209-
backdrop-filter: blur(4px);
208+
background: var(--bg-card);
210209
padding: 0.25rem 0.6rem;
211210
border-radius: 12px;
212-
color: var(--fg-secondary);
211+
color: var(--accent-link);
213212
font-size: 0.8rem;
214213
font-weight: 500;
215-
transition: all 0.2s ease;
214+
transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
216215
border: 1px solid var(--border-subtle);
217216
}
218217

219218
.tag:hover {
220-
transform: scale(1.05);
221-
background: rgba(0, 0, 0, 0.05);
219+
transform: translateY(-1px) scale(1.05);
220+
background: rgba(255, 158, 100, 0.12);
221+
border-color: var(--accent-primary);
222+
color: var(--accent-primary);
223+
box-shadow: 0 2px 8px rgba(255, 158, 100, 0.2);
222224
}
223225

224226
.pagination {

0 commit comments

Comments
 (0)