misc: use satoshi for headers

This commit is contained in:
Xylight committed 2024-07-10 12:19:33 -07:00
1 parent a28abf98ce
commit 471ffd360e
4 files changed
+18 -6

No files matched your search

@@ -23,6 +23,7 @@
import { t } from '$lib/translations'
import { slide } from 'svelte/transition'
import { feature } from '$lib/version'
import Header from '$lib/components/ui/layout/pages/Header.svelte'
export let edit = false
@@ -228,9 +229,9 @@
<form on:submit|preventDefault={submit} class="flex flex-col gap-4 h-full">
<slot name="formtitle">
<h1 class="font-bold text-xl">
<Header class="font-bold text-xl">
{edit ? $t('form.post.edit') : $t('form.post.create')}
</h1>
</Header>
</slot>
{#if !edit && data}
{#if !data.community}
@@ -1,3 +1,12 @@
<h1 class="text-3xl font-bold flex items-center gap-2 {$$props.class ?? ''}">
<script lang="ts">
import { userSettings } from '$lib/settings'
</script>
<h1
class="text-3xl font-bold flex items-center gap-2 {$userSettings.font ==
'satoshi/nunito'
? 'font-display'
: ''} {$$props.class ?? ''}"
>
<slot />
</h1>