From 762c185d32621fc7511fe0afc2d6a2501e4c11c1 Mon Sep 17 00:00:00 2001 From: Mike Nikles Date: Sun, 28 Nov 2021 02:27:59 +0000 Subject: [PATCH] Apply CSS styles. --- src/app.css | 29 ++++++++++++ src/lib/todo-item.svelte | 90 +++++++++++++++++++++++++++++++++++--- src/routes/__layout.svelte | 7 +++ src/routes/index.svelte | 52 ++++++++++++++++++---- 4 files changed, 164 insertions(+), 14 deletions(-) create mode 100644 src/app.css create mode 100644 src/routes/__layout.svelte diff --git a/src/app.css b/src/app.css new file mode 100644 index 0000000..2bbb30d --- /dev/null +++ b/src/app.css @@ -0,0 +1,29 @@ +:root { + font-family: Arial, Helvetica, sans-serif; + --primary-color: #b9c6d2; + --secondary-color: #d0dde9; + --tertiary-color: #edf0f8; +} + +body { + background-color: var(--primary-color); + background: linear-gradient( + 180deg, + var(--primary-color), + var(--secondary-color), + var(--tertiary-color) + ); + margin: 0; + min-height: 100vh; +} + +h1 { + text-align: center; + font-size: 2rem; +} + +@media (min-width: 720px) { + h1 { + font-size: 2.4rem; + } +} \ No newline at end of file diff --git a/src/lib/todo-item.svelte b/src/lib/todo-item.svelte index 238934a..9868996 100644 --- a/src/lib/todo-item.svelte +++ b/src/lib/todo-item.svelte @@ -1,15 +1,95 @@ -
+ + +
- +
-
+ - +
- +
\ No newline at end of file diff --git a/src/routes/__layout.svelte b/src/routes/__layout.svelte new file mode 100644 index 0000000..bae4496 --- /dev/null +++ b/src/routes/__layout.svelte @@ -0,0 +1,7 @@ + + +
+ +
diff --git a/src/routes/index.svelte b/src/routes/index.svelte index 94bfe9b..cca60ed 100644 --- a/src/routes/index.svelte +++ b/src/routes/index.svelte @@ -4,16 +4,50 @@ const title = "Todo"; + + {title} -

{title}

- -
- -
- - - - \ No newline at end of file +
+

{title}

+ +
+ +
+ + + + +
\ No newline at end of file