website: add transparent PNG favicons, typed meta/links exports, OG image
- Replace favicon.ico with transparent PNG favicons (32px, 16px) generated from the gray extension icon, preserving alpha channel - Move favicon links from hardcoded JSX to typed LinksFunction export in root.tsx, rendered via <Links /> component - Type liveline meta export as MetaFunction - Add properly sized OG image (1200x630) for X/Slack/Discord previews, update meta tags to reference it
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import "website/src/styles/globals.css";
|
||||
import type { LinksFunction } from "react-router";
|
||||
import { Route } from "./+types/root";
|
||||
import {
|
||||
isRouteErrorResponse,
|
||||
@@ -9,6 +10,11 @@ import {
|
||||
ScrollRestoration,
|
||||
} from "react-router";
|
||||
|
||||
export const links: LinksFunction = () => [
|
||||
{ rel: "icon", type: "image/png", href: "/favicon-32.png", sizes: "32x32" },
|
||||
{ rel: "icon", type: "image/png", href: "/favicon-16.png", sizes: "16x16" },
|
||||
];
|
||||
|
||||
export function Layout({ children }: { children: React.ReactNode }) {
|
||||
return (
|
||||
<html lang="en">
|
||||
|
||||
Reference in New Issue
Block a user