From 4d8d10765cccf49d552c7b1fd87a279b6080729b Mon Sep 17 00:00:00 2001 From: denizk0461 Date: Mon, 2 Feb 2026 20:50:57 +0100 Subject: [PATCH] added SubtitledImage component --- src/lib/components/subtitled-image.svelte | 111 +++++++++++++++++++ src/routes/+layout.svelte | 3 +- src/routes/projects/projectn5/+layout.svelte | 5 - src/routes/test/+page.svelte | 41 +++++++ 4 files changed, 154 insertions(+), 6 deletions(-) create mode 100644 src/lib/components/subtitled-image.svelte delete mode 100644 src/routes/projects/projectn5/+layout.svelte create mode 100644 src/routes/test/+page.svelte diff --git a/src/lib/components/subtitled-image.svelte b/src/lib/components/subtitled-image.svelte new file mode 100644 index 0000000..de34050 --- /dev/null +++ b/src/lib/components/subtitled-image.svelte @@ -0,0 +1,111 @@ + + +{#snippet subtitledImageContent()} + {altText} + + {#if subtitle} +
+
+ +

{subtitle}

+
+ {/if} +{/snippet} + +{#if alignment && alignment == "left"} + + {@render subtitledImageContent()} + +{:else if alignment && alignment == "right"} + + {@render subtitledImageContent()} + +{:else} + + {@render subtitledImageContent()} + +{/if} + + \ No newline at end of file diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index e452c8d..d19948d 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -97,6 +97,7 @@ :global { :root { --color-text: #d0d0d0; + --color-text-secondary: #b0b0b0; --color-text-img: invert(98%) sepia(1%) saturate(4643%) hue-rotate(297deg) brightness(115%) contrast(76%); --color-text-dark: #1e1e1e; --color-highlight: #51B86B; @@ -340,7 +341,7 @@ .pixelated-img { image-rendering: pixelated; } - + .small-supertext { font-size: 0.7rem; line-height: 0.7rem; diff --git a/src/routes/projects/projectn5/+layout.svelte b/src/routes/projects/projectn5/+layout.svelte deleted file mode 100644 index 10a92f9..0000000 --- a/src/routes/projects/projectn5/+layout.svelte +++ /dev/null @@ -1,5 +0,0 @@ - - -{@render children()} \ No newline at end of file diff --git a/src/routes/test/+page.svelte b/src/routes/test/+page.svelte new file mode 100644 index 0000000..27282ff --- /dev/null +++ b/src/routes/test/+page.svelte @@ -0,0 +1,41 @@ + + + + +

this is a test page. please disregard. or not i'm not your boss

+ + + + +

test text to see whether this aligmne tactually works afdsdfasjd iofjaopsid iofjasiop[d iofajiope juiorpfjah sidfokljasolkdjf ioajsu0oid kfjpzxj niujkhjozx jcio gjzoxij cviozjhxioc jvzxjc asdjfoasd iozxoic uoizxcu hoiwe oijfio aswjiofjo sajdj asd hnnhnhnhan han n nhnhnhnhnnhnh nhnh nggnhngh ng nhng nhng nh na asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdftest text to see whether this aligmne tactually works afdsdfasjd iofjaopsid iofjasiop[d iofajiope juiorpfjah sidfokljasolkdjf ioajsu0oid kfjpzxj niujkhjozx jcio gjzoxij cviozjhxioc jvzxjc asdjfoasd iozxoic uoizxcu hoiwe oijfio aswjiofjo sajdj asd hnnhnhnhan han n nhnhnhnhnnhnh nhnh nggnhngh ng nhng nhng nh na asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdftest text to see whether this aligmne tactually works nhng nh na asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdftest text to see whether this aligmne tactually works afdsdfasjd if asdf

+ + +

test text to see whether this aligmne tactually works afdsdfasjd iofjaopsid iofjasiop[d iofajiope juiorpfjah sidfokljasolkdjf ioajsu0oid kfjpzxj niujkhjozx jcio gjzoxij cviozjhxioc jvzxjc asdjfoasd iozxoic uoizxcu hoiwe oijfio aswjiofjo sajdj asd hnnhnhnhan han n nhnhnhnhnnhnh nhnh nggnhngh ng nhng nhng nh na asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdftest text to see whether this aligmne tactually works afdsdfasjd iofjaopsid iofjasiop[d iofajiope juiorpfjah sidfokljasolkdjf ioajsu0oid kfjpzxj niujkhjozx jcio gjzoxij cviozjhxioc jvzxjc asdjfoasd iozxoic uoizxcu hoiwe oijfio aswjiofjo sajdj asd hnnhnhnhan han n nhnhnhnhnnhnh nhnh nggnhngh ng nhng nhng nh na asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdftest text to see whether this aligmne tactually works afdsdfasjd iofjaopsid iofjasiop[d iofajiope juiorpfjah sidfokljasolkdjf ioajsu0oid kfjpzxj niujkhjozx jcio gjzoxij cviozjhxioc jvzxjc asdjfoasd iozxoic uoizxcu hoiwe oijfio aswjiofjo sajdj asd hnnhnhnhan han n nhnhnhnhnnhnh nhnh nggnhngh ng nhng nhng nh na asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdftest text to see whether this aligmne tactually works afdsdfasjd iofjaopsid iofjasiop[d iofajiope juiorpfjah sidfokljasolkdjf ioajsu0oid kfjpzxj niujkhjozx jcio gjzoxij cviozjhxioc jvzxjc asdjfoasd iozxoic uoizxcu hoiwe oijfio aswjiofjo sajdj asd hnnhnhnhan han n nhnhnhnhnnhnh nhnh nggnhngh ng nhng nhng nh na asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdftest text to see whether this aligmne tactually works afdsdfasjd iofjaopsid iofjasiop[d iofajiope juiorpfjah sidfokljasolkdjf ioajsu0oid kfjpzxj niujkhjozx jcio gjzoxij cviozjhxioc jvzxjc asdjfoasd iozxoic uoizxcu hoiwe oijfio aswjiofjo sajdj asd hnnhnhnhan han n nhnhnhnhnnhnh nhnh nggnhngh ng nhng nhng nh na asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf asdf

+ + +
\ No newline at end of file