diff --git a/public/favicon.ico b/public/favicon.ico deleted file mode 100644 index a4c2879..0000000 Binary files a/public/favicon.ico and /dev/null differ diff --git a/src/app/apple-icon.tsx b/src/app/apple-icon.tsx new file mode 100644 index 0000000..e3ea0e7 --- /dev/null +++ b/src/app/apple-icon.tsx @@ -0,0 +1,49 @@ +import { ImageResponse } from 'next/og'; + +export const size = { width: 180, height: 180 }; +export const contentType = 'image/png'; + +export default function AppleIcon() { + return new ImageResponse( + ( +
+ + + + +
+ ), + { ...size }, + ); +} diff --git a/src/app/design-system/page.tsx b/src/app/design-system/page.tsx index 462e4a2..48fa957 100644 --- a/src/app/design-system/page.tsx +++ b/src/app/design-system/page.tsx @@ -34,6 +34,22 @@ const CheckIcon = () => ( ); +/* ─── Favicon Variants (32×32 viewBox, shown at 10× zoom) ─── */ + +function FaviconVariantsSection() { + return ( +
+
+ + + + + +
+
+ ); +} + /* ─── Layout Helpers ─── */ function Section({ id, title, subtitle, children }: { id: string; title: string; subtitle: string; children: React.ReactNode }) { @@ -385,6 +401,8 @@ export default function DesignSystemPage() { + +
diff --git a/src/app/icon.svg b/src/app/icon.svg new file mode 100644 index 0000000..3ee306a --- /dev/null +++ b/src/app/icon.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/app/layout.tsx b/src/app/layout.tsx index d523bd7..5e5affb 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -15,6 +15,14 @@ export const metadata: Metadata = { keywords: 'DiffractWD, powder diffraction software, powder pattern simulation, X-ray diffraction, crystallography, powder data visualization, free science software', authors: [{ name: 'Volodymyr D. Vreshch' }], + icons: { + icon: [ + { url: '/icon.svg', type: 'image/svg+xml' }, + ], + apple: [ + { url: '/apple-icon', type: 'image/png', sizes: '180x180' }, + ], + }, openGraph: { type: 'website', siteName: 'DiffractWD',