Initial habit tracker project
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
</main>
|
||||
</body>
|
||||
</html>
|
||||
@@ -0,0 +1,34 @@
|
||||
<!doctype html>
|
||||
<html lang="de">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<title><?= e(config('app_name')) ?></title>
|
||||
<link rel="stylesheet" href="assets/css/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<header class="topbar">
|
||||
<a class="brand" href="index.php?route=dashboard">Habit Tracker</a>
|
||||
<nav class="nav">
|
||||
<?php if (current_user_id()): ?>
|
||||
<a href="index.php?route=dashboard">Dashboard</a>
|
||||
<a href="index.php?route=habits/create">Neuer Habit</a>
|
||||
<form method="post" action="index.php?route=logout" class="logout-form">
|
||||
<?= csrf_field() ?>
|
||||
<button type="submit" class="link-button">Logout</button>
|
||||
</form>
|
||||
<?php else: ?>
|
||||
<a href="index.php?route=login">Login</a>
|
||||
<a href="index.php?route=register">Registrieren</a>
|
||||
<?php endif; ?>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main class="page">
|
||||
<?php if ($message = flash('success')): ?>
|
||||
<p class="notice success"><?= e($message) ?></p>
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ($message = flash('error')): ?>
|
||||
<p class="notice error"><?= e($message) ?></p>
|
||||
<?php endif; ?>
|
||||
Reference in New Issue
Block a user