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

@@ -1 +1,29 @@
@import "tailwindcss";
@import "@fontsource/vt323";
@import "@fontsource/press-start-2p";
@import "@fontsource/ibm-plex-mono";
@theme {
--color-bg-deep: #1a1a2e;
--color-bg-surface: #16213e;
--color-primary: #0f3460;
--color-accent-cyan: #00d2ff;
--color-accent-orange: #e94560;
--color-accent-green: #00ff88;
--color-accent-purple: #7b68ee;
--color-text-primary: #e8e8e8;
--color-text-secondary: #8892b0;
--font-mono: 'IBM Plex Mono', monospace;
--font-retro: 'VT323', monospace;
--font-pixel: 'Press Start 2P', monospace;
}
body {
background-color: var(--color-bg-deep);
color: var(--color-text-primary);
font-family: var(--font-mono);
margin: 0;
overflow: hidden;
height: 100vh;
}

View File

@@ -0,0 +1,156 @@
<script setup>
import { ref, nextTick } from 'vue'
const emit = defineEmits(['command'])
const input = ref('')
const inputRef = ref(null)
const history = ref([])
const showHistory = ref(false)
const handleSubmit = () => {
if (!input.value.trim()) return
const command = input.value.trim()
history.value.push({ type: 'input', text: command })
history.value.push({ type: 'response', text: 'Processing...' })
showHistory.value = true
emit('command', command)
input.value = ''
}
const focusInput = () => {
inputRef.value?.focus()
}
</script>
<template>
<div class="cli-container" @click="focusInput">
<!-- History panel -->
<Transition name="slide-up">
<div v-if="showHistory && history.length > 0" class="cli-history">
<div
v-for="(entry, i) in history"
:key="i"
class="history-entry"
:class="entry.type"
>
<span v-if="entry.type === 'input'" class="prompt-char">&gt; </span>
<span v-if="entry.type === 'response'" class="ai-label">[AI] </span>
{{ entry.text }}
</div>
</div>
</Transition>
<!-- Input bar -->
<div class="cli-bar">
<span class="prompt">&gt;</span>
<input
ref="inputRef"
v-model="input"
class="cli-input"
placeholder="ask me anything..."
spellcheck="false"
autocomplete="off"
@keydown.enter="handleSubmit"
/>
<span class="cursor-blink"></span>
</div>
</div>
</template>
<style scoped>
.cli-container {
position: fixed;
bottom: 0;
left: 0;
right: 0;
z-index: 100;
}
.cli-history {
background: rgba(22, 33, 62, 0.95);
border-top: 1px solid rgba(0, 210, 255, 0.2);
max-height: 200px;
overflow-y: auto;
padding: 12px 20px;
backdrop-filter: blur(10px);
}
.history-entry {
font-family: 'VT323', monospace;
font-size: 16px;
line-height: 1.6;
color: #8892b0;
}
.history-entry.input {
color: #e8e8e8;
}
.history-entry.response {
color: #00ff88;
}
.prompt-char {
color: #00d2ff;
}
.ai-label {
color: #7b68ee;
}
.cli-bar {
display: flex;
align-items: center;
background: #0a0a1a;
border-top: 2px solid #00d2ff;
padding: 12px 20px;
box-shadow: 0 -4px 30px rgba(0, 210, 255, 0.15);
}
.prompt {
font-family: 'Press Start 2P', monospace;
font-size: 12px;
color: #00d2ff;
margin-right: 12px;
text-shadow: 0 0 10px rgba(0, 210, 255, 0.5);
}
.cli-input {
flex: 1;
background: transparent;
border: none;
outline: none;
font-family: 'VT323', monospace;
font-size: 18px;
color: #e8e8e8;
caret-color: transparent;
}
.cli-input::placeholder {
color: #8892b0;
opacity: 0.5;
}
.cursor-blink {
font-family: 'VT323', monospace;
font-size: 18px;
color: #00d2ff;
animation: blink 1s step-end infinite;
}
@keyframes blink {
0%, 100% { opacity: 1; }
50% { opacity: 0; }
}
.slide-up-enter-active, .slide-up-leave-active {
transition: all 0.25s ease;
}
.slide-up-enter-from, .slide-up-leave-to {
opacity: 0;
transform: translateY(10px);
}
</style>

View File

@@ -0,0 +1,51 @@
<script setup>
defineProps({
path: { type: Array, default: () => [] },
})
const emit = defineEmits(['navigate'])
</script>
<template>
<div class="breadcrumb">
<span
v-for="(item, index) in path"
:key="index"
class="breadcrumb-item"
:class="{ active: index === path.length - 1 }"
@click="index < path.length - 1 && emit('navigate', item, index)"
>
<span v-if="index > 0" class="separator"> &gt; </span>
<span :class="{ 'cursor-pointer hover:text-[#00d2ff]': index < path.length - 1 }">
{{ item.label }}
</span>
</span>
</div>
</template>
<style scoped>
.breadcrumb {
position: fixed;
top: 12px;
left: 16px;
z-index: 50;
font-family: 'VT323', monospace;
font-size: 16px;
color: #8892b0;
background: rgba(26, 26, 46, 0.85);
padding: 6px 14px;
border-radius: 4px;
border: 1px solid rgba(0, 210, 255, 0.15);
backdrop-filter: blur(8px);
}
.breadcrumb-item.active {
color: #00d2ff;
}
.separator {
color: #8892b0;
opacity: 0.5;
margin: 0 2px;
}
</style>

View File

@@ -0,0 +1,354 @@
<script setup>
import { ref, onMounted, onUnmounted, watch, computed } from 'vue'
import * as d3 from 'd3'
const props = defineProps({
nodes: { type: Array, default: () => [] },
lines: { type: Array, default: () => [] },
connections: { type: Array, default: () => [] },
currentLevel: { type: Number, default: 1 },
})
const emit = defineEmits(['node-click', 'node-hover', 'node-leave', 'zoom-change'])
const svgRef = ref(null)
const containerRef = ref(null)
const transform = ref(d3.zoomIdentity)
const hoveredNode = ref(null)
// Metro line colors
const lineColors = [
'#00d2ff', '#e94560', '#00ff88', '#7b68ee',
'#ff6b6b', '#ffd93d', '#6bcb77', '#4d96ff',
'#ff8fab', '#a8dadc', '#e07a5f', '#81b29a',
]
const getLineColor = (index) => lineColors[index % lineColors.length]
let svg, g, zoom
const initCanvas = () => {
if (!svgRef.value) return
const width = containerRef.value.clientWidth
const height = containerRef.value.clientHeight
svg = d3.select(svgRef.value)
.attr('width', width)
.attr('height', height)
// Clear previous content
svg.selectAll('*').remove()
// Add defs for glow filter
const defs = svg.append('defs')
const glowFilter = defs.append('filter')
.attr('id', 'glow')
.attr('x', '-50%')
.attr('y', '-50%')
.attr('width', '200%')
.attr('height', '200%')
glowFilter.append('feGaussianBlur')
.attr('stdDeviation', '4')
.attr('result', 'coloredBlur')
const feMerge = glowFilter.append('feMerge')
feMerge.append('feMergeNode').attr('in', 'coloredBlur')
feMerge.append('feMergeNode').attr('in', 'SourceGraphic')
// Scanline pattern
const scanlinePattern = defs.append('pattern')
.attr('id', 'scanlines')
.attr('patternUnits', 'userSpaceOnUse')
.attr('width', 4)
.attr('height', 4)
scanlinePattern.append('line')
.attr('x1', 0).attr('y1', 0)
.attr('x2', 4).attr('y2', 0)
.attr('stroke', 'rgba(0,0,0,0.08)')
.attr('stroke-width', 1)
// Main group for zoom/pan
g = svg.append('g')
// Setup zoom
zoom = d3.zoom()
.scaleExtent([0.3, 5])
.on('zoom', (event) => {
g.attr('transform', event.transform)
transform.value = event.transform
emit('zoom-change', {
scale: event.transform.k,
x: event.transform.x,
y: event.transform.y,
})
})
svg.call(zoom)
// Center the view
const initialTransform = d3.zoomIdentity
.translate(width / 2, height / 2)
.scale(1)
svg.call(zoom.transform, initialTransform)
renderMap()
}
const renderMap = () => {
if (!g) return
g.selectAll('*').remove()
// Draw metro lines
props.lines.forEach((line, lineIndex) => {
const color = line.color || getLineColor(lineIndex)
const lineNodes = props.nodes.filter(n => n.lineId === line.id)
if (lineNodes.length < 2) return
// Sort nodes by order
lineNodes.sort((a, b) => a.order - b.order)
// Draw the line path
const lineGenerator = d3.line()
.x(d => d.x)
.y(d => d.y)
.curve(d3.curveMonotoneX)
g.append('path')
.datum(lineNodes)
.attr('d', lineGenerator)
.attr('fill', 'none')
.attr('stroke', color)
.attr('stroke-width', 4)
.attr('stroke-linecap', 'round')
.attr('opacity', 0.7)
// Line label
if (lineNodes.length > 0) {
g.append('text')
.attr('x', lineNodes[0].x - 10)
.attr('y', lineNodes[0].y - 25)
.attr('fill', color)
.attr('font-family', "'VT323', monospace")
.attr('font-size', '16px')
.attr('opacity', 0.8)
.text(line.name)
}
})
// Draw dependency connections
props.connections.forEach(conn => {
const source = props.nodes.find(n => n.id === conn.from)
const target = props.nodes.find(n => n.id === conn.to)
if (!source || !target) return
g.append('line')
.attr('x1', source.x)
.attr('y1', source.y)
.attr('x2', target.x)
.attr('y2', target.y)
.attr('stroke', '#8892b0')
.attr('stroke-width', 1.5)
.attr('stroke-dasharray', '6,4')
.attr('opacity', 0.4)
})
// Draw station nodes
const nodeGroups = g.selectAll('.station')
.data(props.nodes)
.enter()
.append('g')
.attr('class', 'station')
.attr('transform', d => `translate(${d.x}, ${d.y})`)
.attr('cursor', 'pointer')
.on('click', (event, d) => {
event.stopPropagation()
emit('node-click', d)
})
.on('mouseenter', (event, d) => {
hoveredNode.value = d
d3.select(event.currentTarget).select('.station-dot')
.transition()
.duration(200)
.attr('r', 12)
.attr('filter', 'url(#glow)')
emit('node-hover', d)
})
.on('mouseleave', (event, d) => {
hoveredNode.value = null
d3.select(event.currentTarget).select('.station-dot')
.transition()
.duration(200)
.attr('r', 8)
.attr('filter', null)
emit('node-leave', d)
})
// Station outer ring
nodeGroups.append('circle')
.attr('r', 11)
.attr('fill', 'none')
.attr('stroke', d => {
const line = props.lines.find(l => l.id === d.lineId)
return line?.color || getLineColor(props.lines.indexOf(line))
})
.attr('stroke-width', 2)
// Station inner dot
nodeGroups.append('circle')
.attr('class', 'station-dot')
.attr('r', 8)
.attr('fill', d => {
if (d.status === 'afgerond' || d.status === 'completed') return '#00ff88'
if (d.status === 'actief' || d.status === 'active') return '#00d2ff'
if (d.status === 'geparkeerd') return '#ffd93d'
if (d.status === 'gestopt') return '#e94560'
return '#16213e'
})
.attr('stroke', d => {
const line = props.lines.find(l => l.id === d.lineId)
return line?.color || getLineColor(props.lines.indexOf(line))
})
.attr('stroke-width', 2)
// Station labels
nodeGroups.append('text')
.attr('x', 18)
.attr('y', 5)
.attr('fill', '#e8e8e8')
.attr('font-family', "'VT323', monospace")
.attr('font-size', '14px')
.text(d => d.name)
// Status badge
nodeGroups.filter(d => d.badge)
.append('text')
.attr('x', 18)
.attr('y', 20)
.attr('fill', '#8892b0')
.attr('font-family', "'IBM Plex Mono', monospace")
.attr('font-size', '10px')
.text(d => d.badge)
}
const handleResize = () => {
if (svgRef.value && containerRef.value) {
svg.attr('width', containerRef.value.clientWidth)
.attr('height', containerRef.value.clientHeight)
}
}
watch(() => [props.nodes, props.lines, props.connections], () => {
renderMap()
}, { deep: true })
onMounted(() => {
initCanvas()
window.addEventListener('resize', handleResize)
})
onUnmounted(() => {
window.removeEventListener('resize', handleResize)
})
// Expose zoom methods
const zoomTo = (x, y, scale) => {
if (!svg || !zoom) return
const transform = d3.zoomIdentity.translate(x, y).scale(scale)
svg.transition().duration(500).call(zoom.transform, transform)
}
defineExpose({ zoomTo })
</script>
<template>
<div ref="containerRef" class="metro-canvas-container">
<svg ref="svgRef" class="metro-canvas"></svg>
<!-- Hover tooltip -->
<Transition name="fade">
<div
v-if="hoveredNode"
class="node-tooltip"
:style="{
left: `${hoveredNode.x + transform.x + 30}px`,
top: `${hoveredNode.y + transform.y - 20}px`,
}"
>
<div class="tooltip-title">{{ hoveredNode.name }}</div>
<div v-if="hoveredNode.description" class="tooltip-desc">{{ hoveredNode.description }}</div>
<div v-if="hoveredNode.status" class="tooltip-status">{{ hoveredNode.status }}</div>
<div class="tooltip-hint">Click to zoom in</div>
</div>
</Transition>
</div>
</template>
<style scoped>
.metro-canvas-container {
position: relative;
width: 100%;
height: 100%;
overflow: hidden;
background-color: #1a1a2e;
}
.metro-canvas {
display: block;
width: 100%;
height: 100%;
}
.node-tooltip {
position: absolute;
pointer-events: none;
background: #16213e;
border: 1px solid #00d2ff;
border-radius: 4px;
padding: 8px 12px;
z-index: 100;
box-shadow: 0 0 15px rgba(0, 210, 255, 0.2);
max-width: 250px;
}
.tooltip-title {
font-family: 'VT323', monospace;
font-size: 16px;
color: #00d2ff;
}
.tooltip-desc {
font-family: 'IBM Plex Mono', monospace;
font-size: 11px;
color: #8892b0;
margin-top: 4px;
}
.tooltip-status {
font-family: 'VT323', monospace;
font-size: 13px;
color: #00ff88;
margin-top: 4px;
}
.tooltip-hint {
font-family: 'VT323', monospace;
font-size: 11px;
color: #8892b0;
margin-top: 6px;
opacity: 0.6;
}
.fade-enter-active, .fade-leave-active {
transition: opacity 0.15s;
}
.fade-enter-from, .fade-leave-to {
opacity: 0;
}
</style>

View File

@@ -0,0 +1,147 @@
<script setup>
defineProps({
node: { type: Object, default: null },
visible: { type: Boolean, default: false },
})
const emit = defineEmits(['close', 'zoom-in'])
</script>
<template>
<Transition name="slide">
<div v-if="visible && node" class="node-preview">
<div class="preview-header">
<h2 class="preview-title">{{ node.name }}</h2>
<button @click="emit('close')" class="close-btn">[X]</button>
</div>
<div class="preview-meta">
<span v-if="node.status" class="status-badge" :class="node.status">
{{ node.status }}
</span>
<span v-if="node.owner" class="owner">{{ node.owner }}</span>
</div>
<p v-if="node.description" class="preview-desc">{{ node.description }}</p>
<div v-if="node.children" class="preview-children">
<div class="children-label">Contains {{ node.children }} items</div>
</div>
<button @click="emit('zoom-in', node)" class="zoom-btn">
ZOOM IN &gt;&gt;
</button>
</div>
</Transition>
</template>
<style scoped>
.node-preview {
position: fixed;
right: 16px;
top: 60px;
width: 320px;
background: #16213e;
border: 1px solid rgba(0, 210, 255, 0.3);
border-radius: 6px;
padding: 20px;
z-index: 60;
box-shadow: 0 0 30px rgba(0, 210, 255, 0.1);
}
.preview-header {
display: flex;
justify-content: space-between;
align-items: flex-start;
}
.preview-title {
font-family: 'VT323', monospace;
font-size: 22px;
color: #00d2ff;
margin: 0;
}
.close-btn {
font-family: 'VT323', monospace;
color: #8892b0;
background: none;
border: none;
cursor: pointer;
font-size: 16px;
}
.close-btn:hover {
color: #e94560;
}
.preview-meta {
display: flex;
gap: 8px;
margin-top: 8px;
font-family: 'IBM Plex Mono', monospace;
font-size: 12px;
}
.status-badge {
padding: 2px 8px;
border-radius: 3px;
font-size: 11px;
text-transform: uppercase;
letter-spacing: 0.5px;
}
.status-badge.actief, .status-badge.active { background: rgba(0, 210, 255, 0.15); color: #00d2ff; }
.status-badge.afgerond, .status-badge.completed { background: rgba(0, 255, 136, 0.15); color: #00ff88; }
.status-badge.geparkeerd { background: rgba(255, 217, 61, 0.15); color: #ffd93d; }
.status-badge.gestopt { background: rgba(233, 69, 96, 0.15); color: #e94560; }
.owner {
color: #8892b0;
}
.preview-desc {
font-family: 'IBM Plex Mono', monospace;
font-size: 13px;
color: #8892b0;
margin-top: 12px;
line-height: 1.5;
}
.preview-children {
margin-top: 12px;
}
.children-label {
font-family: 'VT323', monospace;
font-size: 14px;
color: #7b68ee;
}
.zoom-btn {
margin-top: 16px;
width: 100%;
padding: 8px;
background: rgba(0, 210, 255, 0.1);
border: 1px solid #00d2ff;
color: #00d2ff;
font-family: 'VT323', monospace;
font-size: 16px;
cursor: pointer;
border-radius: 4px;
transition: all 0.2s;
}
.zoom-btn:hover {
background: rgba(0, 210, 255, 0.2);
box-shadow: 0 0 15px rgba(0, 210, 255, 0.3);
}
.slide-enter-active, .slide-leave-active {
transition: all 0.25s ease;
}
.slide-enter-from, .slide-leave-to {
opacity: 0;
transform: translateX(20px);
}
</style>

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>

View File

@@ -1,10 +1,90 @@
<script setup>
import AppLayout from '@/Layouts/AppLayout.vue'
import { ref } from 'vue'
import { router, usePage } from '@inertiajs/vue3'
import CliBar from '@/Components/Cli/CliBar.vue'
const page = usePage()
const user = page.props.auth?.user
// Redirect to map (the map IS the dashboard)
const goToMap = () => router.visit('/map')
</script>
<template>
<AppLayout>
<h1 class="text-2xl font-bold text-gray-900">Dashboard</h1>
<p class="mt-2 text-gray-600">Welkom bij het Innovatieplatform van het R&amp;D Lab.</p>
</AppLayout>
<div class="dashboard">
<div class="welcome">
<h1 class="title">INNOVATIEPLATFORM</h1>
<p class="subtitle">R&amp;D Lab Waterschap Brabantse Delta</p>
<div class="user-greeting" v-if="user">
<span class="greeting-text">Welkom, {{ user.name }}</span>
</div>
<button @click="goToMap" class="enter-btn">
OPEN METRO MAP &gt;&gt;
</button>
</div>
<CliBar />
</div>
</template>
<style scoped>
.dashboard {
width: 100vw;
height: 100vh;
display: flex;
align-items: center;
justify-content: center;
background: #1a1a2e;
position: relative;
}
.welcome {
text-align: center;
}
.title {
font-family: 'Press Start 2P', monospace;
font-size: 24px;
color: #00d2ff;
text-shadow: 0 0 30px rgba(0, 210, 255, 0.4);
letter-spacing: 4px;
}
.subtitle {
font-family: 'VT323', monospace;
font-size: 20px;
color: #8892b0;
margin-top: 12px;
}
.user-greeting {
margin-top: 32px;
}
.greeting-text {
font-family: 'VT323', monospace;
font-size: 18px;
color: #00ff88;
}
.enter-btn {
margin-top: 40px;
padding: 14px 32px;
background: rgba(0, 210, 255, 0.1);
border: 2px solid #00d2ff;
color: #00d2ff;
font-family: 'Press Start 2P', monospace;
font-size: 12px;
cursor: pointer;
letter-spacing: 2px;
transition: all 0.3s;
}
.enter-btn:hover {
background: rgba(0, 210, 255, 0.2);
box-shadow: 0 0 30px rgba(0, 210, 255, 0.3);
transform: translateY(-2px);
}
</style>

View File

@@ -0,0 +1,127 @@
<script setup>
import { ref, computed } from 'vue'
import { usePage } from '@inertiajs/vue3'
import MetroCanvas from '@/Components/MetroMap/MetroCanvas.vue'
import Breadcrumb from '@/Components/MetroMap/Breadcrumb.vue'
import NodePreview from '@/Components/MetroMap/NodePreview.vue'
import CliBar from '@/Components/Cli/CliBar.vue'
const page = usePage()
// Navigation state
const currentLevel = ref(1)
const breadcrumbPath = ref([{ label: 'Strategie', level: 1, data: null }])
const selectedNode = ref(null)
const showPreview = ref(false)
// Demo data for Level 1: Strategy map
// Each theme is a metro line, projects are stations
const demoLines = ref([
{ id: 'water-quality', name: 'Waterkwaliteit', color: '#00d2ff' },
{ id: 'smart-infra', name: 'Slimme Infrastructuur', color: '#e94560' },
{ id: 'data-driven', name: 'Data-gedreven Beheer', color: '#00ff88' },
{ id: 'sustainability', name: 'Duurzaamheid', color: '#7b68ee' },
])
const demoNodes = ref([
// Water Quality line
{ id: 'wq1', name: 'Smart Sensors', lineId: 'water-quality', x: -200, y: -150, order: 1, status: 'actief', description: 'Slimme sensoren voor waterkwaliteitsmonitoring', owner: 'Jan Visser', children: 5, badge: 'Experiment' },
{ id: 'wq2', name: 'Biomonitoring', lineId: 'water-quality', x: 0, y: -150, order: 2, status: 'concept', description: 'Biologische monitoring methoden', owner: 'Sara Jansen', children: 3, badge: 'Concept' },
{ id: 'wq3', name: 'Voorspelmodel', lineId: 'water-quality', x: 200, y: -150, order: 3, status: 'signaal', description: 'Predictief model waterkwaliteit', badge: 'Signaal' },
// Smart Infrastructure line
{ id: 'si1', name: 'Edge Computing', lineId: 'smart-infra', x: -200, y: -20, order: 1, status: 'actief', description: 'Edge-layer evolutie voor OT-omgevingen', owner: 'Rene de Ren', children: 8, badge: 'Pilot' },
{ id: 'si2', name: 'Digital Twin', lineId: 'smart-infra', x: 50, y: -20, order: 2, status: 'verkenning', description: 'Digitale tweeling van zuiveringsinstallaties', children: 2, badge: 'Verkenning' },
{ id: 'si3', name: 'Predictive Maint.', lineId: 'smart-infra', x: 250, y: -20, order: 3, status: 'concept', description: 'Voorspellend onderhoud op basis van sensordata', badge: 'Concept' },
// Data-driven line
{ id: 'dd1', name: 'Data Platform', lineId: 'data-driven', x: -150, y: 110, order: 1, status: 'afgerond', description: 'Centraal dataplatform voor operationele data', owner: 'Lisa de Boer', badge: 'Afgerond' },
{ id: 'dd2', name: 'ML Pipeline', lineId: 'data-driven', x: 80, y: 110, order: 2, status: 'actief', description: 'Machine learning pipeline voor anomalie-detectie', owner: 'Tom Bakker', children: 4, badge: 'Experiment' },
{ id: 'dd3', name: 'Dashboard Suite', lineId: 'data-driven', x: 280, y: 110, order: 3, status: 'overdracht_bouwen', description: 'Operationele dashboards voor beheerders', badge: 'Overdracht' },
// Sustainability line
{ id: 'su1', name: 'Energietransitie', lineId: 'sustainability', x: -100, y: 240, order: 1, status: 'pilot', description: 'Energieneutraal zuiveren', owner: 'Mark de Vries', children: 6, badge: 'Pilot' },
{ id: 'su2', name: 'Circulair Water', lineId: 'sustainability', x: 150, y: 240, order: 2, status: 'verkenning', description: 'Circulaire waterbehandeling', badge: 'Verkenning' },
])
const demoConnections = ref([
{ from: 'wq1', to: 'dd2' }, // Smart sensors feeds ML Pipeline
{ from: 'si1', to: 'dd1' }, // Edge computing depends on data platform
{ from: 'dd2', to: 'si3' }, // ML pipeline enables predictive maintenance
])
// Handlers
const handleNodeClick = (node) => {
selectedNode.value = node
showPreview.value = true
}
const handleNodeHover = (node) => {
// Could highlight related nodes/connections
}
const handleNodeLeave = () => {
// Reset highlights
}
const handleZoomIn = (node) => {
showPreview.value = false
currentLevel.value++
breadcrumbPath.value.push({
label: node.name,
level: currentLevel.value,
data: node,
})
// In real app: load child nodes for this project
}
const handleBreadcrumbNavigate = (item, index) => {
breadcrumbPath.value = breadcrumbPath.value.slice(0, index + 1)
currentLevel.value = item.level
showPreview.value = false
selectedNode.value = null
}
const handleCliCommand = (command) => {
console.log('CLI command:', command)
// Will be connected to AI service
}
</script>
<template>
<div class="metro-map-page">
<Breadcrumb
:path="breadcrumbPath"
@navigate="handleBreadcrumbNavigate"
/>
<MetroCanvas
:nodes="demoNodes"
:lines="demoLines"
:connections="demoConnections"
:current-level="currentLevel"
@node-click="handleNodeClick"
@node-hover="handleNodeHover"
@node-leave="handleNodeLeave"
/>
<NodePreview
:node="selectedNode"
:visible="showPreview"
@close="showPreview = false"
@zoom-in="handleZoomIn"
/>
<CliBar @command="handleCliCommand" />
</div>
</template>
<style scoped>
.metro-map-page {
width: 100vw;
height: 100vh;
overflow: hidden;
position: relative;
background: #1a1a2e;
}
</style>