Skip to content

Commit

Permalink
hide quick menu (#234)
Browse files Browse the repository at this point in the history
Quick menu was showing on all screen sizes. it's now restricted to just mobile views.
  • Loading branch information
theClarkSell committed Feb 20, 2024
2 parents a2c256b + 0f2ea74 commit 2399b89
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/routes/(that conferences)/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@
import { fade } from 'svelte/transition';
import { Trees } from '$elements/svgs';
import { Breakpoints } from '$components/breakpoints';
import Footer from '$components/footer/Footer.svelte';
import Nav from '$components/navigation/thatConference/Nav.svelte';
import LinkDrawer from './_components/LinkDrawer.svelte';
let currentBreakpoint;
let { event } = data;
const [venue] = event.venues;
Expand Down Expand Up @@ -43,6 +45,8 @@
};
</script>

<Breakpoints bind:value={currentBreakpoint} />

<div class="bg-thatBlue-100 bg-opacity-25">
<div class="flex min-h-screen flex-col bg-gray-50">
<div class="z-50">
Expand All @@ -60,7 +64,10 @@
<slot />
</main>

<LinkDrawer {event} />
{#if ['xs', 'sm', 'md'].includes(currentBreakpoint)}
<LinkDrawer {event} />
{/if}

<Footer />
</div>
</div>
Expand Down

0 comments on commit 2399b89

Please sign in to comment.