Add home page and main layout

This commit is contained in:
Foster Hangdaan 2023-07-23 16:44:56 -04:00
parent ed7eb15e04
commit c3a1581713
Signed by: foster
GPG key ID: E48D7F49A852F112
2 changed files with 24 additions and 0 deletions

View file

@ -0,0 +1,13 @@
export default function({ title, children }) {
return (
<html>
<head>
<meta charset="utf-8"/>
<title>{ title }</title>
</head>
<body>
{ children }
</body>
</html>
);
}

11
index.tsx Normal file
View file

@ -0,0 +1,11 @@
export const title = "My website";
export const layout = "layouts/main.tsx";
export default function() {
return (
<>
<h1>Foster Hangdaan</h1>
<p>Welcome!</p>
</>
);
}