Add mobile layout

This commit is contained in:
Jon Staab
2024-10-09 16:11:23 -07:00
parent 05b320cd98
commit 09c3668afd
33 changed files with 513 additions and 185 deletions
+1 -1
View File
@@ -3,7 +3,7 @@
</script>
<div class="btn btn-neutral btn-lg h-24 text-left w-full">
<div class="flex gap-6 flex-row justify-between items-center w-full {$$props.class}">
<div class="flex gap-2 flex-row justify-between items-center w-full {$$props.class}">
<div class="flex gap-6 items-center">
<div class="w-12 center">
<slot name="icon" />
+4
View File
@@ -0,0 +1,4 @@
<div class="column gap-2 py-4 max-w-xs m-auto">
<h1 class="heading"><slot name="title" /></h1>
<p class="text-center"><slot name="info" /></p>
</div>
+1 -1
View File
@@ -1,3 +1,3 @@
<div class="max-h-screen flex-grow overflow-auto bg-base-200 pb-12 sm:pb-0">
<div class="max-h-screen flex-grow overflow-auto bg-base-200 mb-2 pb-12 sm:mb-0 sm:pb-0">
<slot />
</div>
+17
View File
@@ -0,0 +1,17 @@
<script lang="ts">
import Icon from '@lib/components/Icon.svelte'
import Button from '@lib/components/Button.svelte'
const back = () => history.back()
</script>
<div class="relative z-feature mx-2 rounded-xl pt-4">
<div
class="flex min-h-12 items-center justify-between gap-4 rounded-xl bg-base-100 px-4 shadow-xl">
<div class="flex items-center gap-4">
<slot name="icon" />
<slot name="title" />
</div>
<slot name="action" />
</div>
</div>
+5
View File
@@ -0,0 +1,5 @@
<div class="column gap-4 py-12">
<h1 class="superheading"><slot name="title" /></h1>
<p class="text-center"><slot name="info" /></p>
</div>
+1 -1
View File
@@ -1,3 +1,3 @@
<div class="flex max-h-screen w-60 flex-shrink-0 flex-col gap-1 bg-base-300">
<div class="max-h-screen w-60 flex-shrink-0 flex-col gap-1 bg-base-300 hidden sm:flex">
<slot />
</div>