2026-03-29 07:54:27 +00:00
|
|
|
<script lang="ts">
|
|
|
|
|
import TopNav from '$lib/components/TopNav.svelte';
|
2026-04-11 10:46:50 +00:00
|
|
|
import type { LayoutProps } from './$types';
|
2026-03-29 07:54:27 +00:00
|
|
|
|
2026-04-11 10:46:50 +00:00
|
|
|
const { data, children }: LayoutProps = $props();
|
2026-03-29 07:54:27 +00:00
|
|
|
</script>
|
|
|
|
|
|
|
|
|
|
<TopNav />
|
|
|
|
|
|
2026-04-11 10:46:50 +00:00
|
|
|
{#if data.emailUnverified}
|
|
|
|
|
<div class="email-warning" role="alert">
|
|
|
|
|
Your email address is not yet verified. Check your inbox for a verification link.
|
|
|
|
|
</div>
|
|
|
|
|
{/if}
|
|
|
|
|
|
2026-03-29 07:54:27 +00:00
|
|
|
{@render children()}
|
2026-04-11 10:46:50 +00:00
|
|
|
|
|
|
|
|
<style>
|
|
|
|
|
.email-warning {
|
|
|
|
|
background-color: var(--color-surface-container-high);
|
|
|
|
|
color: var(--color-primary);
|
|
|
|
|
font-family: var(--font-label);
|
|
|
|
|
font-size: var(--text-label-md);
|
|
|
|
|
font-weight: var(--weight-medium);
|
|
|
|
|
letter-spacing: var(--tracking-wide);
|
|
|
|
|
text-transform: uppercase;
|
|
|
|
|
text-align: center;
|
|
|
|
|
padding: var(--space-2) var(--space-5);
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
</style>
|