From b8acf5a26cc8423c093a5458420810dd7f4d7acc Mon Sep 17 00:00:00 2001 From: genki_angel Date: Sat, 1 Nov 2025 17:54:37 +0000 Subject: [PATCH] added link page and a link component --- src/lib/components/link.svelte | 87 ++++++++++++++++++++++++++++++++++ src/lib/components/pet.svelte | 19 ++++---- src/routes/links/+page.svelte | 30 +++++++++++- 3 files changed, 127 insertions(+), 9 deletions(-) create mode 100644 src/lib/components/link.svelte diff --git a/src/lib/components/link.svelte b/src/lib/components/link.svelte new file mode 100644 index 0000000..5538964 --- /dev/null +++ b/src/lib/components/link.svelte @@ -0,0 +1,87 @@ + + + + + diff --git a/src/lib/components/pet.svelte b/src/lib/components/pet.svelte index 6de6406..c0541a7 100644 --- a/src/lib/components/pet.svelte +++ b/src/lib/components/pet.svelte @@ -7,7 +7,7 @@ }: { name: string; species?: string; img: string; children?: any } = $props(); -
+

{name}

@@ -22,7 +22,7 @@ @use '$lib/styles/variables' as vars; .pet { // margin: 1em; - border: 1px solid vars.$highlight; + border: 1px solid vars.$base-colour; display: flex; // align-items: center; gap: 1em; @@ -32,21 +32,24 @@ line-height: 1em; padding-top: 0.2em; } - h3 { - // text-decoration: underline; - color: vars.$base-colour; - margin-bottom: .2em; - } + h3 { + // text-decoration: underline; + color: vars.$base-colour; + margin-bottom: 0.2em; + } img { width: 200px; - min-width: 200px; + min-width: 200px; height: 200px; } } + .grow { transition: all 0.2s ease-in-out; } + .grow:hover { transform: scale(1.03); + border: 1px solid vars.$highlight; } diff --git a/src/routes/links/+page.svelte b/src/routes/links/+page.svelte index 56fdb55..5b2a80a 100644 --- a/src/routes/links/+page.svelte +++ b/src/routes/links/+page.svelte @@ -1,10 +1,33 @@

Links

- + + + + + +