This commit is contained in:
Patrick Alvin Alcala 2025-11-26 16:51:33 +08:00
parent fec3abd5d8
commit bcb83dfea5
13 changed files with 1542 additions and 4019 deletions

View file

@ -1,5 +1,7 @@
/** biome-ignore-all lint/complexity/noUselessFragments: <_> */
import * as fs from "node:fs";
import { type JSXElement, Show } from "solid-js";
import { $fontSource } from "../../configs/config.site.ts";
import * as toml from 'toml';
import background1 from "../images/background.avif";
import background2 from "../images/background.webp";
import "../styles/HTML.sass";
@ -22,6 +24,7 @@ interface Props {
}
export default (props: Props) => {
const config = toml.parse(fs.readFileSync('configs/config.site.toml', 'utf8'))
return (
<>
<html lang="en">
@ -40,7 +43,7 @@ export default (props: Props) => {
<meta property="og:description" content={props.description} />
<meta property="og:type" content="website" />
<link rel="icon" type="image/svg+xml" href="/favicon.png" />
<Show when={$fontSource.get() === "cdn"}>
<Show when={config.font.source === "cdn"}>
<link rel="preconnect" href="https://cdn.jsdelivr.net" />
</Show>
<Show when={props.preloadBackground}>