1
Fork 0
mirror of https://github.com/Steffo99/steffoweb.git synced 2024-11-22 08:04:31 +00:00
steffoweb/app/layout.tsx

88 lines
1.5 KiB
TypeScript
Raw Normal View History

2024-10-27 07:00:57 +00:00
import React, { ReactNode } from "react"
import { Fira_Sans as FiraSans, Zilla_Slab as ZillaSlab, Source_Serif_4 as SourceSerif } from 'next/font/google'
import { config as faConfig } from "@fortawesome/fontawesome-svg-core"
faConfig.autoAddCss = false
const firaSans = FiraSans({
weight: ["400", "700"],
subsets: ["latin"],
variable: "--f-fira-sans",
display: "swap",
})
const zillaSlab = ZillaSlab({
weight: ["700"],
subsets: ["latin"],
variable: "--f-zilla-slab",
display: "swap",
})
const sourceSerif = SourceSerif({
weight: ["400"],
subsets: ["latin"],
variable: "--f-source-serif",
display: "swap",
})
import "./layout.css"
import classNames from "classnames"
2023-12-19 04:07:44 +00:00
export type LayoutProps = {
2024-10-27 07:00:57 +00:00
children: ReactNode,
2023-12-19 04:07:44 +00:00
}
export default function RootLayout({children}: LayoutProps) {
2024-10-27 07:00:57 +00:00
return <>
{/* TODO: Set the lang attribute */}
<html lang="" className={classNames(
firaSans.variable,
zillaSlab.variable,
sourceSerif.variable,
)}>
<head>
<title>Steffo</title>
</head>
<body>
<header>
<h1>
<a>
<span>
Steffo
</span>
</a>
<small>
{" is "}
</small>
<a>
<small>
working
</small>
</a>
</h1>
</header>
<nav>
<a>
<div className="panel">
AAAAaa
</div>
</a>
<a>
<div className="panel">
BBBBbb
</div>
</a>
<a>
<div className="panel">
CCCCcc
</div>
</a>
</nav>
<main>
{children}
</main>
</body>
</html>
</>
2023-12-19 04:07:44 +00:00
}