mirror of
https://github.com/LucasVbr/nuitdelinfo-2023.git
synced 2026-05-13 17:21:56 +00:00
On a fait le front (a peut près)
This commit is contained in:
@@ -0,0 +1,96 @@
|
||||
@font-face {
|
||||
font-family: 'Manrope';
|
||||
src: url('../font/manrope/Manrope-ExtraBold.ttf');
|
||||
font-weight: 800;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Manrope';
|
||||
src: url('../font/manrope/Manrope-Bold.ttf');
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Manrope';
|
||||
src: url('../font/manrope/Manrope-Medium.ttf');
|
||||
font-weight: 500;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Manrope';
|
||||
src: url('../font/manrope/Manrope-Regular.ttf');
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Manrope';
|
||||
src: url('../font/manrope/Manrope-Light.ttf');
|
||||
font-weight: 300;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Manrope';
|
||||
src: url('../font/manrope/Manrope-ExtraLight.ttf');
|
||||
font-weight: 200;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Inter';
|
||||
src: url('../font/inter/Inter-Black.ttf');
|
||||
font-weight: 700;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Inter';
|
||||
src: url('../font/inter/Inter-Bold.ttf');
|
||||
font-weight: 600;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Inter';
|
||||
src: url('../font/inter/Inter-Medium.ttf');
|
||||
font-weight: 500;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Inter';
|
||||
src: url('../font/inter/Inter-Regular.ttf');
|
||||
font-weight: 400;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Inter';
|
||||
src: url('../font/inter/Inter-Light.ttf');
|
||||
font-weight: 300;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Inter';
|
||||
src: url('../font/inter/Inter-ExtraLight.ttf');
|
||||
font-weight: 200;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
@font-face {
|
||||
font-family: 'Inter';
|
||||
src: url('../font/inter/Inter-Thin.ttf');
|
||||
font-weight: 100;
|
||||
font-style: normal;
|
||||
}
|
||||
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
@@ -0,0 +1,156 @@
|
||||
#starContainer {
|
||||
position: fixed;
|
||||
top: 10px;
|
||||
right: 10px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
visibility: hidden;
|
||||
z-index: 2;
|
||||
}
|
||||
|
||||
.star {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
margin: 0 2px;
|
||||
background-image: url('../img/star.png');
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
body {
|
||||
width: 100vw;
|
||||
height: 100vh;
|
||||
overflow: hidden;
|
||||
}
|
||||
|
||||
.container {
|
||||
width: 100%;
|
||||
height: 100vh;
|
||||
}
|
||||
|
||||
section {
|
||||
flex: 1;
|
||||
position: relative;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
cursor: pointer;
|
||||
transition: transform 0.3s ease;
|
||||
}
|
||||
|
||||
.hide {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.image {
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#imgleft.expanded, #imgright.expanded {
|
||||
transform: scale(1.5);
|
||||
z-index: 1;
|
||||
}
|
||||
|
||||
.expanded {
|
||||
position: absolute;
|
||||
!important;
|
||||
top: 0;
|
||||
!important;
|
||||
left: 0;
|
||||
!important;
|
||||
width: 100%;
|
||||
!important;
|
||||
}
|
||||
|
||||
/*#imgleft.expanded {*/
|
||||
/* margin-right: -100vw;*/
|
||||
/*}*/
|
||||
|
||||
/*#imgright.expanded {*/
|
||||
/* margin-left: -100vw;*/
|
||||
/*}*/
|
||||
|
||||
.image {
|
||||
object-fit: cover;
|
||||
}
|
||||
|
||||
section a {
|
||||
display: block;
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
background-size: cover;
|
||||
background-position: center;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
#left {
|
||||
background-color: blue;
|
||||
/*background-image: url('');*/
|
||||
}
|
||||
|
||||
#right {
|
||||
background-color: red;
|
||||
/*background-image: url('');*/
|
||||
}
|
||||
|
||||
.answer {
|
||||
margin-top: 50vh;
|
||||
text-align: center;
|
||||
font-family: 'inter', sans-serif;
|
||||
font-weight: 400;
|
||||
font-size: 40px;
|
||||
text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
|
||||
color: white;
|
||||
}
|
||||
|
||||
.question {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 50%;
|
||||
transform: translateX(-50%);
|
||||
|
||||
|
||||
background-color: #FFF1DD;
|
||||
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
|
||||
border-radius: 10px;
|
||||
margin-top: 150px;
|
||||
padding: 30px;
|
||||
width: 400px;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
.question h2 {
|
||||
font-family: 'inter', sans-serif;
|
||||
font-weight: 400;
|
||||
font-size: 40px;
|
||||
color: black;
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
.question p {
|
||||
font-family: 'Manrope', sans-serif;
|
||||
font-size: 20px;
|
||||
color: black;
|
||||
}
|
||||
|
||||
.choices {
|
||||
display: flex;
|
||||
}
|
||||
|
||||
.choices > section {
|
||||
flex: 1;
|
||||
}
|
||||
|
||||
button {
|
||||
background-color: #357266;
|
||||
color: white;
|
||||
width: 214px;
|
||||
height: 59px;
|
||||
padding: 10px 20px;
|
||||
margin-top: 90px;
|
||||
font-family: 'Manrope', sans-serif;
|
||||
font-size: 20px;
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
@@ -0,0 +1,53 @@
|
||||
body {
|
||||
background: url('../img/heroBanner.jpg') fixed;
|
||||
background-size: cover;
|
||||
}
|
||||
|
||||
main {
|
||||
display: inline-block;
|
||||
max-width: px;
|
||||
margin: auto auto auto 191px;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
@media screen and (max-width: 768px) {
|
||||
main {
|
||||
margin: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
h1 {
|
||||
font-family: 'Manrope', extrabold;
|
||||
font-size: 64px;
|
||||
color: white;
|
||||
text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
|
||||
padding-bottom: 0;
|
||||
}
|
||||
|
||||
h2 {
|
||||
font-family: 'Manrope', extrabold;
|
||||
font-size: 48px;
|
||||
color: white;
|
||||
text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
#sous-pres {
|
||||
font-family: 'Manrope', bold;
|
||||
font-size: 20px;
|
||||
color: white;
|
||||
text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
|
||||
#btnjouer {
|
||||
background-color: #357266;
|
||||
color: white;
|
||||
width: 214px;
|
||||
height: 59px;
|
||||
padding: 10px 20px;
|
||||
margin-top: 90px;
|
||||
font-family: 'Manrope', bold;
|
||||
font-size: 20px;
|
||||
border: none;
|
||||
border-radius: 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
#logo {
|
||||
width: 50px;
|
||||
height: 50px;
|
||||
}
|
||||
|
||||
header {
|
||||
background: linear-gradient(180deg, rgba(0, 0, 0, 0.60) 0.52%, rgba(0, 0, 0, 0.22) 53.65%, rgba(0, 0, 0, 0.00) 100%);
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 20px;
|
||||
}
|
||||
|
||||
ul {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
li {
|
||||
list-style: none;
|
||||
margin-left: 20px;
|
||||
}
|
||||
|
||||
li a {
|
||||
text-decoration: none;
|
||||
color: white;
|
||||
font-family: 'Manrope', sans-serif;
|
||||
font-size: 20px;
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
body {
|
||||
/*//overflow-x: hidden;*/
|
||||
}
|
||||
|
||||
.navbar {
|
||||
z-index: 1;
|
||||
height: 100vh;
|
||||
/*width: 60px;*/
|
||||
background-color: #333;
|
||||
position: fixed;
|
||||
display: flex;
|
||||
/*flex-direction: column;*/
|
||||
align-items: center;
|
||||
justify-content: space-between;
|
||||
transition: width 0.3s ease;
|
||||
}
|
||||
|
||||
.logo {
|
||||
margin-top: 40px;
|
||||
margin-bottom: 20px;
|
||||
}
|
||||
|
||||
.nav-links {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
.nav-link {
|
||||
padding: 20px;
|
||||
margin-top: 20px;
|
||||
text-align: center;
|
||||
font-family: 'Manrope', sans-serif;
|
||||
font-size: 20px;
|
||||
color: #FFF1DD;
|
||||
text-underline-offset: 8px;
|
||||
transition: background-color 0.3s ease;
|
||||
}
|
||||
|
||||
.nav-link:hover {
|
||||
background-color: #555;
|
||||
}
|
||||
|
||||
label {
|
||||
padding: 10px 20px 10px 10px;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
.arrow-icon {
|
||||
cursor: pointer;
|
||||
margin-bottom: 20px;
|
||||
padding: 10px;
|
||||
}
|
||||
|
||||
#toggleNavbar {
|
||||
cursor: pointer;
|
||||
font-size: 30px;
|
||||
color: #FFF1DD;
|
||||
margin-bottom: 20px;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.nav-links:has(+ .arrow > #toggleNavbar:checked){
|
||||
display: none;
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
body {
|
||||
background-color: #457168;
|
||||
font-family: 'Manrope', sans-serif;
|
||||
font-size: 16px;
|
||||
font-weight: 400;
|
||||
line-height: 1.5;
|
||||
color: white;
|
||||
}
|
||||
|
||||
main {
|
||||
padding: 0 40px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
section h2 {
|
||||
color: #FFF;
|
||||
font-family: "Manrope", sans-serif;
|
||||
font-size: 40px;
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
line-height: normal;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
body {
|
||||
background-color: #457168;
|
||||
font-family: 'Manrope', sans-serif;
|
||||
font-size: 16px;
|
||||
font-weight: 400;|
|
||||
line-height: 1.5;
|
||||
color: white;
|
||||
}
|
||||
|
||||
main {
|
||||
padding: 0 40px;
|
||||
}
|
||||
|
||||
h1 {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
section h2 {
|
||||
color: #FFF;
|
||||
font-family: "Manrope", sans-serif;
|
||||
font-size: 40px;
|
||||
font-style: normal;
|
||||
font-weight: 300;
|
||||
line-height: normal;
|
||||
padding-bottom: 0;
|
||||
}
|
||||
Reference in New Issue
Block a user