Skip to content

Commit

Permalink
open info on first open
Browse files Browse the repository at this point in the history
  • Loading branch information
Sebastian Flick committed May 16, 2024
1 parent e5ddcce commit fde47be
Show file tree
Hide file tree
Showing 2 changed files with 30 additions and 21 deletions.
49 changes: 29 additions & 20 deletions src/routes/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@
import MapImage from '$lib/Worldmap-Base.png?enhanced';
//@ts-ignore
import dimensions from '$lib/Worldmap-Base.png?as=meta:height;width';
import { getModalStore } from '@skeletonlabs/skeleton';
import { Accordion, AccordionItem } from '@skeletonlabs/skeleton';
import { getModalStore, Accordion, AccordionItem } from '@skeletonlabs/skeleton';
import type { ModalSettings } from '@skeletonlabs/skeleton';
import { onMount } from 'svelte';
const modalStore = getModalStore();
Expand All @@ -17,7 +17,7 @@
body: `
<h2>Explore by regions</h2>
These literary representations reflect the importance of the beach in everyday culture, as a vacation site, a contact zone, a site of capitalist production and, in recent years, an arrival zone for refugees and a scene of terrorist attacks. With the irrefutability of global warming, the littoral ecotone has also emerged as a site where its effects have become most dramatically visible.
This project seeks to redress this neglect, reclaiming the beach as a central space of modernity and postmodernity: <span class="badge variant-filled-secondary">Black Atlantic</span>, <span class="badge variant-filled-tertiary">Mediterranean</span>, <span class="badge bg-quarternary-500 text-surface-700">Northern Sea</span>
This project seeks to redress this neglect, reclaiming the beach as a central space of modernity and postmodernity: <span class="badge variant-filled-secondary">Black Atlantic</span>, <span class="badge variant-filled-tertiary">Mediterranean</span>, <span class="badge bg-quarternary-500 text-surface-900">Northern Sea</span>
<br><br>
<h2>Explore by topic</h2>
These literary representations reflect the importance of the beach in everyday culture, as a vacation site, a contact zone, a site of capitalist production and, in recent years, an arrival zone for refugees and a scene of terrorist attacks. With the irrefutability of global warming, the littoral ecotone has also emerged as a site where its effects have become most dramatically visible.
Expand All @@ -44,14 +44,14 @@
name: 'mood',
label: 'Mood',
content: `<p>This is the Northern Sea region. This region encompasses texts that are set in countries
bordering the North Sea, the Baltic Sea, parts of the North Atlantic Ocean and the
Norwegian
Sea. For this region, some clear results have been identified. The materiality
of the beaches in these texts are often rocky, shingles, fossils, driftwood
and plastic.
The mood is also characterised
by being contemplative, curious,
and morbid.</p>`
bordering the North Sea, the Baltic Sea, parts of the North Atlantic Ocean and the
Norwegian
Sea. For this region, some clear results have been identified. The materiality
of the beaches in these texts are often rocky, shingles, fossils, driftwood
and plastic.
The mood is also characterised
by being contemplative, curious,
and morbid.</p>`
},
{
name: 'event',
Expand Down Expand Up @@ -82,7 +82,7 @@ and morbid.</p>`
meta: {
region: 'northern-sea',
btnClasses:
'btn bg-quarternary-500 text-surface-700 hover:bg-surface-700 hover:text-quarternary-500',
'btn bg-quarternary-500 text-surface-900 hover:bg-surface-900 hover:text-quarternary-500',
color: 'quarternary-500',
tabs: [
{
Expand Down Expand Up @@ -116,19 +116,28 @@ and morbid.</p>`
name: 'mood',
label: 'Mood',
content: `<p>This is the Northern Sea region. This region encompasses texts that are set in countries
bordering the North Sea, the Baltic Sea, parts of the North Atlantic Ocean and the
Norwegian
Sea. For this region, some clear results have been identified. The materiality
of the beaches in these texts are often rocky, shingles, fossils, driftwood
and plastic.
The mood is also characterised
by being contemplative, curious,
and morbid.</p>`
bordering the North Sea, the Baltic Sea, parts of the North Atlantic Ocean and the
Norwegian
Sea. For this region, some clear results have been identified. The materiality
of the beaches in these texts are often rocky, shingles, fossils, driftwood
and plastic.
The mood is also characterised
by being contemplative, curious,
and morbid.</p>`
}
]
}
};
let svg: SVGElement;
onMount(() => {
//check whether the cookie is set. if not, show the modal
if (!document.cookie.includes('showInfoModal')) {
modalStore.trigger(info);
//set the cookie to expire in 6 months
document.cookie = 'showInfoModal=true; max-age=15552000';
}
});
</script>

<svelte:window on:resize={() => (svg = svg)} />
Expand Down
2 changes: 1 addition & 1 deletion src/routes/region/black-atlantic/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
<li>
<a
href="{base}/region/northern-sea"
class="btn bg-quarternary-500 text-surface-700 hover:bg-surface-700 hover:text-quarternary-500"
class="btn bg-quarternary-500 text-surface-900 hover:bg-surface-900 hover:text-quarternary-500"
>Northern Sea</a
>
</li>
Expand Down

0 comments on commit fde47be

Please sign in to comment.