Skip to content

layout fix #300

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
May 27, 2025
Merged
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
88 changes: 43 additions & 45 deletions resources/js/layouts/GuestAuthLayout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,53 +3,51 @@ import ApplicationLogo from '@/components/ApplicationLogo.vue';
</script>

<template>
<Container>
<div class="min-h-screen flex flex-col justify-center items-center pt-6 sm:pt-0">
<div>
<InertiaLink href="/">
<ApplicationLogo class="w-12 h-12 fill-current text-surface-900 dark:text-surface-0" />
</InertiaLink>
</div>
<div
v-if="$slots.message"
class="w-full sm:max-w-lg mt-6 px-4 sm:px-0"
<Container class="min-h-screen flex flex-col justify-center items-center">
<div>
<InertiaLink href="/">
<ApplicationLogo class="w-12 h-12 fill-current text-surface-900 dark:text-surface-0" />
</InertiaLink>
</div>
<div
v-if="$slots.message"
class="w-full sm:max-w-lg mt-6 px-4 sm:px-0"
>
<slot name="message" />
</div>
<div class="w-full sm:max-w-lg mt-6">
<Card
pt:caption:class="space-y-2"
pt:body:class="p-6 sm:p-8 space-y-6"
>
<slot name="message" />
</div>
<div class="w-full sm:max-w-lg mt-6">
<Card
pt:caption:class="space-y-2"
pt:body:class="p-6 sm:p-8 space-y-6"
<template
v-if="$slots.header"
#header
>
<slot name="header" />
</template>
<template
v-if="$slots.title"
#title
>
<slot name="title" />
</template>
<template
v-if="$slots.subtitle"
#subtitle
>
<slot name="subtitle" />
</template>
<template #content>
<slot />
</template>
<template
v-if="$slots.footer"
#footer
>
<template
v-if="$slots.header"
#header
>
<slot name="header" />
</template>
<template
v-if="$slots.title"
#title
>
<slot name="title" />
</template>
<template
v-if="$slots.subtitle"
#subtitle
>
<slot name="subtitle" />
</template>
<template #content>
<slot />
</template>
<template
v-if="$slots.footer"
#footer
>
<slot name="footer" />
</template>
</Card>
</div>
<slot name="footer" />
</template>
</Card>
</div>
</Container>
</template>