diff --git a/web/src/lib/components/SectionLayout.svelte b/web/src/lib/components/SectionLayout.svelte new file mode 100644 index 00000000..cdda0e60 --- /dev/null +++ b/web/src/lib/components/SectionLayout.svelte @@ -0,0 +1,40 @@ + + +
+
+

{title}

+ {@render intro?.()} +
+
+
+
+ {@render rail()} +
+
+
+ {@render children?.()} +
+
+
diff --git a/web/src/routes/admin/+layout.svelte b/web/src/routes/admin/+layout.svelte index ef749932..4b11bd2f 100644 --- a/web/src/routes/admin/+layout.svelte +++ b/web/src/routes/admin/+layout.svelte @@ -1,4 +1,5 @@ -
-

Admin

-
-
-
- -
-
-
- {@render children?.()} -
-
-
+ + {#snippet rail()} + + {/snippet} + {@render children?.()} + diff --git a/web/src/routes/collection/+layout.svelte b/web/src/routes/collection/+layout.svelte index 4d15711c..67f6487f 100644 --- a/web/src/routes/collection/+layout.svelte +++ b/web/src/routes/collection/+layout.svelte @@ -1,4 +1,5 @@ -
-
-

Collection

+ + {#snippet intro()}

What in the library needs looking at: tracks people reported, songs held twice, files from doubtful sources, and the tracks waiting for a good file. @@ -33,16 +33,9 @@

Nothing needs you.

{/if} {/if} -
- -
-
-
- -
-
-
- {@render children?.()} -
-
-
+ {/snippet} + {#snippet rail()} + + {/snippet} + {@render children?.()} + diff --git a/web/src/routes/settings/+layout.svelte b/web/src/routes/settings/+layout.svelte index 62b51261..289a337f 100644 --- a/web/src/routes/settings/+layout.svelte +++ b/web/src/routes/settings/+layout.svelte @@ -1,4 +1,5 @@ -
-

Settings

-
-
-
- -
-
- -
- {@render children?.()} -
-
-
+ + {#snippet rail()} + + {/snippet} + {@render children?.()} +