59 lines
3.0 KiB
PHP
59 lines
3.0 KiB
PHP
<?php
|
|
require_once 'db/config.php';
|
|
session_start();
|
|
$db = db();
|
|
|
|
$logs = $db->query("SELECT * FROM project_logs ORDER BY created_at DESC")->fetchAll(PDO::FETCH_ASSOC);
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html lang="fr">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<title>Journal du Projet - Nexus</title>
|
|
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
|
|
<link href="assets/css/custom.css?v=<?php echo time(); ?>" rel="stylesheet">
|
|
<style>
|
|
body { background: #000; color: #fff; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; margin: 0; }
|
|
#main-wrapper { display: flex; flex-direction: column; min-height: 100vh; }
|
|
.container { max-width: 900px; margin: 40px auto; padding: 0 20px; flex-grow: 1; }
|
|
.log-entry { background: rgba(30, 41, 59, 0.4); border: 1px solid #1e293b; border-radius: 8px; padding: 25px; margin-bottom: 30px; box-shadow: 0 4px 15px rgba(0,0,0,0.3); transition: border-color 0.2s; }
|
|
.log-entry:hover { border-color: #88c0d0; }
|
|
.log-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 15px; border-bottom: 1px solid #1e293b; padding-bottom: 10px; }
|
|
.version-badge { background: #88c0d0; color: #0f172a; padding: 4px 12px; border-radius: 20px; font-weight: bold; font-size: 14px; }
|
|
.log-date { color: #64748b; font-size: 14px; }
|
|
.log-title { font-size: 22px; color: #fff; margin: 0 0 10px 0; font-weight: 700; }
|
|
.log-content { line-height: 1.6; color: #d8dee9; white-space: pre-line; }
|
|
footer { text-align: center; padding: 30px; font-size: 12px; color: #4c566a; background: rgba(0,0,0,0.4); }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div id="main-wrapper">
|
|
<?php require_once 'includes/header.php'; ?>
|
|
|
|
<div class="container">
|
|
<h1 style="color: #88c0d0; text-transform: uppercase; letter-spacing: 2px; border-bottom: 2px solid #1e293b; padding-bottom: 15px; margin-bottom: 30px;">
|
|
<i class="fa-solid fa-clipboard-list"></i> Journal de Bord
|
|
</h1>
|
|
|
|
<?php if (empty($logs)): ?>
|
|
<div class="log-entry"><p>Aucun log disponible.</p></div>
|
|
<?php else: ?>
|
|
<?php foreach ($logs as $log): ?>
|
|
<div class="log-entry">
|
|
<div class="log-header">
|
|
<span class="version-badge">v<?php echo htmlspecialchars($log['version']); ?></span>
|
|
<span class="log-date"><?php echo date('d/m/Y H:i', strtotime($log['created_at'])); ?></span>
|
|
</div>
|
|
<h2 class="log-title"><?php echo htmlspecialchars($log['title']); ?></h2>
|
|
<div class="log-content"><?php echo nl2br(htmlspecialchars($log['content'])); ?></div>
|
|
</div>
|
|
<?php endforeach; ?>
|
|
<?php endif; ?>
|
|
</div>
|
|
|
|
<footer>
|
|
© <?php echo date('Y'); ?> Nexus Project. Tous droits réservés.
|
|
</footer>
|
|
</div>
|
|
</body>
|
|
</html>
|