2022-08-05 18:16:54 +05:30
|
|
|
<script lang="ts">
|
2022-08-05 19:31:15 +05:30
|
|
|
export let title: string;
|
|
|
|
export let description: string;
|
|
|
|
export let marginTop: string;
|
2022-08-05 18:16:54 +05:30
|
|
|
</script>
|
|
|
|
|
|
|
|
<div class="hero" style="margin-top: {marginTop}%;">
|
2022-08-05 19:31:15 +05:30
|
|
|
{#if title}
|
|
|
|
<h1>{title}</h1>
|
|
|
|
{/if}
|
|
|
|
{#if description}
|
|
|
|
<p>{description}</p>
|
|
|
|
{/if}
|
|
|
|
<slot />
|
2022-08-05 18:16:54 +05:30
|
|
|
</div>
|
|
|
|
|
|
|
|
<style>
|
2022-08-05 19:31:15 +05:30
|
|
|
.hero {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
align-items: center;
|
|
|
|
justify-content: center;
|
|
|
|
}
|
2022-08-05 18:16:54 +05:30
|
|
|
|
2022-08-05 19:31:15 +05:30
|
|
|
.hero > * {
|
|
|
|
margin: 0;
|
|
|
|
padding: 0;
|
|
|
|
text-align: center;
|
|
|
|
}
|
2022-08-05 18:16:54 +05:30
|
|
|
|
2022-08-05 19:31:15 +05:30
|
|
|
p {
|
|
|
|
font-size: 30px;
|
2022-08-06 18:34:03 +05:30
|
|
|
color: var(--text);
|
2022-08-05 19:31:15 +05:30
|
|
|
}
|
2022-08-05 18:16:54 +05:30
|
|
|
|
2022-08-05 19:31:15 +05:30
|
|
|
h1 {
|
|
|
|
font-size: 50px;
|
|
|
|
font-weight: 800;
|
2022-08-06 18:34:03 +05:30
|
|
|
color: var(--accent);
|
2022-08-05 19:31:15 +05:30
|
|
|
}
|
|
|
|
</style>
|