Sprint 1: Auth, metro map canvas, services, and retro UI

Authentication:
- Laravel Fortify + Sanctum with Inertia views
- RBAC middleware (admin, project_owner, team_member, viewer)
- Retro terminal-styled login/register/forgot-password pages

Metro Map (core UI):
- D3.js zoomable SVG canvas with metro line rendering
- Station nodes with glow-on-hover, status coloring, tooltips
- Breadcrumb navigation for multi-level drill-down
- Node preview panel with zoom-in action
- C64-style CLI bar with blinking cursor at bottom

Backend services:
- ProjectService (CRUD, phase transitions, park/stop, audit logging)
- ThemaService (CRUD with audit)
- MapDataService (strategy map L1, project map L2)
- Thin controllers: MapController, ProjectController, ThemaController
- 32 routes total (auth + app + API)

Style foundation:
- Retro-futurism theme: VT323, Press Start 2P, IBM Plex Mono fonts
- Dark palette with cyan/orange/green/purple neon accents
- Comprehensive seed data (4 themes, 12 projects, commitments, deps)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
znetsixe
2026-04-01 13:52:35 +02:00
parent 7d14ca7b3b
commit d03fe15542
40 changed files with 5368 additions and 21 deletions

View File

@@ -0,0 +1,346 @@
<script setup>
import { useForm, Link } from '@inertiajs/vue3'
const props = defineProps({
status: String,
})
const form = useForm({
email: '',
})
const submit = () => {
form.post('/forgot-password')
}
</script>
<template>
<div class="auth-screen">
<div class="scanlines" />
<div class="terminal-frame">
<div class="terminal-header">
<span class="header-dot red" />
<span class="header-dot yellow" />
<span class="header-dot green" />
<span class="header-title">AUTH.SYS v2.0</span>
</div>
<div class="terminal-body">
<div class="prompt-line">
<span class="prompt-symbol">&gt;</span>
<span class="prompt-text">PASSWORD RECOVERY</span>
<span class="cursor" />
</div>
<h1 class="page-title">FORGOT<br>PASSWORD</h1>
<div class="divider">
<span></span>
</div>
<p class="info-text">
ENTER YOUR EMAIL ADDRESS AND A RECOVERY LINK WILL BE TRANSMITTED.
</p>
<div v-if="status" class="status-msg">
<span class="status-prefix">OK:</span> {{ status }}
</div>
<form @submit.prevent="submit" class="auth-form">
<div class="field-group">
<label class="field-label" for="email">
<span class="label-prefix">[01]</span> EMAIL_ADDRESS:
</label>
<input
id="email"
v-model="form.email"
type="email"
class="field-input"
:class="{ 'field-error': form.errors.email }"
autocomplete="username"
placeholder="user@domain.nl"
autofocus
/>
<p v-if="form.errors.email" class="error-msg">
<span class="error-prefix">ERR:</span> {{ form.errors.email }}
</p>
</div>
<button
type="submit"
class="submit-btn"
:disabled="form.processing"
>
<span v-if="form.processing">TRANSMITTING...</span>
<span v-else>&gt;&gt; SEND RECOVERY LINK</span>
</button>
</form>
<div class="divider">
<span></span>
</div>
<div class="links">
<Link href="/login" class="auth-link">
&lt;&lt; BACK TO LOGIN
</Link>
</div>
</div>
</div>
</div>
</template>
<style scoped>
.auth-screen {
width: 100vw;
height: 100vh;
background: #1a1a2e;
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
}
.scanlines {
position: absolute;
inset: 0;
background: repeating-linear-gradient(
0deg,
transparent,
transparent 2px,
rgba(0, 0, 0, 0.08) 2px,
rgba(0, 0, 0, 0.08) 4px
);
pointer-events: none;
z-index: 1;
}
.terminal-frame {
position: relative;
z-index: 2;
width: 480px;
background: #0d0d1a;
border: 2px solid #00d2ff;
box-shadow:
0 0 40px rgba(0, 210, 255, 0.25),
inset 0 0 40px rgba(0, 210, 255, 0.03);
}
.terminal-header {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 16px;
background: rgba(0, 210, 255, 0.08);
border-bottom: 1px solid rgba(0, 210, 255, 0.3);
}
.header-dot {
width: 10px;
height: 10px;
border-radius: 50%;
display: block;
}
.header-dot.red { background: #e94560; box-shadow: 0 0 6px #e94560; }
.header-dot.yellow { background: #f5a623; box-shadow: 0 0 6px #f5a623; }
.header-dot.green { background: #00ff88; box-shadow: 0 0 6px #00ff88; }
.header-title {
font-family: 'IBM Plex Mono', monospace;
font-size: 11px;
color: #8892b0;
margin-left: auto;
letter-spacing: 2px;
}
.terminal-body {
padding: 32px 40px;
}
.prompt-line {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 20px;
}
.prompt-symbol {
font-family: 'VT323', monospace;
font-size: 20px;
color: #00ff88;
}
.prompt-text {
font-family: 'IBM Plex Mono', monospace;
font-size: 12px;
color: #8892b0;
letter-spacing: 2px;
}
.cursor {
display: inline-block;
width: 10px;
height: 16px;
background: #00d2ff;
animation: blink 1s step-end infinite;
margin-left: 4px;
}
@keyframes blink {
50% { opacity: 0; }
}
.page-title {
font-family: 'Press Start 2P', monospace;
font-size: 18px;
color: #00d2ff;
text-shadow: 0 0 30px rgba(0, 210, 255, 0.5);
letter-spacing: 3px;
line-height: 1.6;
margin: 0 0 16px 0;
}
.divider {
font-family: 'VT323', monospace;
font-size: 16px;
color: rgba(0, 210, 255, 0.3);
margin: 16px 0;
overflow: hidden;
}
.info-text {
font-family: 'VT323', monospace;
font-size: 17px;
color: #8892b0;
line-height: 1.5;
margin: 0 0 20px 0;
letter-spacing: 0.5px;
}
.status-msg {
font-family: 'VT323', monospace;
font-size: 17px;
color: #00ff88;
background: rgba(0, 255, 136, 0.08);
border: 1px solid rgba(0, 255, 136, 0.3);
padding: 10px 14px;
margin-bottom: 20px;
}
.status-prefix {
font-family: 'IBM Plex Mono', monospace;
font-size: 11px;
font-weight: bold;
margin-right: 6px;
}
.auth-form {
display: flex;
flex-direction: column;
gap: 20px;
}
.field-group {
display: flex;
flex-direction: column;
gap: 6px;
}
.field-label {
font-family: 'VT323', monospace;
font-size: 18px;
color: #8892b0;
letter-spacing: 1px;
}
.label-prefix {
color: #00d2ff;
margin-right: 4px;
}
.field-input {
background: rgba(0, 210, 255, 0.04);
border: 1px solid rgba(0, 210, 255, 0.4);
color: #e8e8e8;
font-family: 'IBM Plex Mono', monospace;
font-size: 14px;
padding: 10px 14px;
outline: none;
transition: border-color 0.2s, box-shadow 0.2s;
width: 100%;
box-sizing: border-box;
}
.field-input::placeholder {
color: rgba(136, 146, 176, 0.4);
}
.field-input:focus {
border-color: #00d2ff;
box-shadow: 0 0 12px rgba(0, 210, 255, 0.2);
}
.field-input.field-error {
border-color: #e94560;
box-shadow: 0 0 8px rgba(233, 69, 96, 0.2);
}
.error-msg {
font-family: 'VT323', monospace;
font-size: 16px;
color: #e94560;
margin: 0;
}
.error-prefix {
font-family: 'IBM Plex Mono', monospace;
font-size: 11px;
font-weight: bold;
margin-right: 4px;
}
.submit-btn {
padding: 14px 24px;
background: rgba(0, 210, 255, 0.08);
border: 2px solid #00d2ff;
color: #00d2ff;
font-family: 'Press Start 2P', monospace;
font-size: 11px;
letter-spacing: 2px;
cursor: pointer;
transition: all 0.2s;
text-align: center;
width: 100%;
}
.submit-btn:hover:not(:disabled) {
background: rgba(0, 210, 255, 0.18);
box-shadow: 0 0 24px rgba(0, 210, 255, 0.35);
transform: translateY(-1px);
}
.submit-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.links {
text-align: center;
font-family: 'VT323', monospace;
font-size: 18px;
}
.auth-link {
color: #8892b0;
text-decoration: none;
letter-spacing: 1px;
transition: color 0.2s;
}
.auth-link:hover {
color: #00d2ff;
text-shadow: 0 0 8px rgba(0, 210, 255, 0.4);
}
</style>

View File

@@ -0,0 +1,377 @@
<script setup>
import { useForm, Link } from '@inertiajs/vue3'
const form = useForm({
email: '',
password: '',
remember: false,
})
const submit = () => {
form.post('/login', {
onFinish: () => form.reset('password'),
})
}
</script>
<template>
<div class="auth-screen">
<div class="scanlines" />
<div class="terminal-frame">
<div class="terminal-header">
<span class="header-dot red" />
<span class="header-dot yellow" />
<span class="header-dot green" />
<span class="header-title">AUTH.SYS v2.0</span>
</div>
<div class="terminal-body">
<div class="prompt-line">
<span class="prompt-symbol">&gt;</span>
<span class="prompt-text">SYSTEM LOGIN</span>
<span class="cursor" />
</div>
<h1 class="page-title">LOGIN</h1>
<div class="divider">
<span></span>
</div>
<form @submit.prevent="submit" class="auth-form">
<div class="field-group">
<label class="field-label" for="email">
<span class="label-prefix">[01]</span> EMAIL_ADDRESS:
</label>
<input
id="email"
v-model="form.email"
type="email"
class="field-input"
:class="{ 'field-error': form.errors.email }"
autocomplete="username"
placeholder="user@domain.nl"
autofocus
/>
<p v-if="form.errors.email" class="error-msg">
<span class="error-prefix">ERR:</span> {{ form.errors.email }}
</p>
</div>
<div class="field-group">
<label class="field-label" for="password">
<span class="label-prefix">[02]</span> PASSWORD:
</label>
<input
id="password"
v-model="form.password"
type="password"
class="field-input"
:class="{ 'field-error': form.errors.password }"
autocomplete="current-password"
placeholder="••••••••••••"
/>
<p v-if="form.errors.password" class="error-msg">
<span class="error-prefix">ERR:</span> {{ form.errors.password }}
</p>
</div>
<div class="field-group remember-group">
<label class="checkbox-label">
<input
v-model="form.remember"
type="checkbox"
class="checkbox-input"
/>
<span class="checkbox-text">REMEMBER SESSION</span>
</label>
</div>
<button
type="submit"
class="submit-btn"
:disabled="form.processing"
>
<span v-if="form.processing">AUTHENTICATING...</span>
<span v-else>&gt;&gt; AUTHENTICATE</span>
</button>
</form>
<div class="divider">
<span></span>
</div>
<div class="links">
<Link href="/forgot-password" class="auth-link">
FORGOT PASSWORD?
</Link>
<span class="link-separator"> // </span>
<Link href="/register" class="auth-link">
NEW USER? REGISTER
</Link>
</div>
</div>
</div>
</div>
</template>
<style scoped>
.auth-screen {
width: 100vw;
height: 100vh;
background: #1a1a2e;
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
}
.scanlines {
position: absolute;
inset: 0;
background: repeating-linear-gradient(
0deg,
transparent,
transparent 2px,
rgba(0, 0, 0, 0.08) 2px,
rgba(0, 0, 0, 0.08) 4px
);
pointer-events: none;
z-index: 1;
}
.terminal-frame {
position: relative;
z-index: 2;
width: 480px;
background: #0d0d1a;
border: 2px solid #00d2ff;
box-shadow:
0 0 40px rgba(0, 210, 255, 0.25),
inset 0 0 40px rgba(0, 210, 255, 0.03);
}
.terminal-header {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 16px;
background: rgba(0, 210, 255, 0.08);
border-bottom: 1px solid rgba(0, 210, 255, 0.3);
}
.header-dot {
width: 10px;
height: 10px;
border-radius: 50%;
display: block;
}
.header-dot.red { background: #e94560; box-shadow: 0 0 6px #e94560; }
.header-dot.yellow { background: #f5a623; box-shadow: 0 0 6px #f5a623; }
.header-dot.green { background: #00ff88; box-shadow: 0 0 6px #00ff88; }
.header-title {
font-family: 'IBM Plex Mono', monospace;
font-size: 11px;
color: #8892b0;
margin-left: auto;
letter-spacing: 2px;
}
.terminal-body {
padding: 32px 40px;
}
.prompt-line {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 20px;
}
.prompt-symbol {
font-family: 'VT323', monospace;
font-size: 20px;
color: #00ff88;
}
.prompt-text {
font-family: 'IBM Plex Mono', monospace;
font-size: 12px;
color: #8892b0;
letter-spacing: 2px;
}
.cursor {
display: inline-block;
width: 10px;
height: 16px;
background: #00d2ff;
animation: blink 1s step-end infinite;
margin-left: 4px;
}
@keyframes blink {
50% { opacity: 0; }
}
.page-title {
font-family: 'Press Start 2P', monospace;
font-size: 22px;
color: #00d2ff;
text-shadow: 0 0 30px rgba(0, 210, 255, 0.5);
letter-spacing: 4px;
margin: 0 0 16px 0;
}
.divider {
font-family: 'VT323', monospace;
font-size: 16px;
color: rgba(0, 210, 255, 0.3);
margin: 16px 0;
overflow: hidden;
}
.auth-form {
margin-top: 24px;
display: flex;
flex-direction: column;
gap: 20px;
}
.field-group {
display: flex;
flex-direction: column;
gap: 6px;
}
.field-label {
font-family: 'VT323', monospace;
font-size: 18px;
color: #8892b0;
letter-spacing: 1px;
}
.label-prefix {
color: #00d2ff;
margin-right: 4px;
}
.field-input {
background: rgba(0, 210, 255, 0.04);
border: 1px solid rgba(0, 210, 255, 0.4);
color: #e8e8e8;
font-family: 'IBM Plex Mono', monospace;
font-size: 14px;
padding: 10px 14px;
outline: none;
transition: border-color 0.2s, box-shadow 0.2s;
width: 100%;
box-sizing: border-box;
}
.field-input::placeholder {
color: rgba(136, 146, 176, 0.4);
}
.field-input:focus {
border-color: #00d2ff;
box-shadow: 0 0 12px rgba(0, 210, 255, 0.2);
}
.field-input.field-error {
border-color: #e94560;
box-shadow: 0 0 8px rgba(233, 69, 96, 0.2);
}
.error-msg {
font-family: 'VT323', monospace;
font-size: 16px;
color: #e94560;
margin: 0;
}
.error-prefix {
font-family: 'IBM Plex Mono', monospace;
font-size: 11px;
font-weight: bold;
margin-right: 4px;
}
.remember-group {
flex-direction: row;
align-items: center;
}
.checkbox-label {
display: flex;
align-items: center;
gap: 10px;
cursor: pointer;
}
.checkbox-input {
width: 14px;
height: 14px;
accent-color: #00d2ff;
cursor: pointer;
}
.checkbox-text {
font-family: 'VT323', monospace;
font-size: 18px;
color: #8892b0;
letter-spacing: 1px;
}
.submit-btn {
margin-top: 8px;
padding: 14px 24px;
background: rgba(0, 210, 255, 0.08);
border: 2px solid #00d2ff;
color: #00d2ff;
font-family: 'Press Start 2P', monospace;
font-size: 11px;
letter-spacing: 2px;
cursor: pointer;
transition: all 0.2s;
text-align: center;
width: 100%;
}
.submit-btn:hover:not(:disabled) {
background: rgba(0, 210, 255, 0.18);
box-shadow: 0 0 24px rgba(0, 210, 255, 0.35);
transform: translateY(-1px);
}
.submit-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.links {
text-align: center;
font-family: 'VT323', monospace;
font-size: 18px;
}
.auth-link {
color: #8892b0;
text-decoration: none;
letter-spacing: 1px;
transition: color 0.2s;
}
.auth-link:hover {
color: #00d2ff;
text-shadow: 0 0 8px rgba(0, 210, 255, 0.4);
}
.link-separator {
color: rgba(0, 210, 255, 0.3);
margin: 0 4px;
}
</style>

View File

@@ -0,0 +1,380 @@
<script setup>
import { useForm, Link } from '@inertiajs/vue3'
const form = useForm({
name: '',
email: '',
password: '',
password_confirmation: '',
})
const submit = () => {
form.post('/register', {
onFinish: () => form.reset('password', 'password_confirmation'),
})
}
</script>
<template>
<div class="auth-screen">
<div class="scanlines" />
<div class="terminal-frame">
<div class="terminal-header">
<span class="header-dot red" />
<span class="header-dot yellow" />
<span class="header-dot green" />
<span class="header-title">AUTH.SYS v2.0</span>
</div>
<div class="terminal-body">
<div class="prompt-line">
<span class="prompt-symbol">&gt;</span>
<span class="prompt-text">NEW USER REGISTRATION</span>
<span class="cursor" />
</div>
<h1 class="page-title">REGISTER</h1>
<div class="divider">
<span></span>
</div>
<form @submit.prevent="submit" class="auth-form">
<div class="field-group">
<label class="field-label" for="name">
<span class="label-prefix">[01]</span> DISPLAY_NAME:
</label>
<input
id="name"
v-model="form.name"
type="text"
class="field-input"
:class="{ 'field-error': form.errors.name }"
autocomplete="name"
placeholder="Voornaam Achternaam"
autofocus
/>
<p v-if="form.errors.name" class="error-msg">
<span class="error-prefix">ERR:</span> {{ form.errors.name }}
</p>
</div>
<div class="field-group">
<label class="field-label" for="email">
<span class="label-prefix">[02]</span> EMAIL_ADDRESS:
</label>
<input
id="email"
v-model="form.email"
type="email"
class="field-input"
:class="{ 'field-error': form.errors.email }"
autocomplete="username"
placeholder="user@domain.nl"
/>
<p v-if="form.errors.email" class="error-msg">
<span class="error-prefix">ERR:</span> {{ form.errors.email }}
</p>
</div>
<div class="field-group">
<label class="field-label" for="password">
<span class="label-prefix">[03]</span> PASSWORD:
</label>
<input
id="password"
v-model="form.password"
type="password"
class="field-input"
:class="{ 'field-error': form.errors.password }"
autocomplete="new-password"
placeholder="••••••••••••"
/>
<p v-if="form.errors.password" class="error-msg">
<span class="error-prefix">ERR:</span> {{ form.errors.password }}
</p>
</div>
<div class="field-group">
<label class="field-label" for="password_confirmation">
<span class="label-prefix">[04]</span> CONFIRM_PASSWORD:
</label>
<input
id="password_confirmation"
v-model="form.password_confirmation"
type="password"
class="field-input"
:class="{ 'field-error': form.errors.password_confirmation }"
autocomplete="new-password"
placeholder="••••••••••••"
/>
<p v-if="form.errors.password_confirmation" class="error-msg">
<span class="error-prefix">ERR:</span> {{ form.errors.password_confirmation }}
</p>
</div>
<button
type="submit"
class="submit-btn"
:disabled="form.processing"
>
<span v-if="form.processing">CREATING ACCOUNT...</span>
<span v-else>&gt;&gt; CREATE ACCOUNT</span>
</button>
</form>
<div class="divider">
<span></span>
</div>
<div class="links">
<span class="links-text">ALREADY REGISTERED?</span>
<span class="link-separator"> // </span>
<Link href="/login" class="auth-link">
LOGIN HERE
</Link>
</div>
</div>
</div>
</div>
</template>
<style scoped>
.auth-screen {
width: 100vw;
height: 100vh;
background: #1a1a2e;
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
}
.scanlines {
position: absolute;
inset: 0;
background: repeating-linear-gradient(
0deg,
transparent,
transparent 2px,
rgba(0, 0, 0, 0.08) 2px,
rgba(0, 0, 0, 0.08) 4px
);
pointer-events: none;
z-index: 1;
}
.terminal-frame {
position: relative;
z-index: 2;
width: 480px;
background: #0d0d1a;
border: 2px solid #00d2ff;
box-shadow:
0 0 40px rgba(0, 210, 255, 0.25),
inset 0 0 40px rgba(0, 210, 255, 0.03);
}
.terminal-header {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 16px;
background: rgba(0, 210, 255, 0.08);
border-bottom: 1px solid rgba(0, 210, 255, 0.3);
}
.header-dot {
width: 10px;
height: 10px;
border-radius: 50%;
display: block;
}
.header-dot.red { background: #e94560; box-shadow: 0 0 6px #e94560; }
.header-dot.yellow { background: #f5a623; box-shadow: 0 0 6px #f5a623; }
.header-dot.green { background: #00ff88; box-shadow: 0 0 6px #00ff88; }
.header-title {
font-family: 'IBM Plex Mono', monospace;
font-size: 11px;
color: #8892b0;
margin-left: auto;
letter-spacing: 2px;
}
.terminal-body {
padding: 28px 40px 32px;
}
.prompt-line {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 20px;
}
.prompt-symbol {
font-family: 'VT323', monospace;
font-size: 20px;
color: #00ff88;
}
.prompt-text {
font-family: 'IBM Plex Mono', monospace;
font-size: 12px;
color: #8892b0;
letter-spacing: 2px;
}
.cursor {
display: inline-block;
width: 10px;
height: 16px;
background: #00d2ff;
animation: blink 1s step-end infinite;
margin-left: 4px;
}
@keyframes blink {
50% { opacity: 0; }
}
.page-title {
font-family: 'Press Start 2P', monospace;
font-size: 20px;
color: #00d2ff;
text-shadow: 0 0 30px rgba(0, 210, 255, 0.5);
letter-spacing: 4px;
margin: 0 0 16px 0;
}
.divider {
font-family: 'VT323', monospace;
font-size: 16px;
color: rgba(0, 210, 255, 0.3);
margin: 16px 0;
overflow: hidden;
}
.auth-form {
margin-top: 24px;
display: flex;
flex-direction: column;
gap: 18px;
}
.field-group {
display: flex;
flex-direction: column;
gap: 6px;
}
.field-label {
font-family: 'VT323', monospace;
font-size: 18px;
color: #8892b0;
letter-spacing: 1px;
}
.label-prefix {
color: #00d2ff;
margin-right: 4px;
}
.field-input {
background: rgba(0, 210, 255, 0.04);
border: 1px solid rgba(0, 210, 255, 0.4);
color: #e8e8e8;
font-family: 'IBM Plex Mono', monospace;
font-size: 14px;
padding: 10px 14px;
outline: none;
transition: border-color 0.2s, box-shadow 0.2s;
width: 100%;
box-sizing: border-box;
}
.field-input::placeholder {
color: rgba(136, 146, 176, 0.4);
}
.field-input:focus {
border-color: #00d2ff;
box-shadow: 0 0 12px rgba(0, 210, 255, 0.2);
}
.field-input.field-error {
border-color: #e94560;
box-shadow: 0 0 8px rgba(233, 69, 96, 0.2);
}
.error-msg {
font-family: 'VT323', monospace;
font-size: 16px;
color: #e94560;
margin: 0;
}
.error-prefix {
font-family: 'IBM Plex Mono', monospace;
font-size: 11px;
font-weight: bold;
margin-right: 4px;
}
.submit-btn {
margin-top: 8px;
padding: 14px 24px;
background: rgba(0, 210, 255, 0.08);
border: 2px solid #00d2ff;
color: #00d2ff;
font-family: 'Press Start 2P', monospace;
font-size: 11px;
letter-spacing: 2px;
cursor: pointer;
transition: all 0.2s;
text-align: center;
width: 100%;
}
.submit-btn:hover:not(:disabled) {
background: rgba(0, 210, 255, 0.18);
box-shadow: 0 0 24px rgba(0, 210, 255, 0.35);
transform: translateY(-1px);
}
.submit-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.links {
text-align: center;
font-family: 'VT323', monospace;
font-size: 18px;
}
.links-text {
color: #8892b0;
letter-spacing: 1px;
}
.auth-link {
color: #8892b0;
text-decoration: none;
letter-spacing: 1px;
transition: color 0.2s;
}
.auth-link:hover {
color: #00d2ff;
text-shadow: 0 0 8px rgba(0, 210, 255, 0.4);
}
.link-separator {
color: rgba(0, 210, 255, 0.3);
margin: 0 4px;
}
</style>

View File

@@ -0,0 +1,368 @@
<script setup>
import { useForm, Link } from '@inertiajs/vue3'
const props = defineProps({
token: {
type: String,
required: true,
},
email: {
type: String,
required: true,
},
})
const form = useForm({
token: props.token,
email: props.email,
password: '',
password_confirmation: '',
})
const submit = () => {
form.post('/reset-password', {
onFinish: () => form.reset('password', 'password_confirmation'),
})
}
</script>
<template>
<div class="auth-screen">
<div class="scanlines" />
<div class="terminal-frame">
<div class="terminal-header">
<span class="header-dot red" />
<span class="header-dot yellow" />
<span class="header-dot green" />
<span class="header-title">AUTH.SYS v2.0</span>
</div>
<div class="terminal-body">
<div class="prompt-line">
<span class="prompt-symbol">&gt;</span>
<span class="prompt-text">RESET CREDENTIALS</span>
<span class="cursor" />
</div>
<h1 class="page-title">RESET<br>PASSWORD</h1>
<div class="divider">
<span></span>
</div>
<form @submit.prevent="submit" class="auth-form">
<div class="field-group">
<label class="field-label" for="email">
<span class="label-prefix">[01]</span> EMAIL_ADDRESS:
</label>
<input
id="email"
v-model="form.email"
type="email"
class="field-input"
:class="{ 'field-error': form.errors.email }"
autocomplete="username"
readonly
/>
<p v-if="form.errors.email" class="error-msg">
<span class="error-prefix">ERR:</span> {{ form.errors.email }}
</p>
</div>
<div class="field-group">
<label class="field-label" for="password">
<span class="label-prefix">[02]</span> NEW_PASSWORD:
</label>
<input
id="password"
v-model="form.password"
type="password"
class="field-input"
:class="{ 'field-error': form.errors.password }"
autocomplete="new-password"
placeholder="••••••••••••"
autofocus
/>
<p v-if="form.errors.password" class="error-msg">
<span class="error-prefix">ERR:</span> {{ form.errors.password }}
</p>
</div>
<div class="field-group">
<label class="field-label" for="password_confirmation">
<span class="label-prefix">[03]</span> CONFIRM_PASSWORD:
</label>
<input
id="password_confirmation"
v-model="form.password_confirmation"
type="password"
class="field-input"
:class="{ 'field-error': form.errors.password_confirmation }"
autocomplete="new-password"
placeholder="••••••••••••"
/>
<p v-if="form.errors.password_confirmation" class="error-msg">
<span class="error-prefix">ERR:</span> {{ form.errors.password_confirmation }}
</p>
</div>
<button
type="submit"
class="submit-btn"
:disabled="form.processing"
>
<span v-if="form.processing">UPDATING...</span>
<span v-else>&gt;&gt; RESET PASSWORD</span>
</button>
</form>
<div class="divider">
<span></span>
</div>
<div class="links">
<Link href="/login" class="auth-link">
&lt;&lt; BACK TO LOGIN
</Link>
</div>
</div>
</div>
</div>
</template>
<style scoped>
.auth-screen {
width: 100vw;
height: 100vh;
background: #1a1a2e;
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
}
.scanlines {
position: absolute;
inset: 0;
background: repeating-linear-gradient(
0deg,
transparent,
transparent 2px,
rgba(0, 0, 0, 0.08) 2px,
rgba(0, 0, 0, 0.08) 4px
);
pointer-events: none;
z-index: 1;
}
.terminal-frame {
position: relative;
z-index: 2;
width: 480px;
background: #0d0d1a;
border: 2px solid #00d2ff;
box-shadow:
0 0 40px rgba(0, 210, 255, 0.25),
inset 0 0 40px rgba(0, 210, 255, 0.03);
}
.terminal-header {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 16px;
background: rgba(0, 210, 255, 0.08);
border-bottom: 1px solid rgba(0, 210, 255, 0.3);
}
.header-dot {
width: 10px;
height: 10px;
border-radius: 50%;
display: block;
}
.header-dot.red { background: #e94560; box-shadow: 0 0 6px #e94560; }
.header-dot.yellow { background: #f5a623; box-shadow: 0 0 6px #f5a623; }
.header-dot.green { background: #00ff88; box-shadow: 0 0 6px #00ff88; }
.header-title {
font-family: 'IBM Plex Mono', monospace;
font-size: 11px;
color: #8892b0;
margin-left: auto;
letter-spacing: 2px;
}
.terminal-body {
padding: 32px 40px;
}
.prompt-line {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 20px;
}
.prompt-symbol {
font-family: 'VT323', monospace;
font-size: 20px;
color: #00ff88;
}
.prompt-text {
font-family: 'IBM Plex Mono', monospace;
font-size: 12px;
color: #8892b0;
letter-spacing: 2px;
}
.cursor {
display: inline-block;
width: 10px;
height: 16px;
background: #00d2ff;
animation: blink 1s step-end infinite;
margin-left: 4px;
}
@keyframes blink {
50% { opacity: 0; }
}
.page-title {
font-family: 'Press Start 2P', monospace;
font-size: 18px;
color: #00d2ff;
text-shadow: 0 0 30px rgba(0, 210, 255, 0.5);
letter-spacing: 3px;
line-height: 1.6;
margin: 0 0 16px 0;
}
.divider {
font-family: 'VT323', monospace;
font-size: 16px;
color: rgba(0, 210, 255, 0.3);
margin: 16px 0;
overflow: hidden;
}
.auth-form {
margin-top: 24px;
display: flex;
flex-direction: column;
gap: 20px;
}
.field-group {
display: flex;
flex-direction: column;
gap: 6px;
}
.field-label {
font-family: 'VT323', monospace;
font-size: 18px;
color: #8892b0;
letter-spacing: 1px;
}
.label-prefix {
color: #00d2ff;
margin-right: 4px;
}
.field-input {
background: rgba(0, 210, 255, 0.04);
border: 1px solid rgba(0, 210, 255, 0.4);
color: #e8e8e8;
font-family: 'IBM Plex Mono', monospace;
font-size: 14px;
padding: 10px 14px;
outline: none;
transition: border-color 0.2s, box-shadow 0.2s;
width: 100%;
box-sizing: border-box;
}
.field-input[readonly] {
color: #8892b0;
border-color: rgba(0, 210, 255, 0.2);
cursor: not-allowed;
}
.field-input::placeholder {
color: rgba(136, 146, 176, 0.4);
}
.field-input:focus:not([readonly]) {
border-color: #00d2ff;
box-shadow: 0 0 12px rgba(0, 210, 255, 0.2);
}
.field-input.field-error {
border-color: #e94560;
box-shadow: 0 0 8px rgba(233, 69, 96, 0.2);
}
.error-msg {
font-family: 'VT323', monospace;
font-size: 16px;
color: #e94560;
margin: 0;
}
.error-prefix {
font-family: 'IBM Plex Mono', monospace;
font-size: 11px;
font-weight: bold;
margin-right: 4px;
}
.submit-btn {
margin-top: 8px;
padding: 14px 24px;
background: rgba(0, 210, 255, 0.08);
border: 2px solid #00d2ff;
color: #00d2ff;
font-family: 'Press Start 2P', monospace;
font-size: 11px;
letter-spacing: 2px;
cursor: pointer;
transition: all 0.2s;
text-align: center;
width: 100%;
}
.submit-btn:hover:not(:disabled) {
background: rgba(0, 210, 255, 0.18);
box-shadow: 0 0 24px rgba(0, 210, 255, 0.35);
transform: translateY(-1px);
}
.submit-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.links {
text-align: center;
font-family: 'VT323', monospace;
font-size: 18px;
}
.auth-link {
color: #8892b0;
text-decoration: none;
letter-spacing: 1px;
transition: color 0.2s;
}
.auth-link:hover {
color: #00d2ff;
text-shadow: 0 0 8px rgba(0, 210, 255, 0.4);
}
</style>

View File

@@ -0,0 +1,344 @@
<script setup>
import { useForm, router } from '@inertiajs/vue3'
const props = defineProps({
status: String,
})
const form = useForm({})
const resend = () => {
form.post('/email/verification-notification')
}
const logout = () => {
router.post('/logout')
}
</script>
<template>
<div class="auth-screen">
<div class="scanlines" />
<div class="terminal-frame">
<div class="terminal-header">
<span class="header-dot red" />
<span class="header-dot yellow" />
<span class="header-dot green" />
<span class="header-title">AUTH.SYS v2.0</span>
</div>
<div class="terminal-body">
<div class="prompt-line">
<span class="prompt-symbol">&gt;</span>
<span class="prompt-text">EMAIL VERIFICATION</span>
<span class="cursor" />
</div>
<h1 class="page-title">VERIFY<br>EMAIL</h1>
<div class="divider">
<span></span>
</div>
<div class="info-block">
<div class="info-line">
<span class="info-icon">[!]</span>
<p class="info-text">
ACCOUNT ACTIVATION REQUIRED. A VERIFICATION LINK HAS BEEN TRANSMITTED TO YOUR EMAIL ADDRESS.
</p>
</div>
<p class="info-sub">
CHECK YOUR INBOX AND CLICK THE LINK TO ACTIVATE YOUR ACCOUNT.
</p>
</div>
<div v-if="status === 'verification-link-sent'" class="status-msg">
<span class="status-prefix">OK:</span> NEW VERIFICATION LINK TRANSMITTED.
</div>
<div class="actions">
<button
@click="resend"
class="submit-btn"
:disabled="form.processing"
>
<span v-if="form.processing">TRANSMITTING...</span>
<span v-else>&gt;&gt; RESEND VERIFICATION</span>
</button>
<button
@click="logout"
class="logout-btn"
>
LOGOUT
</button>
</div>
<div class="divider">
<span></span>
</div>
<div class="status-line">
<span class="status-label">SESSION STATUS:</span>
<span class="status-value blink-slow">AWAITING VERIFICATION</span>
</div>
</div>
</div>
</div>
</template>
<style scoped>
.auth-screen {
width: 100vw;
height: 100vh;
background: #1a1a2e;
display: flex;
align-items: center;
justify-content: center;
position: relative;
overflow: hidden;
}
.scanlines {
position: absolute;
inset: 0;
background: repeating-linear-gradient(
0deg,
transparent,
transparent 2px,
rgba(0, 0, 0, 0.08) 2px,
rgba(0, 0, 0, 0.08) 4px
);
pointer-events: none;
z-index: 1;
}
.terminal-frame {
position: relative;
z-index: 2;
width: 480px;
background: #0d0d1a;
border: 2px solid #00d2ff;
box-shadow:
0 0 40px rgba(0, 210, 255, 0.25),
inset 0 0 40px rgba(0, 210, 255, 0.03);
}
.terminal-header {
display: flex;
align-items: center;
gap: 8px;
padding: 10px 16px;
background: rgba(0, 210, 255, 0.08);
border-bottom: 1px solid rgba(0, 210, 255, 0.3);
}
.header-dot {
width: 10px;
height: 10px;
border-radius: 50%;
display: block;
}
.header-dot.red { background: #e94560; box-shadow: 0 0 6px #e94560; }
.header-dot.yellow { background: #f5a623; box-shadow: 0 0 6px #f5a623; }
.header-dot.green { background: #00ff88; box-shadow: 0 0 6px #00ff88; }
.header-title {
font-family: 'IBM Plex Mono', monospace;
font-size: 11px;
color: #8892b0;
margin-left: auto;
letter-spacing: 2px;
}
.terminal-body {
padding: 32px 40px;
}
.prompt-line {
display: flex;
align-items: center;
gap: 8px;
margin-bottom: 20px;
}
.prompt-symbol {
font-family: 'VT323', monospace;
font-size: 20px;
color: #00ff88;
}
.prompt-text {
font-family: 'IBM Plex Mono', monospace;
font-size: 12px;
color: #8892b0;
letter-spacing: 2px;
}
.cursor {
display: inline-block;
width: 10px;
height: 16px;
background: #00d2ff;
animation: blink 1s step-end infinite;
margin-left: 4px;
}
@keyframes blink {
50% { opacity: 0; }
}
.page-title {
font-family: 'Press Start 2P', monospace;
font-size: 18px;
color: #00d2ff;
text-shadow: 0 0 30px rgba(0, 210, 255, 0.5);
letter-spacing: 3px;
line-height: 1.6;
margin: 0 0 16px 0;
}
.divider {
font-family: 'VT323', monospace;
font-size: 16px;
color: rgba(0, 210, 255, 0.3);
margin: 16px 0;
overflow: hidden;
}
.info-block {
margin: 20px 0;
display: flex;
flex-direction: column;
gap: 10px;
}
.info-line {
display: flex;
gap: 10px;
align-items: flex-start;
}
.info-icon {
font-family: 'IBM Plex Mono', monospace;
font-size: 13px;
color: #f5a623;
flex-shrink: 0;
padding-top: 2px;
}
.info-text {
font-family: 'VT323', monospace;
font-size: 18px;
color: #e8e8e8;
line-height: 1.4;
margin: 0;
letter-spacing: 0.5px;
}
.info-sub {
font-family: 'VT323', monospace;
font-size: 16px;
color: #8892b0;
margin: 0;
padding-left: 28px;
letter-spacing: 0.5px;
}
.status-msg {
font-family: 'VT323', monospace;
font-size: 17px;
color: #00ff88;
background: rgba(0, 255, 136, 0.08);
border: 1px solid rgba(0, 255, 136, 0.3);
padding: 10px 14px;
margin-bottom: 16px;
}
.status-prefix {
font-family: 'IBM Plex Mono', monospace;
font-size: 11px;
font-weight: bold;
margin-right: 6px;
}
.actions {
display: flex;
flex-direction: column;
gap: 12px;
margin-top: 24px;
}
.submit-btn {
padding: 14px 24px;
background: rgba(0, 210, 255, 0.08);
border: 2px solid #00d2ff;
color: #00d2ff;
font-family: 'Press Start 2P', monospace;
font-size: 11px;
letter-spacing: 2px;
cursor: pointer;
transition: all 0.2s;
text-align: center;
width: 100%;
}
.submit-btn:hover:not(:disabled) {
background: rgba(0, 210, 255, 0.18);
box-shadow: 0 0 24px rgba(0, 210, 255, 0.35);
transform: translateY(-1px);
}
.submit-btn:disabled {
opacity: 0.5;
cursor: not-allowed;
}
.logout-btn {
padding: 10px 24px;
background: transparent;
border: 1px solid rgba(233, 69, 96, 0.4);
color: #8892b0;
font-family: 'VT323', monospace;
font-size: 18px;
letter-spacing: 2px;
cursor: pointer;
transition: all 0.2s;
text-align: center;
width: 100%;
}
.logout-btn:hover {
border-color: #e94560;
color: #e94560;
background: rgba(233, 69, 96, 0.06);
}
.status-line {
display: flex;
gap: 12px;
align-items: center;
font-family: 'IBM Plex Mono', monospace;
font-size: 11px;
}
.status-label {
color: #8892b0;
letter-spacing: 1px;
}
.status-value {
color: #f5a623;
letter-spacing: 1px;
}
.blink-slow {
animation: blink-slow 2s step-end infinite;
}
@keyframes blink-slow {
0%, 100% { opacity: 1; }
50% { opacity: 0.3; }
}
</style>