pub.solar/_includes/layouts/homepage.tsx

37 lines
757 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
)}
</main>
</body>
</html>
</>;