Reorganise source files into src and web
Use a more traditional source code layout with the code located in the src/ dir and static web content in the web/ dir, while the other places are for data not related to code or content.
This commit is contained in:
parent
82323c9158
commit
c8527f17f7
20 changed files with 35 additions and 36 deletions
27
src/components/BasePage.tsx
Normal file
27
src/components/BasePage.tsx
Normal file
|
@ -0,0 +1,27 @@
|
|||
import type { Node } from "antihtml";
|
||||
|
||||
interface BaseProps {
|
||||
title: string;
|
||||
children: Node | Node[],
|
||||
}
|
||||
export default function BasePage(props: BaseProps) {
|
||||
return <html lang="en">
|
||||
<head>
|
||||
<meta charset="utf-8" />
|
||||
<title>{props.title}</title>
|
||||
<link rel="stylesheet" href="/style.css" />
|
||||
</head>
|
||||
<body>
|
||||
<header class="header">
|
||||
<nav>
|
||||
<a href="/index.html">Home</a>
|
||||
<a href="/updates.html">Updates</a>
|
||||
<a href="/words.html">Words</a>
|
||||
<a href="/projects.html">Projects</a>
|
||||
<a href="/links.html">Links</a>
|
||||
</nav>
|
||||
</header>
|
||||
{props.children}
|
||||
</body>
|
||||
</html>
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue