fix: navigation doesnt close on mobile
This commit is contained in:
parent
539a216cc2
commit
5252b48602
|
@ -54,10 +54,42 @@
|
||||||
style="transition: left {duration}s ease-in-out"
|
style="transition: left {duration}s ease-in-out"
|
||||||
>
|
>
|
||||||
<div class="flex flex-col items-center content-center text-center pt-20">
|
<div class="flex flex-col items-center content-center text-center pt-20">
|
||||||
<div on:click={() => goto('/')} class="hover:cursor-pointer flex-1 font-bold text-4xl py-6">Jokesbapak2</div>
|
<div
|
||||||
<div on:click={() => goto('/why')} class="flex-1 py-3 text-3xl">{$_('navigation.why')}</div>
|
on:click={() => {
|
||||||
<div on:click={() => goto('/guide')} class="flex-1 py-3 text-3xl">{$_('navigation.guide')}</div>
|
open = false;
|
||||||
<div on:click={() => goto('/api')} class="flex-1 py-3 text-3xl">{$_('navigation.api')}</div>
|
return goto('/');
|
||||||
|
}}
|
||||||
|
class="hover:cursor-pointer flex-1 font-bold text-4xl py-6"
|
||||||
|
>
|
||||||
|
Jokesbapak2
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
on:click={() => {
|
||||||
|
open = false;
|
||||||
|
return goto('/why');
|
||||||
|
}}
|
||||||
|
class="flex-1 py-3 text-3xl"
|
||||||
|
>
|
||||||
|
{$_('navigation.why')}
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
on:click={() => {
|
||||||
|
open = false;
|
||||||
|
return goto('/guide');
|
||||||
|
}}
|
||||||
|
class="flex-1 py-3 text-3xl"
|
||||||
|
>
|
||||||
|
{$_('navigation.guide')}
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
on:click={() => {
|
||||||
|
open = false;
|
||||||
|
return goto('/api');
|
||||||
|
}}
|
||||||
|
class="flex-1 py-3 text-3xl"
|
||||||
|
>
|
||||||
|
{$_('navigation.api')}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</menu>
|
</menu>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
Loading…
Reference in New Issue