35 lines
1.3 KiB
TypeScript
35 lines
1.3 KiB
TypeScript
import './HTML.sass'
|
|
import { type JSXElement, Show } from 'solid-js'
|
|
|
|
interface Props {
|
|
title: string
|
|
name: string
|
|
description: string
|
|
children: JSXElement
|
|
font?: 'roboto' | 'inter' | 'montserrat' | 'open-sans' | 'public-sans'
|
|
}
|
|
|
|
export default (props: Props) => {
|
|
return (
|
|
<>
|
|
<html lang="en">
|
|
<head>
|
|
<base href="/" />
|
|
<meta http-equiv="content-type" content="text/html; charset=utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover" />
|
|
<meta name="name" content={props.name} />
|
|
<meta name="description" content={props.description} />
|
|
<meta property="og:title" content={props.name} />
|
|
<meta property="og:description" content={props.description} />
|
|
<meta property="og:type" content="website" />
|
|
<link rel="icon" type="image/svg+xml" href="/favicon.png" />
|
|
<link rel="preload" href={`https://cdn.jsdelivr.net/fontsource/fonts/${props.font}:vf@latest/latin-wght-normal.woff2`} crossorigin="anonymous" as="font" type="font/woff2" />
|
|
<title>{props.title}</title>
|
|
</head>
|
|
|
|
<body class={props.font}>{props.children}</body>
|
|
</html>
|
|
s
|
|
</>
|
|
)
|
|
}
|