Update 2 files

- /html/journal.php
- /html/src/css/style.css
This commit is contained in:
Jan BELLON 2024-03-07 14:47:17 +00:00
parent 37603dac54
commit 4a4c44a8f4
2 changed files with 6 additions and 1 deletions

View File

@ -63,7 +63,7 @@ if (filter_var($_GET['article'], FILTER_VALIDATE_INT)) {
if ($resultat) { if ($resultat) {
foreach($resultat as $row) { foreach($resultat as $row) {
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>"; echo "<a href='?article=" . $row['ID'] . "' class='article-link'><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

@ -80,6 +80,11 @@ a {
font-size: 3em; font-size: 3em;
} }
.article-link {
display: inline-block;
width: 25em;
}
.article { .article {
background-color: var(--dark-background); background-color: var(--dark-background);
border-radius: 10px; border-radius: 10px;