From ef786864322cb15cfb92d294d3024dfd8404c28f Mon Sep 17 00:00:00 2001 From: Alexander Bocken Date: Mon, 22 Jan 2024 14:43:52 +0100 Subject: [PATCH] no blurred image if JS disabled --- src/lib/components/Card.svelte | 7 ++++++- src/lib/components/TitleImgParallax.svelte | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/lib/components/Card.svelte b/src/lib/components/Card.svelte index 616287b..759472f 100644 --- a/src/lib/components/Card.svelte +++ b/src/lib/components/Card.svelte @@ -48,6 +48,8 @@ onMount(() => { height: 255px; object-fit: cover; transition: 200ms; +} +.blur{ filter: blur(10px); backdrop-filter: blur(10px); } @@ -172,7 +174,10 @@ onMount(() => {
- {recipe.alt} isloaded=true}/> + + {recipe.alt} isloaded=true}/>
{#if icon_override || recipe.season.includes(current_month)} diff --git a/src/lib/components/TitleImgParallax.svelte b/src/lib/components/TitleImgParallax.svelte index 0fcbd71..c0f4a25 100644 --- a/src/lib/components/TitleImgParallax.svelte +++ b/src/lib/components/TitleImgParallax.svelte @@ -170,6 +170,11 @@ dialog button{ {isloaded=true}} alt=""/>
+