From 51d41fa91b112a0d35eb7219066a922d2f1080ca Mon Sep 17 00:00:00 2001 From: Matthieu Morin Date: Sat, 11 Nov 2023 19:03:04 +0100 Subject: [PATCH] Commented out future implementations --- src/lib/components/blog/PostPreview.svelte | 8 ++--- src/routes/(home)/+page.svelte | 4 --- src/routes/+layout.svelte | 38 +++++++++++----------- 3 files changed, 23 insertions(+), 27 deletions(-) diff --git a/src/lib/components/blog/PostPreview.svelte b/src/lib/components/blog/PostPreview.svelte index e493189..15c430e 100644 --- a/src/lib/components/blog/PostPreview.svelte +++ b/src/lib/components/blog/PostPreview.svelte @@ -4,10 +4,10 @@ export let post: BlogPost; export let type: 'blog'; - export let published: boolean; - export let headlineOrder: 'h3' | '' = ''; - export let badge: string = ''; - export let textWidth: string = ''; + // export let published: boolean; + // export let headlineOrder: 'h3' | '' = ''; + // export let badge: string = ''; + // export let textWidth: string = ''; const generateURL = (href?: string, slug?: string) => { if (href) return href; diff --git a/src/routes/(home)/+page.svelte b/src/routes/(home)/+page.svelte index 06ae5a3..c7c927a 100644 --- a/src/routes/(home)/+page.svelte +++ b/src/routes/(home)/+page.svelte @@ -39,10 +39,6 @@ figure { @apply flex relative flex-col; } - figure svg, - .img-bg { - @apply w-64 h-64; - } .img-bg { @apply absolute z-[-1] rounded-full blur-[50px] transition-all; animation: pulse 5s cubic-bezier(0, 0, 0, 0.5) infinite, glow 5s linear infinite; diff --git a/src/routes/+layout.svelte b/src/routes/+layout.svelte index c6028cf..285298a 100644 --- a/src/routes/+layout.svelte +++ b/src/routes/+layout.svelte @@ -21,30 +21,30 @@ //Cookie, Identifiers and store import Cookies from 'js-cookie'; - import { cookies } from '$lib/constants'; import { page } from '$app/stores'; import { isEurope, removeTrailingSlash } from '$lib/utils/helpers'; - onMount(() => { - Cookies.set(cookies.NECESSARY, 'true', { - expires: 365, - domain: '.mattmor.in' - }); + // Cookie implementatiion TODO component + // onMount(() => { + // Cookies.set(cookies.NECESSARY, 'true', { + // expires: 365, + // domain: '.mattmor.in' + // }); - if (Cookies.get(cookies.ANALYTICAL) !== 'false' && !isEurope()) { - Cookies.set(cookies.ANALYTICAL, 'true', { - expires: 365, - domain: '.mattmor.in' - }); - } + // if (Cookies.get(cookies.ANALYTICAL) !== 'false' && !isEurope()) { + // Cookies.set(cookies.ANALYTICAL, 'true', { + // expires: 365, + // domain: '.mattmor.in' + // }); + // } - if (Cookies.get(cookies.ANALYTICAL) === 'true') { - Cookies.set(cookies.VISITED, 'true', { - expires: 365, - domain: '.mattmor.in' - }); - } - }); + // if (Cookies.get(cookies.ANALYTICAL) === 'true') { + // Cookies.set(cookies.VISITED, 'true', { + // expires: 365, + // domain: '.mattmor.in' + // }); + // } + // }); // Scroll to anchor $: if ($page.url.pathname) {