Skip to main content
Sign in
Snippets Groups Projects

Début du travail sur la nouvelle page d'accueil/d'atterrissage du simulateur

4 files
+ 49
15
Compare changes
  • Side-by-side
  • Inline

Files

+ 7
6
@@ -10,6 +10,7 @@
@@ -10,6 +10,7 @@
import PersistentPopover from "$lib/components/PersistentPopover.svelte"
import PersistentPopover from "$lib/components/PersistentPopover.svelte"
import NavBarSearch from "$lib/components/search/NavBarSearch.svelte"
import NavBarSearch from "$lib/components/search/NavBarSearch.svelte"
import { trackSearchVariable } from "$lib/matomo"
import { trackSearchVariable } from "$lib/matomo"
 
import type { NavbarConfig } from "$lib/navbar"
import WithLinkedVariablesSearchWorker from "$lib/search/search_worker_variables_with_linked?worker"
import WithLinkedVariablesSearchWorker from "$lib/search/search_worker_variables_with_linked?worker"
const isSearchActive = getContext("isSearchActive") as Writable<boolean>
const isSearchActive = getContext("isSearchActive") as Writable<boolean>
@@ -25,7 +26,7 @@
@@ -25,7 +26,7 @@
let searchResults: SearchResult[] = []
let searchResults: SearchResult[] = []
let searchWorker: Worker | undefined = undefined
let searchWorker: Worker | undefined = undefined
const showTutorial = getContext("showTutorial") as Writable<boolean>
const showTutorial = getContext("showTutorial") as Writable<boolean>
const welcomePage = getContext("welcomePage") as Writable<boolean | undefined>
const navbarConfig = getContext("navbarConfig") as Writable<NavbarConfig>
if (browser) {
if (browser) {
searchWorker = new WithLinkedVariablesSearchWorker()
searchWorker = new WithLinkedVariablesSearchWorker()
@@ -83,8 +84,8 @@
@@ -83,8 +84,8 @@
<nav
<nav
class="z-50 w-full md:top-0"
class="z-50 w-full md:top-0"
class:relative={$welcomePage === undefined}
class:relative={$navbarConfig.position === "relative"}
class:fixed={$welcomePage !== undefined}
class:fixed={$navbarConfig.position === "fixed"}
>
>
<div
<div
class="mx-auto bg-le-jaune-very-dark px-2 shadow-md md:h-12 md:px-3 2xl:h-14"
class="mx-auto bg-le-jaune-very-dark px-2 shadow-md md:h-12 md:px-3 2xl:h-14"
@@ -111,7 +112,7 @@
@@ -111,7 +112,7 @@
</span>
</span>
</a>
</a>
{#if !$welcomePage}
{#if $navbarConfig.showSearch}
<!-- Logo -->
<!-- Logo -->
<a
<a
href="/"
href="/"
@@ -146,7 +147,7 @@
@@ -146,7 +147,7 @@
{/if}
{/if}
</div>
</div>
{#if !$welcomePage}
{#if $navbarConfig.showSearch}
<div
<div
in:fade={{ duration: 100, delay: 100 }}
in:fade={{ duration: 100, delay: 100 }}
out:fade={{ duration: 100 }}
out:fade={{ duration: 100 }}
@@ -156,7 +157,7 @@
@@ -156,7 +157,7 @@
</div>
</div>
{/if}
{/if}
{#if $welcomePage}
{#if !$navbarConfig.showSearch}
<div
<div
class="absolute inset-0 pointer-events-none mx-auto h-full flex justify-center items-center gap-2 uppercase text-white"
class="absolute inset-0 pointer-events-none mx-auto h-full flex justify-center items-center gap-2 uppercase text-white"
in:fade={{ duration: 100, delay: 150 }}
in:fade={{ duration: 100, delay: 150 }}
Loading