forked from blisstown/campfire
refactor: move page header to own component
This commit is contained in:
parent
6f446fd871
commit
00277741a8
3 changed files with 12 additions and 51 deletions
|
@ -4,6 +4,7 @@
|
|||
import { goto } from '$app/navigation';
|
||||
import { page } from '$app/stores';
|
||||
import Notification from '$lib/ui/Notification.svelte';
|
||||
import PageHeader from '../../lib/ui/core/PageHeader.svelte';
|
||||
import Lang from '$lib/lang';
|
||||
|
||||
const lang = Lang('en_GB');
|
||||
|
@ -33,9 +34,7 @@
|
|||
});
|
||||
</script>
|
||||
|
||||
<header>
|
||||
<h1>{lang.string('navigation.notifications')}</h1>
|
||||
</header>
|
||||
<PageHeader title={lang.string('navigation.notifications')}/>
|
||||
|
||||
<div class="notifications">
|
||||
{#if $notifications.length === 0}
|
||||
|
@ -50,20 +49,6 @@
|
|||
</div>
|
||||
|
||||
<style>
|
||||
header {
|
||||
width: 100%;
|
||||
height: 64px;
|
||||
margin: 16px 0 8px 0;
|
||||
padding: 0 8px;
|
||||
display: flex;
|
||||
flex-direction: row;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-size: 1.5em;
|
||||
}
|
||||
|
||||
.loading {
|
||||
width: 100%;
|
||||
height: 80vh;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue