design: make header distinct
This commit is contained in:
1 parent
0ec2456985
commit
44ee32e809
2 files changed
+32
-15
No files matched your search
@@ -1,12 +1,26 @@
|
|||||||
<script lang="ts">
|
<script lang="ts">
|
||||||
import { userSettings } from '$lib/settings'
|
import { userSettings } from '$lib/settings'
|
||||||
|
import { contentPadding } from '../Shell.svelte'
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<h1
|
<div
|
||||||
class="text-3xl font-bold flex items-center gap-2 {$userSettings.font ==
|
class="
|
||||||
'satoshi/nunito'
|
bg-slate-50 dark:bg-zinc-950 -m-4 sm:-m-6 mb-0 sm:mb-0 sm:p-6 p-4
|
||||||
? 'font-display'
|
border-b border-slate-200 dark:border-zinc-800"
|
||||||
: ''} {$$props.class ?? ''}"
|
style="margin-top: min(-1.5rem, calc(-1 * calc({$contentPadding.top}px)));
|
||||||
|
padding-top: max(1.5rem, calc({$contentPadding.top}px));"
|
||||||
>
|
>
|
||||||
<slot />
|
<h1
|
||||||
</h1>
|
class="text-3xl font-bold flex items-center gap-2
|
||||||
|
{$userSettings.font == 'satoshi/nunito'
|
||||||
|
? 'font-display'
|
||||||
|
: ''} {$$props.class ?? ''}"
|
||||||
|
>
|
||||||
|
<slot />
|
||||||
|
</h1>
|
||||||
|
{#if $$slots.extended}
|
||||||
|
<div class="mt-4">
|
||||||
|
<slot name="extended" />
|
||||||
|
</div>
|
||||||
|
{/if}
|
||||||
|
</div>
|
||||||
+11
-8
@@ -28,14 +28,17 @@
|
|||||||
|
|
||||||
<div class="flex flex-col gap-4 max-w-full w-full min-w-0">
|
<div class="flex flex-col gap-4 max-w-full w-full min-w-0">
|
||||||
<header class="flex flex-col gap-4 relative">
|
<header class="flex flex-col gap-4 relative">
|
||||||
<Header>{$t('routes.frontpage.title')}</Header>
|
<Header>
|
||||||
<div class="flex items-center gap-2">
|
{$t('routes.frontpage.title')}
|
||||||
{#if data.type_}
|
|
||||||
<Location changeDefault selected={data.type_} />
|
<div class="flex items-center gap-2" slot="extended">
|
||||||
{/if}
|
{#if data.type_}
|
||||||
<Sort changeDefault selected={data.sort} />
|
<Location changeDefault selected={data.type_} />
|
||||||
<ViewSelect />
|
{/if}
|
||||||
</div>
|
<Sort changeDefault selected={data.sort} />
|
||||||
|
<ViewSelect />
|
||||||
|
</div>
|
||||||
|
</Header>
|
||||||
</header>
|
</header>
|
||||||
|
|
||||||
<svelte:component
|
<svelte:component
|
||||||
|
|||||||
Reference in new issue
Block a user