diff options
| author | Thomas Vanbesien <tvanbesi@proton.me> | 2026-03-21 20:50:43 +0100 |
|---|---|---|
| committer | Thomas Vanbesien <tvanbesi@proton.me> | 2026-03-21 20:50:43 +0100 |
| commit | d1ef15fa39935bfa0420c5ac2b8c269e294c9a6d (patch) | |
| tree | 618158449863123f6b9527b9db6183f8c3ce5c91 /src/app/Views/layouts | |
| download | camagru-d1ef15fa39935bfa0420c5ac2b8c269e294c9a6d.tar.gz camagru-d1ef15fa39935bfa0420c5ac2b8c269e294c9a6d.zip | |
Initial project scaffold
Set up MVC architecture with front controller, router, autoloader,
database singleton, and Docker Compose stack (Nginx + PHP-FPM + MariaDB).
Includes DB schema, responsive layout, dev tooling (php-cs-fixer,
parallel-lint), and documentation.
Diffstat (limited to 'src/app/Views/layouts')
| -rw-r--r-- | src/app/Views/layouts/main.php | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/src/app/Views/layouts/main.php b/src/app/Views/layouts/main.php new file mode 100644 index 0000000..b4c7dad --- /dev/null +++ b/src/app/Views/layouts/main.php @@ -0,0 +1,35 @@ +<?php // Base HTML layout: header with navigation, content slot, and footer.?> +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>Camagru</title> + <link rel="stylesheet" href="/css/style.css"> +</head> +<body> + <header> + <nav> + <a href="/" class="logo">Camagru</a> + <div class="nav-links"> + <a href="/gallery">Gallery</a> + <?php if (isset($_SESSION['user_id'])): ?> + <a href="/editor">Editor</a> + <a href="/profile">Profile</a> + <a href="/logout">Logout</a> + <?php else: ?> + <a href="/login">Login</a> + <a href="/register">Register</a> + <?php endif; ?> + </div> + </nav> + </header> + <main> + <?php include $content; ?> + </main> + <footer> + <p>Camagru © <?= date('Y') ?></p> + </footer> + <script src="/js/app.js"></script> +</body> +</html> |
