From d4825b60f11a63dbce00d9910bcc6574e97beed9 Mon Sep 17 00:00:00 2001 From: Bobby Date: Fri, 5 Nov 2021 01:44:45 +0000 Subject: [PATCH] Style home page --- src/app.css | 9 +- src/lib/head/Head.svelte | 3 +- src/lib/home/Aliens.svelte | 56 +++++++++ src/lib/home/ContactForm.svelte | 77 +++++++++++++ src/lib/home/ProjectSummary.svelte | 137 ++++++++++++++++++++++ src/routes/__layout.svelte | 30 +++-- src/routes/about.svelte | 70 ++++++------ src/routes/blog.svelte | 33 +++--- src/routes/index.svelte | 175 +++++++++++++++++++++-------- src/routes/work.svelte | 33 +++--- 10 files changed, 494 insertions(+), 129 deletions(-) create mode 100644 src/lib/home/Aliens.svelte create mode 100644 src/lib/home/ContactForm.svelte create mode 100644 src/lib/home/ProjectSummary.svelte diff --git a/src/app.css b/src/app.css index 4e1ed02..d428865 100644 --- a/src/app.css +++ b/src/app.css @@ -6,11 +6,18 @@ box-sizing: border-box; color: rgba(0, 0, 0, 0.84); - /* Global colour variables */ + /* Primary colours */ + /* Normal state */ --postit-green: #afec6a; --postit-yellow: #faf557; --postit-blue: #7fd9cf; --postit-pink: #fe9bba; + + /* Hover state */ + --postit-green-hover: hsl(88, 77%, 77%); + --postit-yellow-hover: hsl(58, 94%, 76%); + --postit-blue-hover: hsl(173, 54%, 77%); + --postit-pink-hover: hsl(341, 98%, 90%); } body { diff --git a/src/lib/head/Head.svelte b/src/lib/head/Head.svelte index cd81241..0847243 100644 --- a/src/lib/head/Head.svelte +++ b/src/lib/head/Head.svelte @@ -2,7 +2,8 @@ + src="https://www.googletagmanager.com/gtag/js?id=UA-100955415-3"> + + +
+ {#each Array(alienCount) as _} +
+ {/each} +
+ + diff --git a/src/lib/home/ContactForm.svelte b/src/lib/home/ContactForm.svelte new file mode 100644 index 0000000..6595022 --- /dev/null +++ b/src/lib/home/ContactForm.svelte @@ -0,0 +1,77 @@ +
+ + + + + +
+ About +
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+ + +
+
+
+
+
+