Jotley / website · jotley.ai / src / app / metadata-preview / page.tsx
| 1 | import type { Metadata } from 'next'; |
| 2 | import { OG_IMAGE_PATH, SITE_PAGES, SITE_URL } from '@/lib/site-metadata'; |
| 3 | |
| 4 | export const metadata: Metadata = { |
| 5 | title: 'Jotley — Social Image & Metadata Preview', |
| 6 | robots: { index: false, follow: false }, |
| 7 | alternates: { canonical: null }, |
| 8 | }; |
| 9 | |
| 10 | export default function MetadataPreview() { |
| 11 | return ( |
| 12 | <main style={{ minHeight: '100vh', background: '#0d0b14', color: '#faf7ff', padding: '48px 24px' }}> |
| 13 | <div style={{ maxWidth: 1000, margin: '0 auto' }}> |
| 14 | <p style={{ color: '#b99aff', fontWeight: 600 }}>Jotley · Preview for approval</p> |
| 15 | <h1 style={{ fontSize: 'clamp(28px, 5vw, 42px)', margin: '12px 0' }}>Social image & metadata</h1> |
| 16 | <p style={{ color: '#c0b7cf', marginBottom: 28 }}>The new image appears when a Jotley link is shared. Each page has its own search and social title, description and canonical URL.</p> |
| 17 | <a href={OG_IMAGE_PATH} target="_blank" rel="noreferrer" style={{ display: 'block' }}> |
| 18 | {/* Native img keeps this approval preview identical to the original PNG. */} |
| 19 | {/* eslint-disable-next-line @next/next/no-img-element */} |
| 20 | <img src={OG_IMAGE_PATH} alt="New Jotley social card: Every word, captured and understood." width={1200} height={630} style={{ width: '100%', height: 'auto', borderRadius: 16, border: '1px solid #392b50' }} /> |
| 21 | </a> |
| 22 | <p style={{ color: '#a69ab8', margin: '12px 0 32px', fontSize: 14 }}>1200 × 630 PNG · Used for Open Graph and X/Twitter · Click the image to view full size</p> |
| 23 | <section style={{ background: '#17121f', border: '1px solid #392b50', borderRadius: 14, padding: 24, marginBottom: 32 }}> |
| 24 | <h2 style={{ fontSize: 21, marginBottom: 12 }}>Technical SEO fixes included</h2> |
| 25 | <ul style={{ color: '#c0b7cf', lineHeight: 1.9, listStyle: 'disc', paddingLeft: 20 }}> |
| 26 | <li>Unique titles, descriptions and canonical URLs for all six public pages.</li> |
| 27 | <li>Permanent www-to-apex redirect to consolidate duplicate URLs.</li> |
| 28 | <li>Sitemap generated from the same public page list, without inaccurate update dates.</li> |
| 29 | <li>WebSite and Organization structured data for the site name and publisher.</li> |
| 30 | <li>Review and maintenance pages marked noindex; preview deployments also stay out of search.</li> |
| 31 | <li>Temporary maintenance returns HTTP 503 with Retry-After; robots.txt stays accessible.</li> |
| 32 | </ul> |
| 33 | </section> |
| 34 | {Object.values(SITE_PAGES).map(({ path, title, description }) => ( |
| 35 | <article key={path} style={{ background: '#17121f', border: '1px solid #392b50', borderRadius: 14, padding: 24, marginBottom: 16 }}> |
| 36 | <p style={{ color: '#b99aff', fontSize: 13, marginBottom: 10 }}>{new URL(path, SITE_URL).href}</p> |
| 37 | <h2 style={{ fontSize: 21, lineHeight: 1.4, marginBottom: 12 }}>{title}</h2> |
| 38 | <p style={{ color: '#c0b7cf', lineHeight: 1.7 }}>{description}</p> |
| 39 | </article> |
| 40 | ))} |
| 41 | </div> |
| 42 | </main> |
| 43 | ); |
| 44 | } |