Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions platforms/metagram/src/app.css
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,9 @@
body {
font-family: 'Geist', sans-serif;
padding-top: env(safe-area-inset-top);
padding-bottom: env(safe-area-inset-bottom);
padding-left: env(safe-area-inset-left);
padding-right: env(safe-area-inset-right);
padding-bottom: env(safe-area-inset-bottom);
padding-left: env(safe-area-inset-left);
padding-right: env(safe-area-inset-right);
background-color: white;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
<!-- svelte-ignore a11y_no_noninteractive_element_to_interactive_role -->
<nav
aria-label="Main navigation"
class="fixed start-0 bottom-0 flex w-full items-center justify-between px-7 py-2 sm:hidden"
class="fixed start-0 bottom-0 flex w-full items-center justify-between px-7 py-2 md:hidden"
role="tablist"
>
<button
Expand Down
13 changes: 11 additions & 2 deletions platforms/metagram/src/routes/(protected)/+layout.svelte
Original file line number Diff line number Diff line change
@@ -1,9 +1,18 @@
<script lang="ts">
import { page } from '$app/state';
import { BottomNav } from '$lib/fragments';
let { children } = $props();
let route = $derived(page.url.pathname);
</script>

<main>
{@render children()}
<main class="block h-[100dvh] grid-cols-[22vw_auto_31vw] md:grid">
<aside class="hidden border border-y-0 border-e-gray-200 md:block">Sidebar</aside>
<section>
{@render children()}
</section>
{#if !route.endsWith('/messages')}
<aside class="hidden border border-y-0 border-s-gray-200 md:block">Right Aside</aside>
{/if}
<BottomNav profileSrc="https://picsum.photos/200" />
</main>
10 changes: 1 addition & 9 deletions platforms/metagram/src/routes/(protected)/home/+page.svelte
Original file line number Diff line number Diff line change
@@ -1,12 +1,4 @@
<script lang="ts">
import { goto } from '$app/navigation';
import { isNavigatingThroughNav } from '$lib/store/store.svelte';
import { Button } from '$lib/ui';
</script>

<h1>Home</h1>
<Button
callback={async () => {
(isNavigatingThroughNav.value = false), goto('/discover');
}}>discover</Button
>
<main>Main</main>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<script lang="ts">
</script>

<h1>Messages</h1>
<main>Messages</main>
2 changes: 1 addition & 1 deletion platforms/metagram/src/routes/+layout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,6 @@
});
</script>

<main>
<main class="h-[100dvh] px-4 md:px-0">
{@render children()}
</main>
Loading