forked from rebillar/site-accueil-insa
Compare commits
No commits in common. "b6536ce19912f2400a928c3548e16b171e1394ff" and "c955435db0b6ecc5338f2319846e6b65082b0b27" have entirely different histories.
b6536ce199
...
c955435db0
6 changed files with 66 additions and 57 deletions
|
@ -1,7 +1,7 @@
|
||||||
.menu {
|
.menu {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
left: 0;
|
left: 0;
|
||||||
bottom: -12vh;
|
bottom: -15%;
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 25vh;
|
height: 25vh;
|
||||||
z-index: 2;
|
z-index: 2;
|
||||||
|
@ -9,6 +9,11 @@
|
||||||
transition: transform 0.3s;
|
transition: transform 0.3s;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.menu-svg{
|
||||||
|
width: 30vw;
|
||||||
|
height: 40vh;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
#menu ul {
|
#menu ul {
|
||||||
flex-wrap: wrap;
|
flex-wrap: wrap;
|
||||||
|
@ -17,14 +22,15 @@
|
||||||
list-style: none;
|
list-style: none;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
background-color: transparent;
|
||||||
color: #fff;
|
color: #fff;
|
||||||
height: auto;
|
height: 50px;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
background-color: rgba(64, 98, 63, 0.7); /* Add a semi-transparent background color for readability */
|
background-color: rgba(0, 0, 0, 0.7); /* Add a semi-transparent background color for readability */
|
||||||
bottom: 5vh;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
@media all and (max-width: 800px) {
|
@media only screen and (max-width: 600px) {
|
||||||
/* Add styles for smartphones screens */
|
/* Add styles for smartphones screens */
|
||||||
#menu ul {
|
#menu ul {
|
||||||
height: auto;
|
height: auto;
|
||||||
|
@ -35,8 +41,7 @@
|
||||||
#menu li {
|
#menu li {
|
||||||
margin: 5px 0;
|
margin: 5px 0;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
|
||||||
|
|
||||||
#menu li {
|
#menu li {
|
||||||
margin: 0 10px;
|
margin: 0 10px;
|
||||||
|
@ -49,19 +54,52 @@ margin: 0 10px;
|
||||||
padding: 10px; /* Add some padding for better readability and clickable area */
|
padding: 10px; /* Add some padding for better readability and clickable area */
|
||||||
color: #c25151;
|
color: #c25151;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
background-image: url('/assets/img/buisson.svg'); /* Add this line to set the link background image */
|
background-image: url('/assets/img/colonne.svg'); /* Add this line to set the link background image */
|
||||||
background-repeat: no-repeat;
|
background-repeat: no-repeat;
|
||||||
background-position: center;
|
background-position: center;
|
||||||
background-size: cover;
|
background-size: cover;
|
||||||
}
|
}
|
||||||
|
|
||||||
#menu a:hover{
|
|
||||||
color: #c22828;
|
|
||||||
transform: translateY(-2px);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
.menu-link{
|
||||||
|
margin-left: 10px;
|
||||||
|
width: 100%;
|
||||||
|
position: absolute;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-link use {
|
||||||
|
transition: transform 50ms;
|
||||||
|
transform-origin: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-link.menu-bottom-line use {
|
||||||
|
transform-origin: bottom;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-link text {
|
||||||
|
transition: transform 50ms;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu .menu-link:hover text {
|
||||||
|
fill: #FFDC00;
|
||||||
|
transform: translateY(-1px);
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-link:hover use {
|
||||||
|
transform: scaleY(1.1);
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu svg {
|
||||||
|
overflow: visible;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.mobile-menu {
|
.mobile-menu {
|
||||||
display: block;
|
display: block;
|
||||||
position: fixed;
|
position: fixed;
|
||||||
|
|
|
@ -9,18 +9,6 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 200%;
|
height: 200%;
|
||||||
font-size: 10vh;
|
font-size: 10vh;
|
||||||
color: rgb(196, 23, 23);
|
color: rgb(170, 28, 28);
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/* ajuste le décompte pour les petits écrans*/
|
|
||||||
@media all and (max-width: 800px) {
|
|
||||||
|
|
||||||
#decompte{
|
|
||||||
font-size: 7vh;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,17 +4,6 @@
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 200%;
|
height: 200%;
|
||||||
font-size: 10vh;
|
font-size: 10vh;
|
||||||
color: rgb(196, 23, 23);
|
color: rgb(170, 28, 28);
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
/* ajuste le décompte pour les petits écrans*/
|
|
||||||
@media all and (max-width: 800px) {
|
|
||||||
|
|
||||||
#decompte{
|
|
||||||
font-size: 7vh;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -11,11 +11,11 @@
|
||||||
.zone_txt {
|
.zone_txt {
|
||||||
display: block;
|
display: block;
|
||||||
background-color: rgba(88, 159, 218, 0.798);
|
background-color: rgba(88, 159, 218, 0.798);
|
||||||
width: 90vw;
|
width: 80vw;
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
padding: 5vw;
|
padding: 50px;
|
||||||
font-size: 2rem;
|
font-size: 1.2rem;
|
||||||
margin-top: 40px;
|
margin-top: 40px;
|
||||||
border-radius: 15px;
|
border-radius: 15px;
|
||||||
color: black;
|
color: black;
|
||||||
|
@ -39,19 +39,10 @@ body {
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
|
|
||||||
background-attachment: fixed;
|
background-attachment: fixed;
|
||||||
background-color: #ffffff;
|
background-color: #bdc7f3;
|
||||||
background-image: url("/assets/img/background.svg");
|
background-image: url("/assets/img/background.svg");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* papier peint pour petits écrans (smartphones) */
|
|
||||||
@media all and (max-width: 800px) {
|
|
||||||
|
|
||||||
body {
|
|
||||||
background-image: url("/assets/img/asterix.svg");
|
|
||||||
background-repeat: space;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
main {
|
main {
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
@ -95,6 +86,13 @@ a.linkmail:hover {
|
||||||
border-right: solid 2em #a06827;
|
border-right: solid 2em #a06827;
|
||||||
border-bottom: solid 2em #332806;
|
border-bottom: solid 2em #332806;
|
||||||
|
|
||||||
|
/*clip-path: polygon(
|
||||||
|
0 2.00em,1em 1em,2.00em 0,
|
||||||
|
calc(100% - 2.00em) 0,calc(100% - 1em) 1em,100% 2.00em,
|
||||||
|
100% calc(100% - 2.00em),calc(100% - 1em) calc(100% - 1em),calc(100% - 2.00em) 100%,
|
||||||
|
2.00em 100%,1em calc(100% - 1em),0 calc(100% - 2.00em)
|
||||||
|
);*/
|
||||||
|
|
||||||
border-radius: 10px;
|
border-radius: 10px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -13,7 +13,7 @@ ob_start(); // Start reading html
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// avis aux futurs devs, changez la date ici :)
|
// avis aux futurs devs, changez la date ici :)
|
||||||
var target_date = Math.floor(Date.parse("2023-09-15 00:00:00") /1000)
|
var target_date = Math.floor(Date.parse("15-Sep-2023 00:00:00") /1000)
|
||||||
|
|
||||||
// le coef d'aggrandissement de l'image de la taupe
|
// le coef d'aggrandissement de l'image de la taupe
|
||||||
var coef = 1
|
var coef = 1
|
||||||
|
|
|
@ -17,7 +17,7 @@ include "assets/scripts/globals.php";
|
||||||
*/
|
*/
|
||||||
|
|
||||||
// avis aux futurs devs, changez la date ici :)
|
// avis aux futurs devs, changez la date ici :)
|
||||||
var target_date = Math.floor(Date.parse("2023-09-15 00:00:00") /1000)
|
var target_date = Math.floor(Date.parse("15-Sep-2023 00:00:00") /1000)
|
||||||
|
|
||||||
function set_timer(){
|
function set_timer(){
|
||||||
|
|
||||||
|
@ -32,8 +32,6 @@ include "assets/scripts/globals.php";
|
||||||
var delta_minutes = Math.floor((delta_seconds % (60*60))/60);
|
var delta_minutes = Math.floor((delta_seconds % (60*60))/60);
|
||||||
delta_seconds = delta_seconds % 60;
|
delta_seconds = delta_seconds % 60;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// on met tout dans le div du decompte
|
// on met tout dans le div du decompte
|
||||||
document.getElementById("decompte").innerText = "J - "
|
document.getElementById("decompte").innerText = "J - "
|
||||||
+delta_days+"j "
|
+delta_days+"j "
|
||||||
|
@ -41,8 +39,6 @@ include "assets/scripts/globals.php";
|
||||||
+delta_minutes+"min "
|
+delta_minutes+"min "
|
||||||
+delta_seconds+"s";
|
+delta_seconds+"s";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// récursion chaque seconde
|
// récursion chaque seconde
|
||||||
setTimeout(set_timer, 1000);
|
setTimeout(set_timer, 1000);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue