52 lines
1.2 KiB
Vue
52 lines
1.2 KiB
Vue
<template>
|
|
<div class="auth-landing">
|
|
<div class="auth-card">
|
|
<h1>Welcome</h1>
|
|
<p>Please sign in or create an account to continue.</p>
|
|
<div class="auth-actions">
|
|
<button class="btn btn-primary" @click="goToLogin">Log In</button>
|
|
<button class="btn btn-secondary" @click="goToSignup">Sign Up</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
|
|
<script setup lang="ts">
|
|
import { useRouter } from 'vue-router'
|
|
const router = useRouter()
|
|
function goToLogin() {
|
|
router.push({ name: 'Login' })
|
|
}
|
|
function goToSignup() {
|
|
router.push({ name: 'Signup' })
|
|
}
|
|
</script>
|
|
|
|
<style scoped>
|
|
.auth-landing {
|
|
min-height: 100vh;
|
|
display: flex;
|
|
align-items: center;
|
|
justify-content: center;
|
|
background: var(--header-bg, linear-gradient(135deg, var(--primary), var(--secondary)));
|
|
}
|
|
.auth-card {
|
|
background: var(--card-bg, #fff);
|
|
padding: 2.5rem 2rem;
|
|
border-radius: 14px;
|
|
box-shadow: var(--card-shadow, 0 8px 32px rgba(0, 0, 0, 0.13));
|
|
text-align: center;
|
|
max-width: 340px;
|
|
width: 100%;
|
|
}
|
|
.auth-card h1 {
|
|
color: var(--card-title, #333);
|
|
}
|
|
.auth-actions {
|
|
display: flex;
|
|
gap: 1.2rem;
|
|
justify-content: center;
|
|
margin-top: 2rem;
|
|
}
|
|
</style>
|