feat(frontend): unify page shell and move create flows to dedicated routes
This commit is contained in:
parent
e20c18c2ee
commit
0253b2377d
50 changed files with 2235 additions and 1042 deletions
|
|
@ -2,9 +2,9 @@
|
|||
import { enhance } from '$app/forms';
|
||||
import { resolve } from '$app/paths';
|
||||
import type { ActionData, PageData } from './$types';
|
||||
import { m } from '$lib/paraglide/messages.js';
|
||||
import * as m from '$lib/paraglide/messages.js';
|
||||
import PageHeader from '$lib/components/PageHeader.svelte';
|
||||
import { Button } from '$lib/components/ui/button';
|
||||
import { ArrowLeft } from 'lucide-svelte';
|
||||
import { Input } from '$lib/components/ui/input';
|
||||
import { Label } from '$lib/components/ui/label';
|
||||
import FormSectionCard from '$lib/components/forms/FormSectionCard.svelte';
|
||||
|
|
@ -22,11 +22,12 @@
|
|||
<svelte:head><title>{m["routines_newTitle"]()} — innercontext</title></svelte:head>
|
||||
|
||||
<div class="editorial-page space-y-4">
|
||||
<section class="editorial-hero reveal-1 space-y-3">
|
||||
<a href={resolve('/routines')} class="editorial-backlink"><ArrowLeft class="size-4" /> {m["routines_backToList"]()}</a>
|
||||
<p class="editorial-kicker">{m["nav_appSubtitle"]()}</p>
|
||||
<h2 class="editorial-title">{m["routines_newTitle"]()}</h2>
|
||||
</section>
|
||||
<PageHeader
|
||||
title={m["routines_newTitle"]()}
|
||||
kicker={m["nav_appSubtitle"]()}
|
||||
backHref={resolve('/routines')}
|
||||
backLabel={m["routines_backToList"]()}
|
||||
/>
|
||||
|
||||
{#if form?.error}
|
||||
<div class="editorial-alert editorial-alert--error">{form.error}</div>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue