Browse Source

Added image credit, and site construction warning message

master
Samuel ORTION 4 months ago
parent
commit
09d2d619de
  1. 5
      public/footer.php
  2. 16
      public/index.php
  3. 4
      public/scripts/script.js
  4. 19
      public/styles/style.css

5
public/footer.php

@ -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">
</a>
<?php include("$root/networks.php");?>
<div class="flush right">
<p>
Crédit image `Terre` : Laurine BURGARD
</p>
</div>
</footer>

16
public/index.php

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

4
public/scripts/script.js

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

19
public/styles/style.css

@ -144,4 +144,23 @@ div.container div img#logo {
div.container img#logo {
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;
}
Loading…
Cancel
Save