Skip to content

Commit

Permalink
feat(ui): Introduce Mobile Layout default for every page
Browse files Browse the repository at this point in the history
  • Loading branch information
Likqez committed Oct 18, 2024
1 parent 3204853 commit 67fcde9
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 14 deletions.
21 changes: 10 additions & 11 deletions layouts/SplitView.vue
Original file line number Diff line number Diff line change
@@ -1,24 +1,23 @@
<template>
<div class="flex flex-col h-screen max-h-screen max-w-full">
<div class="flex basis-1/3 flex-col h-screen max-h-screen max-w-screen-sm">

<div class="h-1/6">
<!-- possible Title and nav -->
<slot name="header"/>
</div>

<div class="flex-1 flex flex-col">
<div class="flex-1">
<!-- CONTENT WITH NO ACTION! -->
<slot name="content"/>
</div>
<div class="flex-1">
<!-- CONTENT WITH NO ACTION! -->
<slot name="content"/>
</div>

<div class="flex-1 content-end">
<div class="flex flex-row justify-center">
<!-- Action buttons like 80% width, stackable until 50% of height -->
<slot name="bottom"/>
</div>
<div class="basis-1/2 content-end">
<div class="flex flex-row justify-center">
<!-- Action buttons like 80% width, stackable until 50% of height -->
<slot name="bottom"/>
</div>


</div>
</div>
</template>
Expand Down
6 changes: 4 additions & 2 deletions layouts/default.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
<template>
<div>
<slot/>
<div class="flex justify-center">
<div class="max-w-screen-sm w-screen">
<slot/>
</div>
</div>
</template>
2 changes: 1 addition & 1 deletion pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ useSeoMeta({
</script>

<template>
<div class="h-screen bg-gradient-to-b from-indigo-500 via-purple-500 to-pink-500">
<div class="bg-gradient-to-b from-indigo-500 via-purple-500 to-pink-500">
<DashboardView>
<template #header>
<div>
Expand Down

0 comments on commit 67fcde9

Please sign in to comment.