Skip to content

Commit

Permalink
Merge branch 'main' into add_component_switch
Browse files Browse the repository at this point in the history
  • Loading branch information
JerryWu1234 authored Jan 5, 2025
2 parents 0fa6cfe + aad02ee commit ff96a9a
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 2 deletions.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
34 changes: 32 additions & 2 deletions apps/website/src/components/router-head/router-head.tsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { component$ } from '@builder.io/qwik';
import { useDocumentHead, useLocation } from '@builder.io/qwik-city';
import codeCave from '../../../public/images/contributing/code-cave.jpg';

/**
* The RouterHead component is placed inside of the document `<head>` element.
Expand All @@ -16,12 +17,41 @@ export const RouterHead = component$(() => {
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />

{/* Theme and color scheme */}
<meta name="color-scheme" content="dark light" />
<meta name="theme-color" content="#020617" media="(prefers-color-scheme: dark)" />
<meta name="theme-color" content="#f8fafc" media="(prefers-color-scheme: light)" />

<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="" />

<meta property="og:site_name" content="Qwik" />
{/* Standard meta description for search engines */}
<meta
name="description"
content="A collection of ready-to-use components and primitives for building high-quality, accessible web applications with Qwik."
/>

<meta property="og:site_name" content="Qwik UI" />
<meta name="twitter:site" content="@QwikDev" />
<meta name="twitter:title" content="Qwik" />
<meta name="twitter:title" content="Qwik UI" />
<meta name="twitter:card" content="summary_large_image" />
<meta
name="twitter:description"
content="A collection of ready-to-use components and primitives for building high-quality, accessible web applications with Qwik."
/>

{/* Full absolute URLs for social media previews */}
<meta name="twitter:image" content={`${loc.url.origin}${codeCave}`} />
<meta property="og:image" content={`${loc.url.origin}${codeCave}`} />

{/* Add additional OpenGraph tags for better Facebook/LinkedIn support */}
<meta property="og:title" content="Qwik UI" />
<meta
property="og:description"
content="A collection of ready-to-use components and primitives for building high-quality, accessible web applications with Qwik."
/>
<meta property="og:type" content="website" />
<meta property="og:url" content={loc.url.href} />

{head.meta.map((m, i) => (
<meta key={i} {...m} />
Expand Down

0 comments on commit ff96a9a

Please sign in to comment.