pub.solar/_includes/layouts/homepage.tsx

43 lines
982 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,
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 }) =>
2022-10-20 16:12:31 +00:00
<a
href={href}
target={openInNewTab ? '_blank' : '_self'}
className="ps-page--link"
key={href}
>{title}</a>
2022-10-02 18:46:42 +00:00
)}
<footer className="ps-footer">
<a
href="https://greenbaum.cloud"
2022-10-03 00:02:47 +00:00
className="ps-page--link ps-footer--link"
2022-10-02 18:46:42 +00:00
>climate-neutral hosting by Greenbaum Cloud</a>
</footer>
</main>
</body>
</html>
</>;