Skip to content

Commit bbe9357

Browse files
authored
Guest layout (#106)
* Apply guest layout * Adjust guest layout
1 parent ccfe786 commit bbe9357

File tree

7 files changed

+76
-7
lines changed

7 files changed

+76
-7
lines changed

resources/js/Components/Header.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,11 @@
44
<div class="mx-auto max-w-7xl">
55
<div class="flex h-16 items-center justify-between">
66
<div class="flex items-center">
7-
<Link :href="route('home')">
8-
<SparklesIcon class="size-7 shrink-0 text-brand-800" />
7+
<Link
8+
class="shrink-0 text-brand-800"
9+
:href="route('home')"
10+
>
11+
<SparklesIcon class="size-7" />
912
</Link>
1013
</div>
1114

@@ -80,7 +83,7 @@
8083

8184
<script setup>
8285
import { ref, onMounted } from "vue";
83-
import { router } from '@inertiajs/vue3'
86+
import { router } from '@inertiajs/vue3';
8487
8588
import {
8689
Sparkles as SparklesIcon,

resources/js/Layouts/Guest.vue

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<template>
2+
3+
<Head>
4+
<title></title>
5+
</Head>
6+
7+
<div class="min-h-full flex flex-col justify-center">
8+
<main class="xl:py-16 py-8 px-4 sm:px-6 xl:px-8">
9+
<div class="mx-auto max-w-7xl">
10+
<SparklesIcon class="size-10 mx-auto text-brand-800 block mb-4 xl:mb-8" />
11+
<slot />
12+
</div>
13+
</main>
14+
</div>
15+
16+
<Notice />
17+
</template>
18+
19+
<script setup>
20+
import { Sparkles as SparklesIcon } from 'lucide-vue-next';
21+
</script>

resources/js/Pages/EmailVerification/Show.vue

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
<Head :title="title" />
44

55
<div class="mx-auto max-w-2xl">
6-
<PageTitle class="mb-4 xl:mb-8" :text="title" />
6+
<PageTitle
7+
class="mb-4 xl:mb-8"
8+
:text="title"
9+
/>
710

811
<div class="bg-white rounded-2xl xl:p-10 p-6 border border-brand-200">
912
<div class="text-center">
@@ -21,6 +24,14 @@
2124
</div>
2225
</template>
2326

27+
<script>
28+
import Layout from '@js/Layouts/Guest.vue';
29+
30+
export default {
31+
layout: Layout,
32+
}
33+
</script>
34+
2435
<script setup>
2536
import { ref } from "vue";
2637
import { router } from "@inertiajs/vue3";

resources/js/Pages/Login/Show.vue

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,7 @@
5555
type="checkbox"
5656
v-model="loginForm.remember"
5757
/>
58-
<div
59-
class="peer">
58+
<div class="peer">
6059
</div>
6160
<span>
6261
Remember me
@@ -89,6 +88,14 @@
8988
</div>
9089
</template>
9190

91+
<script>
92+
import Layout from '@js/Layouts/Guest.vue';
93+
94+
export default {
95+
layout: Layout,
96+
}
97+
</script>
98+
9299
<script setup>
93100
import { ref } from "vue";
94101
import { useForm } from "@inertiajs/vue3";

resources/js/Pages/Register/Show.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -100,6 +100,14 @@
100100
</div>
101101
</template>
102102

103+
<script>
104+
import Layout from '@js/Layouts/Guest.vue';
105+
106+
export default {
107+
layout: Layout,
108+
}
109+
</script>
110+
103111
<script setup>
104112
import { ref } from "vue";
105113
import { useForm } from "@inertiajs/vue3";

resources/js/Pages/ResetPassword/Edit.vue

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,10 @@
33
<Head :title="title" />
44

55
<div class="mx-auto max-w-2xl">
6-
<PageTitle class="mb-4 xl:mb-8" :text="title" />
6+
<PageTitle
7+
class="mb-4 xl:mb-8"
8+
:text="title"
9+
/>
710

811
<div class="bg-white rounded-2xl xl:p-10 p-6 border border-brand-200">
912
<form @submit.prevent="submitForm">
@@ -54,6 +57,14 @@
5457
</div>
5558
</template>
5659

60+
<script>
61+
import Layout from '@js/Layouts/Guest.vue';
62+
63+
export default {
64+
layout: Layout,
65+
}
66+
</script>
67+
5768
<script setup>
5869
import { ref } from "vue";
5970
import { useForm } from "@inertiajs/vue3";

resources/js/Pages/ResetPassword/Show.vue

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,14 @@
5252
</div>
5353
</template>
5454

55+
<script>
56+
import Layout from '@js/Layouts/Guest.vue';
57+
58+
export default {
59+
layout: Layout,
60+
}
61+
</script>
62+
5563
<script setup>
5664
import { ref } from "vue";
5765
import { useForm } from "@inertiajs/vue3";

0 commit comments

Comments
 (0)