2023-08-21 23:08:13 +01:00

41 lines
552 B
Svelte

<script lang="ts">
export let title: string;
export let subtitle: string = '';
</script>
<header>
<h1>{title}</h1>
{#if subtitle}
<h2>{subtitle}</h2>
{/if}
</header>
<style>
header {
font-family: shadowsintolight;
font-size: 4.8vw;
font-weight: bolder;
margin: 0px;
padding: 0px;
padding-bottom: 5px;
text-align: center;
background-color: var(--accent-color);
}
h1 {
margin: 0;
padding: 0;
padding-top: 5px;
}
h2 {
margin-top: 0px;
}
@media (min-width: 490px) {
header {
font-size: 23px;
}
}
</style>