2024-08-17 19:29:10 +02:00
|
|
|
<script lang="ts">
|
|
|
|
|
const { title, logoType, logo, mainContent, coverImage, publicationDate, footerAdditionalText } =
|
|
|
|
|
$props<{
|
|
|
|
|
title: string;
|
|
|
|
|
logoType: "text" | "image";
|
|
|
|
|
logo: string;
|
|
|
|
|
mainContent: string;
|
|
|
|
|
coverImage: string;
|
|
|
|
|
publicationDate: string;
|
|
|
|
|
footerAdditionalText: string;
|
|
|
|
|
}>();
|
|
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<svelte:head>
|
|
|
|
|
<head>
|
|
|
|
|
<title>{title}</title>
|
2024-08-17 20:21:23 +02:00
|
|
|
<link rel="stylesheet" href="../styles.css" />
|
2024-08-17 19:29:10 +02:00
|
|
|
</head>
|
|
|
|
|
</svelte:head>
|
|
|
|
|
|
|
|
|
|
<nav>
|
|
|
|
|
{#if logoType === "text"}
|
|
|
|
|
<p>
|
|
|
|
|
<strong>{logo}</strong>
|
|
|
|
|
</p>
|
|
|
|
|
{:else}
|
|
|
|
|
<img src={logo} alt="" />
|
|
|
|
|
{/if}
|
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
|
|
<header>
|
2024-08-17 20:21:23 +02:00
|
|
|
{#if coverImage}
|
|
|
|
|
<img src={coverImage} alt="" />
|
|
|
|
|
{/if}
|
2024-08-17 19:29:10 +02:00
|
|
|
<h1>{title}</h1>
|
|
|
|
|
<p>{publicationDate}</p>
|
|
|
|
|
</header>
|
|
|
|
|
|
|
|
|
|
<main>
|
|
|
|
|
{@html mainContent}
|
|
|
|
|
</main>
|
|
|
|
|
|
|
|
|
|
<footer>
|
|
|
|
|
{footerAdditionalText}
|
|
|
|
|
</footer>
|