Update 2 files
- /html/src/css/style.css - /html/journal.php
This commit is contained in:
parent
5cf5c22714
commit
910d108af9
@ -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>";
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user