11import { component$ } from '@builder.io/qwik' ;
22import { useDocumentHead , useLocation } from '@builder.io/qwik-city' ;
3+ import codeCave from '../../../public/images/contributing/code-cave.jpg' ;
34
45/**
56 * The RouterHead component is placed inside of the document `<head>` element.
@@ -16,12 +17,41 @@ export const RouterHead = component$(() => {
1617 < meta name = "viewport" content = "width=device-width, initial-scale=1.0" />
1718 < link rel = "icon" type = "image/svg+xml" href = "/favicon.svg" />
1819
20+ { /* Theme and color scheme */ }
21+ < meta name = "color-scheme" content = "dark light" />
22+ < meta name = "theme-color" content = "#020617" media = "(prefers-color-scheme: dark)" />
23+ < meta name = "theme-color" content = "#f8fafc" media = "(prefers-color-scheme: light)" />
24+
1925 < link rel = "preconnect" href = "https://fonts.googleapis.com" />
2026 < link rel = "preconnect" href = "https://fonts.gstatic.com" crossOrigin = "" />
2127
22- < meta property = "og:site_name" content = "Qwik" />
28+ { /* Standard meta description for search engines */ }
29+ < meta
30+ name = "description"
31+ content = "A collection of ready-to-use components and primitives for building high-quality, accessible web applications with Qwik."
32+ />
33+
34+ < meta property = "og:site_name" content = "Qwik UI" />
2335 < meta name = "twitter:site" content = "@QwikDev" />
24- < meta name = "twitter:title" content = "Qwik" />
36+ < meta name = "twitter:title" content = "Qwik UI" />
37+ < meta name = "twitter:card" content = "summary_large_image" />
38+ < meta
39+ name = "twitter:description"
40+ content = "A collection of ready-to-use components and primitives for building high-quality, accessible web applications with Qwik."
41+ />
42+
43+ { /* Full absolute URLs for social media previews */ }
44+ < meta name = "twitter:image" content = { `${ loc . url . origin } ${ codeCave } ` } />
45+ < meta property = "og:image" content = { `${ loc . url . origin } ${ codeCave } ` } />
46+
47+ { /* Add additional OpenGraph tags for better Facebook/LinkedIn support */ }
48+ < meta property = "og:title" content = "Qwik UI" />
49+ < meta
50+ property = "og:description"
51+ content = "A collection of ready-to-use components and primitives for building high-quality, accessible web applications with Qwik."
52+ />
53+ < meta property = "og:type" content = "website" />
54+ < meta property = "og:url" content = { loc . url . href } />
2555
2656 { head . meta . map ( ( m , i ) => (
2757 < meta key = { i } { ...m } />
0 commit comments