Added image credit, and site construction warning message

This commit is contained in:
Samuel Ortion 2021-07-10 11:29:27 +02:00
parent 8010920909
commit 09d2d619de
4 changed files with 43 additions and 1 deletions

View File

@ -5,4 +5,9 @@
<img class="full-height" src="//upload.wikimedia.org/wikipedia/commons/thumb/0/06/AGPLv3_Logo.svg/220px-AGPLv3_Logo.svg.png" alt="agpl logo"> <img class="full-height" src="//upload.wikimedia.org/wikipedia/commons/thumb/0/06/AGPLv3_Logo.svg/220px-AGPLv3_Logo.svg.png" alt="agpl logo">
</a> </a>
<?php include("$root/networks.php");?> <?php include("$root/networks.php");?>
<div class="flush right">
<p>
Crédit image `Terre` : Laurine BURGARD
</p>
</div>
</footer> </footer>

View File

@ -1,5 +1,8 @@
<?php <?php
$root = $_SERVER['DOCUMENT_ROOT']; $root = $_SERVER['DOCUMENT_ROOT'];
$message = "Site en construction...";
?> ?>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="fr"> <html lang="fr">
@ -15,7 +18,18 @@ $root = $_SERVER['DOCUMENT_ROOT'];
crossorigin=""/> crossorigin=""/>
</head> </head>
<body> <body>
<?php
if (isset($message) and $message != "")
{
?>
<div class="message warning dismissable">
<p>
<?=$message?>
</p>
</div>
<?php
}
?>
<div class="container"> <div class="container">
<?php include("$root/menu.php");?> <?php include("$root/menu.php");?>
<?php include("$root/header.php");?> <?php include("$root/header.php");?>

View File

@ -0,0 +1,4 @@
document.getElementsByClassName('dismissable')[0].addEventListener('click', function() {
this.style.display = 'none';
console.log('warning dismissed..');
});

View File

@ -145,3 +145,22 @@ div.container div img#logo {
div.container img#logo { div.container img#logo {
border-radius: 1em; border-radius: 1em;
} }
.flush.right {
text-align: right;
}
.message {
position: fixed;
text-align: center;
width: 100vw;
margin-bottom: 1em;
}
.warning {
background-color: lightcoral;
}
.dismissable {
cursor: not-allowed;
}