diff --git a/sites/svelte.dev/src/routes/__layout.svelte b/sites/svelte.dev/src/routes/__layout.svelte index a56dd428..f6dc696b 100644 --- a/sites/svelte.dev/src/routes/__layout.svelte +++ b/sites/svelte.dev/src/routes/__layout.svelte @@ -2,6 +2,7 @@ import '@sveltejs/site-kit/base.css'; import { setContext } from 'svelte'; import { page, navigating, session } from '$app/stores'; + import { browser } from '$app/env'; import { Icon, Icons, Nav, NavItem, SkipLink } from '@sveltejs/site-kit'; import PreloadingIndicator from '$lib/components/PreloadingIndicator.svelte'; @@ -28,6 +29,10 @@ if (r.ok) $session.user = null; } }); + + let h = 0; + let w = 0; + $: browser && document.documentElement.style.setProperty('--ukr-footer-height', `${h}px`); @@ -38,7 +43,7 @@ {#if $page.url.pathname !== '/repl/embed'} - + Tutorial Docs @@ -62,18 +67,59 @@ + + + {#if w < 830} + We stand with Ukraine. + Donate → + {:else} + We stand with Ukraine. + Petition your leaders. Show your support. + {/if} + {/if} - + \ No newline at end of file