fwt/fwt/components/HTML/HTML.tsx
2025-09-02 12:09:08 +08:00

29 lines
770 B
TypeScript

import './HTML.sass'
import type { JSXElement } from 'solid-js'
interface Props {
title: string
name: string
description: string
children: JSXElement
font?: string
}
export default (props: Props) => {
return (
<>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.png" />
<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} />
<title>{props.title}</title>
</head>
<body class={props.font}>{props.children}</body>
</html>
</>
)
}