website/_includes/layouts/main.tsx

19 lines
493 B
TypeScript

export default function({ title, header, children, comp }) {
return (
<html>
<head>
<meta charSet="utf-8"/>
<title>{ title }</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" href="/styles/main.css"/>
</head>
<body>
{comp.navbar()}
<div className="main-content">
{ comp.header(header) }
{ children }
</div>
</body>
</html>
);
}