From 9019f3d3e63c426025aa14971b9cd7f5958b6bf5 Mon Sep 17 00:00:00 2001 From: Yanick Champoux Date: Fri, 14 Apr 2023 12:56:39 -0400 Subject: [PATCH] add layouts --- src/lib/components/MainLayout.svelte | 28 +++++++++ src/routes/+layout.svelte | 12 ++++ src/routes/+page.svelte | 13 +--- src/routes/about/+layout.svelte | 23 +++++++ src/routes/about/+page.svelte | 93 ++++++++-------------------- src/routes/about/about.test.js | 9 +++ 6 files changed, 98 insertions(+), 80 deletions(-) create mode 100644 src/lib/components/MainLayout.svelte create mode 100644 src/routes/+layout.svelte create mode 100644 src/routes/about/+layout.svelte create mode 100644 src/routes/about/about.test.js diff --git a/src/lib/components/MainLayout.svelte b/src/lib/components/MainLayout.svelte new file mode 100644 index 0000000..fc22854 --- /dev/null +++ b/src/lib/components/MainLayout.svelte @@ -0,0 +1,28 @@ +
+ +
+
+ +
+ + + + diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte new file mode 100644 index 0000000..7a041ca --- /dev/null +++ b/src/routes/+layout.svelte @@ -0,0 +1,12 @@ + + + + + diff --git a/src/routes/+page.svelte b/src/routes/+page.svelte index 8c3d41a..1333ed7 100644 --- a/src/routes/+page.svelte +++ b/src/routes/+page.svelte @@ -1,12 +1 @@ - - - +TODO diff --git a/src/routes/about/+layout.svelte b/src/routes/about/+layout.svelte new file mode 100644 index 0000000..6e2f9f4 --- /dev/null +++ b/src/routes/about/+layout.svelte @@ -0,0 +1,23 @@ + + + + diff --git a/src/routes/about/+page.svelte b/src/routes/about/+page.svelte index 643ceee..90b9b49 100644 --- a/src/routes/about/+page.svelte +++ b/src/routes/about/+page.svelte @@ -1,82 +1,39 @@ -
- -
-
- -

Welcome to the docks!

+

Welcome to the docks!

- -

- The Docks is a ship builder for the game - Full Thrust, with construction rules following the - - Cross Dimensions rules - - as closely as possible. -

+

+ The Docks is a ship builder for the game + Full Thrust, with construction rules following the + + Cross Dimensions rules + + as closely as possible. +

-

- The app is mostly developed for Firefox. I also check as much as I can that - I don't mess things too badly on Chrome. For the other browsers... caveat - emptor. -

+

+ The app is mostly developed for Firefox. I also check as much as I can that I + don't mess things too badly on Chrome. For the other browsers... caveat + emptor. +

-

- Written by - - Yanick Champoux - . Code available on - - Github. -

-
- - +

+ Written by + + Yanick Champoux + . Code available on + + Github. +