Commented out future implementations

This commit is contained in:
Matthieu Morin 2023-11-11 19:03:04 +01:00
parent f1c6ba316a
commit 51d41fa91b
3 changed files with 23 additions and 27 deletions

View File

@ -4,10 +4,10 @@
export let post: BlogPost; export let post: BlogPost;
export let type: 'blog'; export let type: 'blog';
export let published: boolean; // export let published: boolean;
export let headlineOrder: 'h3' | '' = ''; // export let headlineOrder: 'h3' | '' = '';
export let badge: string = ''; // export let badge: string = '';
export let textWidth: string = ''; // export let textWidth: string = '';
const generateURL = (href?: string, slug?: string) => { const generateURL = (href?: string, slug?: string) => {
if (href) return href; if (href) return href;

View File

@ -39,10 +39,6 @@
figure { figure {
@apply flex relative flex-col; @apply flex relative flex-col;
} }
figure svg,
.img-bg {
@apply w-64 h-64;
}
.img-bg { .img-bg {
@apply absolute z-[-1] rounded-full blur-[50px] transition-all; @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; animation: pulse 5s cubic-bezier(0, 0, 0, 0.5) infinite, glow 5s linear infinite;

View File

@ -21,30 +21,30 @@
//Cookie, Identifiers and store //Cookie, Identifiers and store
import Cookies from 'js-cookie'; import Cookies from 'js-cookie';
import { cookies } from '$lib/constants';
import { page } from '$app/stores'; import { page } from '$app/stores';
import { isEurope, removeTrailingSlash } from '$lib/utils/helpers'; import { isEurope, removeTrailingSlash } from '$lib/utils/helpers';
onMount(() => { // Cookie implementatiion TODO component
Cookies.set(cookies.NECESSARY, 'true', { // onMount(() => {
expires: 365, // Cookies.set(cookies.NECESSARY, 'true', {
domain: '.mattmor.in' // expires: 365,
}); // domain: '.mattmor.in'
// });
if (Cookies.get(cookies.ANALYTICAL) !== 'false' && !isEurope()) { // if (Cookies.get(cookies.ANALYTICAL) !== 'false' && !isEurope()) {
Cookies.set(cookies.ANALYTICAL, 'true', { // Cookies.set(cookies.ANALYTICAL, 'true', {
expires: 365, // expires: 365,
domain: '.mattmor.in' // domain: '.mattmor.in'
}); // });
} // }
if (Cookies.get(cookies.ANALYTICAL) === 'true') { // if (Cookies.get(cookies.ANALYTICAL) === 'true') {
Cookies.set(cookies.VISITED, 'true', { // Cookies.set(cookies.VISITED, 'true', {
expires: 365, // expires: 365,
domain: '.mattmor.in' // domain: '.mattmor.in'
}); // });
} // }
}); // });
// Scroll to anchor // Scroll to anchor
$: if ($page.url.pathname) { $: if ($page.url.pathname) {