Skip to content

Commit 8353357

Browse files
committed
fix: add metadataBase and refresh og card (v0.6.2)
- app/layout.tsx: metadataBase was missing, og/twitter images fell back to localhost:3000 in production, breaking link previews when shared - opengraph-image.tsx: add a 4th "applications mobiles" tile (expo & react native) alongside sites vitrines/saas/seo local, resize tiles to fit four cleanly, update tagline; brighten the near-invisible randy-code.dev footer text
1 parent b5fe651 commit 8353357

4 files changed

Lines changed: 32 additions & 14 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
# Changelog
22

3+
## [0.6.2] — 2026-08-02
4+
5+
### Corrections
6+
7+
- **`metadataBase` manquant** — `app/layout.tsx` exportait `metadata` sans `metadataBase` : Next.js retombait sur `http://localhost:3000` pour résoudre l'image OG et la Twitter card en production, cassant les aperçus de lien sur les réseaux sociaux. Ajout de `metadataBase: new URL("https://randy-code.dev")`.
8+
9+
### Contenu
10+
11+
- **OG card** (`app/opengraph-image.tsx`) — 4ème tuile "Applications mobiles" (Expo & React Native, backend temps réel) ajoutée aux 3 tuiles existantes ; taille réduite pour garder les 4 lisibles ; tagline mise à jour ("SaaS · Mobile · SEO local") ; `randy-code.dev` en bas de carte éclairci et passé en gras (`#1e293b` → `#94a3b8`), quasi invisible avant
12+
13+
---
14+
315
## [0.6.1] — 2026-08-02
416

517
### Dépendances

‎app/layout.tsx‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ export const viewport: Viewport = {
1818
};
1919

2020
export const metadata: Metadata = {
21+
metadataBase: new URL("https://randy-code.dev"),
2122
appleWebApp: {
2223
capable: true,
2324
statusBarStyle: "black-translucent",

‎app/opengraph-image.tsx‎

Lines changed: 18 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,22 @@ export const contentType = "image/png";
99
const services = [
1010
{
1111
title: "Sites vitrines",
12-
desc: "Rapides, SEO-ready et\nconçus pour convertir",
12+
desc: "Rapides, SEO-ready,\npensés pour convertir",
1313
color: "#22d3ee",
1414
},
1515
{
1616
title: "Applications SaaS",
1717
desc: "Auth, paiement, IA —\nde l'idée à la prod",
1818
color: "#8b5cf6",
1919
},
20+
{
21+
title: "Applications mobiles",
22+
desc: "Expo & React Native,\nbackend temps réel",
23+
color: "#3b82f6",
24+
},
2025
{
2126
title: "SEO local",
22-
desc: "Google Maps, pages locales\noptimisées — toute la France",
27+
desc: "Google Maps, pages\nlocales optimisées",
2328
color: "#10b981",
2429
},
2530
];
@@ -151,12 +156,12 @@ export default async function Image() {
151156
marginBottom: 52,
152157
}}
153158
>
154-
SaaS · SEO local · Outils sur mesure — des produits pensés pour être
155-
utiles et durables.
159+
SaaS · Mobile · SEO local — des produits pensés pour être utiles et
160+
durables.
156161
</div>
157162

158163
{/* Service blocks */}
159-
<div style={{ display: "flex", gap: 20 }}>
164+
<div style={{ display: "flex", gap: 16 }}>
160165
{services.map((service) => (
161166
<div
162167
key={service.title}
@@ -167,25 +172,25 @@ export default async function Image() {
167172
background: "rgba(255,255,255,0.03)",
168173
border: "1px solid rgba(255,255,255,0.07)",
169174
borderRadius: 14,
170-
padding: "24px 28px",
171-
gap: 10,
175+
padding: "20px 20px",
176+
gap: 8,
172177
}}
173178
>
174179
{/* Color accent */}
175180
<div
176181
style={{
177182
display: "flex",
178-
width: 32,
183+
width: 28,
179184
height: 3,
180185
borderRadius: 2,
181186
background: service.color,
182-
marginBottom: 4,
187+
marginBottom: 2,
183188
}}
184189
/>
185190
<div
186191
style={{
187192
display: "flex",
188-
fontSize: 22,
193+
fontSize: 19,
189194
fontFamily: "Inter",
190195
fontWeight: 700,
191196
color: "#f1f5f9",
@@ -196,7 +201,7 @@ export default async function Image() {
196201
<div
197202
style={{
198203
display: "flex",
199-
fontSize: 16,
204+
fontSize: 14,
200205
fontFamily: "Inter",
201206
fontWeight: 400,
202207
color: "#475569",
@@ -220,8 +225,8 @@ export default async function Image() {
220225
display: "flex",
221226
fontSize: 16,
222227
fontFamily: "Inter",
223-
fontWeight: 400,
224-
color: "#1e293b",
228+
fontWeight: 700,
229+
color: "#94a3b8",
225230
letterSpacing: "0.05em",
226231
}}
227232
>

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "randy-code",
3-
"version": "0.6.1",
3+
"version": "0.6.2",
44
"private": true,
55
"scripts": {
66
"dev": "next dev",

0 commit comments

Comments
 (0)