misc: use satoshi for headers
This commit is contained in:
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 { t } from '$lib/translations'
|
||||||
import { slide } from 'svelte/transition'
|
import { slide } from 'svelte/transition'
|
||||||
import { feature } from '$lib/version'
|
import { feature } from '$lib/version'
|
||||||
|
import Header from '$lib/components/ui/layout/pages/Header.svelte'
|
||||||
|
|
||||||
export let edit = false
|
export let edit = false
|
||||||
|
|
||||||
@@ -228,9 +229,9 @@
|
|||||||
|
|
||||||
<form on:submit|preventDefault={submit} class="flex flex-col gap-4 h-full">
|
<form on:submit|preventDefault={submit} class="flex flex-col gap-4 h-full">
|
||||||
<slot name="formtitle">
|
<slot name="formtitle">
|
||||||
<h1 class="font-bold text-xl">
|
<Header class="font-bold text-xl">
|
||||||
{edit ? $t('form.post.edit') : $t('form.post.create')}
|
{edit ? $t('form.post.edit') : $t('form.post.create')}
|
||||||
</h1>
|
</Header>
|
||||||
</slot>
|
</slot>
|
||||||
{#if !edit && data}
|
{#if !edit && data}
|
||||||
{#if !data.community}
|
{#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 />
|
<slot />
|
||||||
</h1>
|
</h1>
|
||||||
@@ -5,6 +5,7 @@
|
|||||||
import { onDestroy, onMount } from 'svelte'
|
import { onDestroy, onMount } from 'svelte'
|
||||||
import { getSessionStorage, setSessionStorage } from '$lib/session.js'
|
import { getSessionStorage, setSessionStorage } from '$lib/session.js'
|
||||||
import { t } from '$lib/translations.js'
|
import { t } from '$lib/translations.js'
|
||||||
|
import Header from '$lib/components/ui/layout/pages/Header.svelte'
|
||||||
|
|
||||||
export let data = {
|
export let data = {
|
||||||
crosspost: false,
|
crosspost: false,
|
||||||
@@ -47,6 +48,6 @@
|
|||||||
passedCommunity={community}
|
passedCommunity={community}
|
||||||
on:submit={(e) => goto(`/post/${e.detail.post.id}`)}
|
on:submit={(e) => goto(`/post/${e.detail.post.id}`)}
|
||||||
>
|
>
|
||||||
<h1 class="text-3xl font-bold" slot="formtitle">Create Post</h1>
|
<Header class="text-3xl font-bold" slot="formtitle">Create Post</Header>
|
||||||
</PostForm>
|
</PostForm>
|
||||||
</div>
|
</div>
|
||||||
@@ -42,6 +42,7 @@
|
|||||||
import ToggleSetting from './ToggleSetting.svelte'
|
import ToggleSetting from './ToggleSetting.svelte'
|
||||||
import { locale, locales, t } from '$lib/translations'
|
import { locale, locales, t } from '$lib/translations'
|
||||||
import { defaultLinks, iconOfLink } from '$lib/components/ui/navbar/link'
|
import { defaultLinks, iconOfLink } from '$lib/components/ui/navbar/link'
|
||||||
|
import Header from '$lib/components/ui/layout/pages/Header.svelte'
|
||||||
|
|
||||||
let pin: string = ''
|
let pin: string = ''
|
||||||
let importing = false
|
let importing = false
|
||||||
@@ -79,7 +80,7 @@
|
|||||||
</Modal>
|
</Modal>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
<h1 class="text-3xl font-bold flex justify-between">
|
<Header class="text-3xl font-bold flex justify-between">
|
||||||
{$t('settings.title')}
|
{$t('settings.title')}
|
||||||
<div class="flex items-center">
|
<div class="flex items-center">
|
||||||
<Button
|
<Button
|
||||||
@@ -122,7 +123,7 @@
|
|||||||
<Icon src={ArrowPath} mini size="18" slot="prefix" />
|
<Icon src={ArrowPath} mini size="18" slot="prefix" />
|
||||||
</Button>
|
</Button>
|
||||||
</div>
|
</div>
|
||||||
</h1>
|
</Header>
|
||||||
|
|
||||||
<div class="flex flex-col gap-4" style="scroll-behavior: smooth;">
|
<div class="flex flex-col gap-4" style="scroll-behavior: smooth;">
|
||||||
<Section title={$t('settings.navigation.title')}>
|
<Section title={$t('settings.navigation.title')}>
|
||||||
|
|||||||
Reference in new issue
Block a user