Update 2 files

- /html/src/css/style.css
- /html/journal.php
This commit is contained in:
Jan BELLON 2024-03-07 14:20:38 +00:00
parent 5cf5c22714
commit 910d108af9
2 changed files with 16 additions and 1 deletions

View File

@ -61,7 +61,7 @@ if (filter_var($_GET['article'], FILTER_VALIDATE_INT)) {
if ($resultat) {
foreach($resultat as $row) {
echo "<div class='article'><div><a href='?article=" . $row['ID'] . "'><h1>" . $row['titre'] . "</h1></a></div><div><h2>" . $row['auteur'] . "</h2></div><div>" . $date->format('d/m/Y') . "</div></div>";
echo "<a href='?article=" . $row['ID'] . "'><div class='article'><div class='article-content'><div><h1>" . $row['titre'] . "</h1></div><div><h2>" . $row['auteur'] . "</h2></div><div>" . $date->format('d/m/Y') . "</div></div></div></a>";
}
}
}

View File

@ -76,4 +76,19 @@ a {
.main-title .title {
font-size: 3em;
}
.article {
background-color: var(--dark-background);
border-radius: 10px;
}
.article:hover {
background-color: var(--dark-background);
border-radius: 10px;
box-shadow: 0 0 15px rgba(255, 255, 255, 0.322);
}
.article-content {
padding: 1em;
}