Skip to content

Guest layout #106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Mar 27, 2025
Merged
Show file tree
Hide file tree
Changes from all 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
9 changes: 6 additions & 3 deletions resources/js/Components/Header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@
<div class="mx-auto max-w-7xl">
<div class="flex h-16 items-center justify-between">
<div class="flex items-center">
<Link :href="route('home')">
<SparklesIcon class="size-7 shrink-0 text-brand-800" />
<Link
class="shrink-0 text-brand-800"
:href="route('home')"
>
<SparklesIcon class="size-7" />
</Link>
</div>

Expand Down Expand Up @@ -80,7 +83,7 @@

<script setup>
import { ref, onMounted } from "vue";
import { router } from '@inertiajs/vue3'
import { router } from '@inertiajs/vue3';

import {
Sparkles as SparklesIcon,
Expand Down
21 changes: 21 additions & 0 deletions resources/js/Layouts/Guest.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
<template>

<Head>
<title></title>
</Head>

<div class="min-h-full flex flex-col justify-center">
<main class="xl:py-16 py-8 px-4 sm:px-6 xl:px-8">
<div class="mx-auto max-w-7xl">
<SparklesIcon class="size-10 mx-auto text-brand-800 block mb-4 xl:mb-8" />
<slot />
</div>
</main>
</div>

<Notice />
</template>

<script setup>
import { Sparkles as SparklesIcon } from 'lucide-vue-next';
</script>
13 changes: 12 additions & 1 deletion resources/js/Pages/EmailVerification/Show.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
<Head :title="title" />

<div class="mx-auto max-w-2xl">
<PageTitle class="mb-4 xl:mb-8" :text="title" />
<PageTitle
class="mb-4 xl:mb-8"
:text="title"
/>

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

<script>
import Layout from '@js/Layouts/Guest.vue';

export default {
layout: Layout,
}
</script>

<script setup>
import { ref } from "vue";
import { router } from "@inertiajs/vue3";
Expand Down
11 changes: 9 additions & 2 deletions resources/js/Pages/Login/Show.vue
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@
type="checkbox"
v-model="loginForm.remember"
/>
<div
class="peer">
<div class="peer">
</div>
<span>
Remember me
Expand Down Expand Up @@ -89,6 +88,14 @@
</div>
</template>

<script>
import Layout from '@js/Layouts/Guest.vue';

export default {
layout: Layout,
}
</script>

<script setup>
import { ref } from "vue";
import { useForm } from "@inertiajs/vue3";
Expand Down
8 changes: 8 additions & 0 deletions resources/js/Pages/Register/Show.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,6 +100,14 @@
</div>
</template>

<script>
import Layout from '@js/Layouts/Guest.vue';

export default {
layout: Layout,
}
</script>

<script setup>
import { ref } from "vue";
import { useForm } from "@inertiajs/vue3";
Expand Down
13 changes: 12 additions & 1 deletion resources/js/Pages/ResetPassword/Edit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@
<Head :title="title" />

<div class="mx-auto max-w-2xl">
<PageTitle class="mb-4 xl:mb-8" :text="title" />
<PageTitle
class="mb-4 xl:mb-8"
:text="title"
/>

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

<script>
import Layout from '@js/Layouts/Guest.vue';

export default {
layout: Layout,
}
</script>

<script setup>
import { ref } from "vue";
import { useForm } from "@inertiajs/vue3";
Expand Down
8 changes: 8 additions & 0 deletions resources/js/Pages/ResetPassword/Show.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,14 @@
</div>
</template>

<script>
import Layout from '@js/Layouts/Guest.vue';

export default {
layout: Layout,
}
</script>

<script setup>
import { ref } from "vue";
import { useForm } from "@inertiajs/vue3";
Expand Down