Skip to content

Commit 56a9e76

Browse files
committed
Website: Add default OG image for link previews
- Add dark-mode app screenshot as `og-default.png` (1200×630) - Default `ogImage` prop to `/og-default.png` in `Layout.astro` so all non-blog pages get an OG image - Previously, pages without an explicit `ogImage` had no `og:image` tag, causing social platforms to scrape random hero layer images
1 parent 3188de6 commit 56a9e76

5 files changed

Lines changed: 37 additions & 10 deletions

File tree

apps/website/public/og-default.png

590 KB
Loading

apps/website/src/components/Features.astro

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,8 @@ const shipped = [
2525
slug: 'keyboard-first',
2626
icon: '/icons/keyboard.svg',
2727
title: 'Keyboard-first',
28-
description: 'Kb-first navigate, select, copy, move, rename; menus, tabs, settings; command palette. But works with a mouse, too.',
28+
description:
29+
'Kb-first navigate, select, copy, move, rename; menus, tabs, settings; command palette. But works with a mouse, too.',
2930
},
3031
]
3132
@@ -34,8 +35,7 @@ const upcoming = [
3435
slug: 'smart-search',
3536
icon: '/icons/search.svg',
3637
title: 'Smart search',
37-
description:
38-
'Find files by saying: "that PDF contract from last month" or "all my node_modules folders"',
38+
description: 'Find files by saying: "that PDF contract from last month" or "all my node_modules folders"',
3939
badge: 'Works but early stage',
4040
},
4141
{
@@ -49,7 +49,8 @@ const upcoming = [
4949
slug: 'ai-batch',
5050
icon: '/icons/zap.svg',
5151
title: 'AI file organization',
52-
description: 'Say "Clean up my Downloads folder" to get a list of move/delete suggestions you can approve/reject.',
52+
description:
53+
'Say "Clean up my Downloads folder" to get a list of move/delete suggestions you can approve/reject.',
5354
badge: 'Coming soon',
5455
},
5556
]

apps/website/src/components/Footer.astro

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -136,13 +136,37 @@ const currentYear = new Date().getFullYear()
136136
class="flex flex-wrap items-center justify-center gap-x-1 border-t border-[var(--color-border-subtle)] pt-8 text-sm text-[var(--color-text-tertiary)]"
137137
>
138138
<span{currentYear} David Veszelovszki ·</span>
139-
<a href="https://veszelovszki.com" target="_blank" rel="noopener noreferrer" class="underline decoration-[var(--color-border)] underline-offset-2 transition-colors hover:text-[var(--color-text-primary)] hover:decoration-[var(--color-text-tertiary)]">veszelovszki.com</a>
139+
<a
140+
href="https://veszelovszki.com"
141+
target="_blank"
142+
rel="noopener noreferrer"
143+
class="underline decoration-[var(--color-border)] underline-offset-2 transition-colors hover:text-[var(--color-text-primary)] hover:decoration-[var(--color-text-tertiary)]"
144+
>veszelovszki.com</a
145+
>
140146
<span>·</span>
141-
<a href="https://github.com/vdavid" target="_blank" rel="noopener noreferrer" class="underline decoration-[var(--color-border)] underline-offset-2 transition-colors hover:text-[var(--color-text-primary)] hover:decoration-[var(--color-text-tertiary)]">GitHub</a>
147+
<a
148+
href="https://github.com/vdavid"
149+
target="_blank"
150+
rel="noopener noreferrer"
151+
class="underline decoration-[var(--color-border)] underline-offset-2 transition-colors hover:text-[var(--color-text-primary)] hover:decoration-[var(--color-text-tertiary)]"
152+
>GitHub</a
153+
>
142154
<span>·</span>
143-
<a href="https://x.com/vdavid" target="_blank" rel="noopener noreferrer" class="underline decoration-[var(--color-border)] underline-offset-2 transition-colors hover:text-[var(--color-text-primary)] hover:decoration-[var(--color-text-tertiary)]">X</a>
155+
<a
156+
href="https://x.com/vdavid"
157+
target="_blank"
158+
rel="noopener noreferrer"
159+
class="underline decoration-[var(--color-border)] underline-offset-2 transition-colors hover:text-[var(--color-text-primary)] hover:decoration-[var(--color-text-tertiary)]"
160+
>X</a
161+
>
144162
<span>·</span>
145-
<a href="https://www.linkedin.com/in/veszelovszki/" target="_blank" rel="noopener noreferrer" class="underline decoration-[var(--color-border)] underline-offset-2 transition-colors hover:text-[var(--color-text-primary)] hover:decoration-[var(--color-text-tertiary)]">LinkedIn</a>
163+
<a
164+
href="https://www.linkedin.com/in/veszelovszki/"
165+
target="_blank"
166+
rel="noopener noreferrer"
167+
class="underline decoration-[var(--color-border)] underline-offset-2 transition-colors hover:text-[var(--color-text-primary)] hover:decoration-[var(--color-text-tertiary)]"
168+
>LinkedIn</a
169+
>
146170
</div>
147171
</div>
148172
</footer>

apps/website/src/layouts/Layout.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ interface Props {
1010
const {
1111
title,
1212
description = 'The fastest two-pane file manager for macOS. Indexes your whole drive in minutes, shows folder sizes everywhere, instant search, keyboard-driven everything. Built in Rust, free for personal use.',
13-
ogImage,
13+
ogImage = '/og-default.png',
1414
} = Astro.props
1515
---
1616

apps/website/src/pages/features.astro

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,9 @@ import NewsletterInlineWrapper from '../components/NewsletterInlineWrapper.astro
234234

235235
<!-- Download CTA -->
236236
<div class="mt-20 text-center">
237-
<h2 class="mb-4 text-2xl font-bold text-[var(--color-text-primary)]">Wanna see it for yourself? Get Cmdr now.</h2>
237+
<h2 class="mb-4 text-2xl font-bold text-[var(--color-text-primary)]">
238+
Wanna see it for yourself? Get Cmdr now.
239+
</h2>
238240
<p class="mb-8 text-[var(--color-text-secondary)]">
239241
Free forever for personal use. No signup, no trial period.
240242
</p>

0 commit comments

Comments
 (0)