website/_includes/layouts/main.tsx

20 lines
493 B
TypeScript
Raw Normal View History

2023-07-26 16:34:06 -04:00
export default function({ title, header, children, comp }) {
2023-07-23 16:44:56 -04:00
return (
<html>
<head>
<meta charSet="utf-8"/>
2023-07-23 16:44:56 -04:00
<title>{ title }</title>
2023-07-23 21:50:39 -04:00
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" href="/styles/main.css"/>
2023-07-23 16:44:56 -04:00
</head>
<body>
2023-07-26 09:50:04 -04:00
{comp.navbar()}
2023-07-25 02:59:32 -04:00
<div className="main-content">
2023-07-26 16:34:06 -04:00
{ comp.header(header) }
2023-07-25 02:59:32 -04:00
{ children }
</div>
2023-07-23 16:44:56 -04:00
</body>
</html>
);
}