pub.solar/_includes/layouts/homepage.tsx
Benjamin Yule Bädorf e6279896d6
v2: initial commit
* Separate german and english language pages
* Add a services page with details per service
* Move hakken dates into the same container as the text
* Introductory text on the homepage
2024-03-06 16:34:00 +01:00

54 lines
1.2 KiB
TypeScript

import { md } from '../../filters.ts';
import Head from '../Head.tsx';
import Background from '../Background.tsx';
import Langlink from '../Langlink.tsx';
export default ({
title,
content,
links,
language,
otherLang,
baseURL,
theme,
extraStylesheets,
extraScripts,
cacheBust,
}) => <>
<html lang={language.slug}>
<Head
title={title}
theme={theme}
otherLang={otherLang}
baseURL={baseURL}
extraStylesheets={extraStylesheets}
cacheBust={cacheBust}
extraScripts={extraScripts}
/>
<body className="ps-main">
<Background />
<Langlink otherLang={otherLang} baseURL={baseURL} />
<main className="ps-main--page ps-page ps-page_home">
<section
className="ps-page--contents"
dangerouslySetInnerHTML={{ __html: md(content) }}
></section>
<section className="ps-page--links">
{links.map(({ href, title, openInNewTab }) =>
<a
href={href}
target={openInNewTab ? '_blank' : '_self'}
className="ps-page--link"
key={href}
>{title}</a>
)}
</section>
</main>
</body>
</html>
</>;