From 5997105fed9db61cafe48698d8d232fabf54b102 Mon Sep 17 00:00:00 2001 From: DutchEllie Date: Tue, 12 Jul 2022 17:05:51 +0200 Subject: [PATCH 1/2] Added guestbook --- package-lock.json | 21 ++ package.json | 1 + src/components/homepage/content.svelte | 119 +++++++----- src/components/misc/errormodal.svelte | 32 ++++ src/components/misc/guestbook.svelte | 181 +++++++++++++++++- .../misc/guestbook/guestbook-entry.svelte | 24 +++ src/components/misc/header.svelte | 2 +- src/routes/__layout.svelte | 3 +- src/routes/index.svelte | 7 +- src/service-worker.ts | 1 + 10 files changed, 331 insertions(+), 60 deletions(-) create mode 100644 src/components/misc/errormodal.svelte create mode 100644 src/components/misc/guestbook/guestbook-entry.svelte diff --git a/package-lock.json b/package-lock.json index c32cebc..513527b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -8,6 +8,7 @@ "name": "svelte-testing", "version": "0.0.1", "dependencies": { + "js-sha256": "^0.9.0", "svelte-gestures": "^1.4.1", "svelte-language-server": "^0.14.29" }, @@ -724,6 +725,11 @@ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" }, + "node_modules/Base64": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/Base64/-/Base64-1.1.0.tgz", + "integrity": "sha512-qeacf8dvGpf+XAT27ESHMh7z84uRzj/ua2pQdJg483m3bEXv/kVFtDnMgvf70BQGqzbZhR9t6BmASzKvqfJf3Q==" + }, "node_modules/binary-extensions": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", @@ -2111,6 +2117,11 @@ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", "dev": true }, + "node_modules/js-sha256": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.9.0.tgz", + "integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==" + }, "node_modules/js-yaml": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", @@ -4286,6 +4297,11 @@ "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==" }, + "Base64": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/Base64/-/Base64-1.1.0.tgz", + "integrity": "sha512-qeacf8dvGpf+XAT27ESHMh7z84uRzj/ua2pQdJg483m3bEXv/kVFtDnMgvf70BQGqzbZhR9t6BmASzKvqfJf3Q==" + }, "binary-extensions": { "version": "2.2.0", "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", @@ -5222,6 +5238,11 @@ "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", "dev": true }, + "js-sha256": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/js-sha256/-/js-sha256-0.9.0.tgz", + "integrity": "sha512-sga3MHh9sgQN2+pJ9VYZ+1LPwXOxuBJBA5nrR5/ofPfuiJBE2hnjsaN8se8JznOmGLN2p49Pe5U/ttafcs/apA==" + }, "js-yaml": { "version": "4.1.0", "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz", diff --git a/package.json b/package.json index 54ecc41..97e1572 100644 --- a/package.json +++ b/package.json @@ -36,6 +36,7 @@ }, "type": "module", "dependencies": { + "js-sha256": "^0.9.0", "svelte-gestures": "^1.4.1", "svelte-language-server": "^0.14.29" } diff --git a/src/components/homepage/content.svelte b/src/components/homepage/content.svelte index 19f0a48..436ebab 100644 --- a/src/components/homepage/content.svelte +++ b/src/components/homepage/content.svelte @@ -1,63 +1,78 @@ -

Welcome to my website

+

+ Welcome to my website +

-

The modern web meets 2000

-
-
-
-

- Welcome! This is my personal website that I made as a hobby project. You are entirely welcome! - I was inspired to make this page thanks to a couple of friends of mine, whose pages you can - check out under the "Galaxies" page. -

-
-
- Kagamine Rin excitedly jumping! yay! -
-
-

Tech

-
    -
  • Kubernetes
  • -
  • Svelte
  • -
  • SvelteKit
  • -
  • Lot's of Japanese music
  • -
-
-
-

Misc

- -
-

- This entire project is open source (GPL-3) and the source code is linked above. In - addition, a CI/CD pipeline deploys this website on every push. -

-
+

The modern web meets 2000

+
+
+
+

+ Welcome! This is my personal website that I made as a hobby project. You are entirely welcome! I + was inspired to make this page thanks to a couple of friends of mine, whose pages you can check + out under the "Galaxies" page. +

+
+
+ Kagamine Rin excitedly jumping! yay! +
+
+

Tech

+
    +
  • Kubernetes
  • +
  • Svelte
  • +
  • SvelteKit
  • +
  • Lot's of Japanese music
  • +
+
+
+

Misc

+
+
+
+
+

Details

+

+ This entire project is open source (GPL-3) and the source code is linked above. In addition, a + CI/CD pipeline deploys this website on every push. +

+
+
+
+ +