41 lines
1.4 KiB
PHP
41 lines
1.4 KiB
PHP
<?= $this->extend('layouts/main') ?>
|
|
|
|
<?= $this->section('content') ?>
|
|
|
|
<div style="min-height: 100vh; padding: 2rem;">
|
|
<div class="card card-glass fade-in" style="max-width: 600px; margin: 2rem auto; text-align: center;">
|
|
|
|
<div class="login-logo" style="margin-bottom: 1.5rem;">
|
|
<i data-lucide="layout-dashboard"></i>
|
|
</div>
|
|
|
|
<h1 style="margin-bottom: 0.5rem;">🎉 Welcome to Dashboard!</h1>
|
|
<p class="text-muted" style="margin-bottom: 2rem;">
|
|
You're successfully logged in. This is a placeholder page.
|
|
</p>
|
|
|
|
<?php if (isset($user)): ?>
|
|
<div class="alert alert-success" style="text-align: left;">
|
|
<i data-lucide="check-circle" style="width: 18px; height: 18px;"></i>
|
|
<span>Logged in as: <strong><?= esc($user->username ?? 'User') ?></strong></span>
|
|
</div>
|
|
<?php endif; ?>
|
|
|
|
<div style="display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;">
|
|
<a href="/login" class="btn btn-secondary">
|
|
<i data-lucide="arrow-left" style="width: 18px; height: 18px;"></i>
|
|
Back to Login
|
|
</a>
|
|
<form action="/logout" method="get" style="margin: 0;">
|
|
<button type="submit" class="btn btn-primary">
|
|
<i data-lucide="log-out" style="width: 18px; height: 18px;"></i>
|
|
Logout
|
|
</button>
|
|
</form>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
<?= $this->endSection() ?>
|