pub.solar/_includes/layouts/homepage.tsx

40 lines
918 B
TypeScript
Raw Normal View History

2022-10-02 18:46:42 +00:00
import Head from '../Head.tsx';
import Background from '../Background.tsx';
export default ({
title,
2022-10-02 19:38:38 +00:00
content,
links,
2022-10-02 18:46:42 +00:00
theme,
extraStylesheets,
2022-10-02 19:38:38 +00:00
extraScripts,
cacheBust,
showHakkenDates,
2022-10-02 18:46:42 +00:00
}) => <>
<html>
<Head
title={title}
theme={theme}
extraStylesheets={extraStylesheets}
2022-10-02 19:38:38 +00:00
cacheBust={cacheBust}
extraScripts={extraScripts}
2022-10-02 18:46:42 +00:00
/>
<body className="ps-main">
<Background />
<main className="ps-main--page ps-page ps-page_home">
2022-10-02 19:38:38 +00:00
{links.map(({ href, title, openInNewTab }) =>
<a href={href} target={openInNewTab ? '_blank' : '_self'} className="ps-page--link">{title}</a>
2022-10-02 18:46:42 +00:00
)}
<footer className="ps-footer">
<a
href="https://greenbaum.cloud"
2022-10-02 18:46:42 +00:00
className="ps-footer--link"
>climate-neutral hosting by Greenbaum Cloud</a>
</footer>
</main>
</body>
</html>
</>;