|
2 | 2 | import { initFlash } from 'sveltekit-flash-message/client'; |
3 | 3 | import { page } from '$app/stores'; |
4 | 4 | import { beforeNavigate } from '$app/navigation'; |
| 5 | + import Navigation from './Navigation.svelte'; |
5 | 6 |
|
6 | 7 | const flash = initFlash(page); |
7 | 8 |
|
|
19 | 20 | <div style:background-color={bg} class="flash">{$flash.message}</div> |
20 | 21 | {/if} |
21 | 22 |
|
22 | | -<nav> |
23 | | - <a href="/">Start</a> | |
24 | | - <a href="/test">Test page</a> | |
25 | | - <a href="/crud">CRUD</a> | |
26 | | - <a href="/super-debug">SuperDebug</a> | |
27 | | - <a href="/nested">Nested</a> | |
28 | | - <a href="/multiple">Multiple</a> | |
29 | | - <br /> |
30 | | - <a href="/multiple2">Multiple 2</a> |
31 | | - <a href="/snapshot">Snapshot</a> | |
32 | | - <a href="/dates">Dates</a> | |
33 | | - <a href="/reset">Reset</a> | |
34 | | - <a href="/url">URL</a> | |
35 | | - <a href="/tainted">Tainted</a> | |
36 | | - <a href="/proxies">Proxies</a> |
37 | | - <br /> |
38 | | - <a href="/properly-nested">Properly nested</a> |
39 | | - <a href="/files">Files</a> | |
40 | | - <a href="/spa">SPA</a> | |
41 | | - <a href="/nested-validation">Client-side validation</a> | |
42 | | - <a href="/tests/rex">Side-effect validation</a> |
43 | | - <br /> |
44 | | - <a href="/tests/superform-c">Side-effect 2</a> | |
45 | | - <a href="/tests/multiselect">Multi-select</a> |
46 | | -</nav> |
| 23 | +<Navigation /> |
47 | 24 |
|
48 | 25 | <slot /> |
49 | 26 |
|
|
53 | 30 | color: white; |
54 | 31 | border-radius: 3px; |
55 | 32 | } |
56 | | -
|
57 | | - nav { |
58 | | - text-align: center; |
59 | | - margin-bottom: 12px; |
60 | | - } |
61 | 33 | </style> |
0 commit comments