trypost/resources/js/layouts/OnboardingLayout.vue
Paulo Castellano 6964cc8e6e fix: update frontend route/action imports for new subdomain structure
Update all Vue components and TypeScript files to import from the new
Wayfinder-generated paths under @/routes/app/ and @/actions/App/Http/Controllers/App/.
2026-03-29 19:43:15 -03:00

45 lines
1.7 KiB
Vue

<script setup lang="ts">
import { Link } from '@inertiajs/vue3';
import { home } from '@/routes/app';
defineProps<{
title?: string;
description?: string;
step: number;
totalSteps?: number;
wide?: boolean;
}>();
</script>
<template>
<div class="flex min-h-svh flex-col items-center justify-center gap-6 bg-background p-6 md:p-10">
<div class="w-full" :class="wide ? 'max-w-4xl' : 'max-w-xl'">
<div class="flex flex-col gap-8">
<div class="flex flex-col items-center gap-4">
<Link :href="home()" class="flex flex-col items-center gap-2 font-medium">
<img src="/images/trypost/logo-light.png" alt="TryPost" class="dark:hidden h-8 w-auto" />
<img src="/images/trypost/logo-dark.png" alt="TryPost" class="hidden dark:block h-8 w-auto" />
</Link>
<div class="flex items-center gap-2">
<template v-for="i in (totalSteps || 2)" :key="i">
<div
class="h-2 w-8 rounded-full transition-colors"
:class="i <= step ? 'bg-primary' : 'bg-muted'"
/>
</template>
</div>
<div class="space-y-2 text-center">
<h1 class="text-2xl font-bold">{{ title }}</h1>
<p class="text-muted-foreground">
{{ description }}
</p>
</div>
</div>
<slot />
</div>
</div>
</div>
</template>