Premier commit
This commit is contained in:
BIN
etoiles.png
Normal file
BIN
etoiles.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 16 KiB |
44
index.html
Normal file
44
index.html
Normal file
@@ -0,0 +1,44 @@
|
|||||||
|
<!DOCTYPE html>
|
||||||
|
<html class="no-js">
|
||||||
|
|
||||||
|
<head>
|
||||||
|
<meta charset="utf-8" />
|
||||||
|
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
||||||
|
<title>Charline Pasteur Avocate</title>
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
||||||
|
<link rel="stylesheet" href="./styles.css" />
|
||||||
|
</head>
|
||||||
|
|
||||||
|
<body>
|
||||||
|
<div class="navbar">
|
||||||
|
<input type="checkbox" id="menu-toggle">
|
||||||
|
<label for="menu-toggle" class="menu-icon">
|
||||||
|
<span></span>
|
||||||
|
<span></span>
|
||||||
|
<span></span>
|
||||||
|
</label>
|
||||||
|
<nav>
|
||||||
|
<a href="#about">Qui je suis</a>
|
||||||
|
<a href="#how">Ce que je fais</a>
|
||||||
|
<a href="#contact">Contact</a>
|
||||||
|
</nav>
|
||||||
|
</div>
|
||||||
|
<div class="wrapper">
|
||||||
|
<div class="parallax__group hero-container">
|
||||||
|
<div class="parallax__layer sky"></div>
|
||||||
|
<div class="parallax__layer bushes"></div>
|
||||||
|
<div class="parallax__layer water"></div>
|
||||||
|
<div class="parallax__layer people1"></div>
|
||||||
|
<!--<div class="parallax__layer people2"></div>
|
||||||
|
<div class="parallax__layer people3"></div>
|
||||||
|
<div></div>-->
|
||||||
|
</div>
|
||||||
|
<section id="about" class="parallax__group info-container">
|
||||||
|
</section>
|
||||||
|
<section id="about"></section>
|
||||||
|
<section id="how"></section>
|
||||||
|
<section id="contact"></section>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
|
||||||
|
</html>
|
||||||
BIN
personnage1.png
Normal file
BIN
personnage1.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 560 KiB |
BIN
personnage2.png
Normal file
BIN
personnage2.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 481 KiB |
BIN
personnage3.png
Normal file
BIN
personnage3.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 442 KiB |
BIN
personnages.png
Normal file
BIN
personnages.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 1.3 MiB |
171
styles copy.css
Normal file
171
styles copy.css
Normal file
@@ -0,0 +1,171 @@
|
|||||||
|
* {
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
html,
|
||||||
|
body {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
color: black;
|
||||||
|
background-color: #FFEDE5;
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
font-weight: 700;
|
||||||
|
overflow-x: hidden;
|
||||||
|
/* Empêche le scroll horizontal */
|
||||||
|
}
|
||||||
|
|
||||||
|
.navbar {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
background-color: white;
|
||||||
|
height: 4rem;
|
||||||
|
z-index: 1000;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav {
|
||||||
|
float: right;
|
||||||
|
background-color: transparent;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav a {
|
||||||
|
display: inline-block;
|
||||||
|
color: rgb(227, 195, 14);
|
||||||
|
padding: 18px 12px;
|
||||||
|
text-decoration: none;
|
||||||
|
transition: ease-in .3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav a:hover {
|
||||||
|
color: white;
|
||||||
|
background: #6aa9e895;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wrapper {
|
||||||
|
padding-top: 12rem;
|
||||||
|
height: 100vh;
|
||||||
|
overflow-x: hidden;
|
||||||
|
overflow-y: auto;
|
||||||
|
perspective: 300px;
|
||||||
|
width: 100vw;
|
||||||
|
/* Force la largeur du viewport */
|
||||||
|
overflow-x: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.parallax__group {
|
||||||
|
position: relative;
|
||||||
|
height: 100vh;
|
||||||
|
width: 100vw;
|
||||||
|
transform-style: preserve-3d;
|
||||||
|
}
|
||||||
|
|
||||||
|
.parallax__layer {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sky {
|
||||||
|
background-color: white;
|
||||||
|
background: url('fond.png') no-repeat;
|
||||||
|
background-size: contain;
|
||||||
|
transform: translateZ(-600px) scale(3);
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bushes {
|
||||||
|
background: url('etoiles.png') no-repeat;
|
||||||
|
background-size: contain;
|
||||||
|
transform: translateZ(-525px) scale(2.75);
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.water {
|
||||||
|
background: url('texte.png') no-repeat;
|
||||||
|
background-size: contain;
|
||||||
|
transform: translateZ(-400px) scale(2.33333333);
|
||||||
|
z-index: 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.people1 {
|
||||||
|
background: url("personnages.png") no-repeat;
|
||||||
|
background-size: contain;
|
||||||
|
transform: translateZ(-250px) scale(1.833333333);
|
||||||
|
z-index: 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-container {
|
||||||
|
background-color: #FFEDE5;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Style du menu hamburger */
|
||||||
|
.menu-icon {
|
||||||
|
display: none;
|
||||||
|
/* Caché par défaut */
|
||||||
|
flex-direction: column;
|
||||||
|
cursor: pointer;
|
||||||
|
position: absolute;
|
||||||
|
right: 1rem;
|
||||||
|
top: 1rem;
|
||||||
|
z-index: 1001;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-icon span {
|
||||||
|
background: rgb(227, 195, 14);
|
||||||
|
display: block;
|
||||||
|
height: 3px;
|
||||||
|
width: 25px;
|
||||||
|
margin: 5px 0;
|
||||||
|
transition: 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Masquer la case à cocher */
|
||||||
|
#menu-toggle {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@media screen and (min-width:760px) {
|
||||||
|
.sky,
|
||||||
|
.bushes,
|
||||||
|
.water,
|
||||||
|
.people1 {
|
||||||
|
background-size: contain;
|
||||||
|
/* Remplit toute la largeur */
|
||||||
|
/*background-position: center; Centre les images */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 760px) {
|
||||||
|
.menu-icon {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav {
|
||||||
|
display: none;
|
||||||
|
flex-direction: column;
|
||||||
|
position: absolute;
|
||||||
|
top: 4rem;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
background: white;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Quand la case est cochée, afficher le menu */
|
||||||
|
#menu-toggle:checked+.menu-icon+nav {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav a {
|
||||||
|
padding: 15px;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
239
styles.css
Normal file
239
styles.css
Normal file
@@ -0,0 +1,239 @@
|
|||||||
|
* {
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
box-sizing: border-box;
|
||||||
|
}
|
||||||
|
|
||||||
|
html,
|
||||||
|
body {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
color: black;
|
||||||
|
background-color: #FFEDE5;
|
||||||
|
font-family: Arial, Helvetica, sans-serif;
|
||||||
|
font-weight: 700;
|
||||||
|
overflow-x: hidden;
|
||||||
|
/* Empêche le scroll horizontal */
|
||||||
|
}
|
||||||
|
|
||||||
|
/*.navbar {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
background-color: #d4af37;
|
||||||
|
height: 4rem;
|
||||||
|
z-index: 1000;
|
||||||
|
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2); /* Ombre portée pour donner de la profondeur
|
||||||
|
}
|
||||||
|
|
||||||
|
nav a {
|
||||||
|
display: inline-block;
|
||||||
|
color: white; /* Couleur du texte
|
||||||
|
padding: 18px 12px;
|
||||||
|
text-decoration: none;
|
||||||
|
transition: ease-in .3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav a:hover {
|
||||||
|
color: #d4af37; /* Couleur dorée au survol
|
||||||
|
background-color: white; /* Fond blanc au survol
|
||||||
|
}*/
|
||||||
|
|
||||||
|
.navbar {
|
||||||
|
position: fixed;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
background-color: white;
|
||||||
|
height: 4rem;
|
||||||
|
z-index: 1000;
|
||||||
|
overflow: hidden; /* Pour s'assurer que le pseudo-élément reste à l'intérieur */
|
||||||
|
}
|
||||||
|
|
||||||
|
nav {
|
||||||
|
float: right;
|
||||||
|
background-color: transparent;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav a {
|
||||||
|
display: inline-block;
|
||||||
|
color: rgb(227, 195, 14);
|
||||||
|
padding: 18px 12px;
|
||||||
|
text-decoration: none;
|
||||||
|
transition: ease-in .3s;
|
||||||
|
font-size: 2rem; /* Augmente la taille de la police */
|
||||||
|
/*font-family: Arial, Helvetica, sans-serif; Utilise Arial comme police principale */
|
||||||
|
font-family: 'Times New Roman', Times, serif; /* Utilise Times New Roman comme police principale */
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
nav a:hover {
|
||||||
|
color: black;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
.wrapper {
|
||||||
|
padding-top: 12rem;
|
||||||
|
height: 100vh;
|
||||||
|
overflow-x: hidden;
|
||||||
|
overflow-y: auto;
|
||||||
|
perspective: 300px;
|
||||||
|
width: 100vw;
|
||||||
|
/* Force la largeur du viewport */
|
||||||
|
overflow-x: hidden;
|
||||||
|
}
|
||||||
|
|
||||||
|
.parallax__group {
|
||||||
|
position: relative;
|
||||||
|
height: 100vh;
|
||||||
|
width: 100vw;
|
||||||
|
transform-style: preserve-3d;
|
||||||
|
}
|
||||||
|
|
||||||
|
.parallax__layer {
|
||||||
|
position: absolute;
|
||||||
|
top: 0;
|
||||||
|
left: 0;
|
||||||
|
right: 0;
|
||||||
|
bottom: 0;
|
||||||
|
}
|
||||||
|
|
||||||
|
.sky {
|
||||||
|
background-color: white;
|
||||||
|
background: url('fond.png') no-repeat;
|
||||||
|
background-size: contain;
|
||||||
|
transform: translateZ(-600px) scale(3);
|
||||||
|
z-index: 1;
|
||||||
|
}
|
||||||
|
|
||||||
|
.bushes {
|
||||||
|
background: url('etoiles.png') no-repeat;
|
||||||
|
background-size: contain;
|
||||||
|
transform: translateZ(-525px) scale(2.75);
|
||||||
|
z-index: 2;
|
||||||
|
}
|
||||||
|
|
||||||
|
.water {
|
||||||
|
background: url('texte.png') no-repeat;
|
||||||
|
background-size: contain;
|
||||||
|
transform: translateZ(-400px) scale(2.33333333);
|
||||||
|
z-index: 3;
|
||||||
|
}
|
||||||
|
|
||||||
|
.people1 {
|
||||||
|
background: url("personnages.png") no-repeat;
|
||||||
|
background-size: contain;
|
||||||
|
transform: translateZ(-250px) scale(1.833333333);
|
||||||
|
z-index: 4;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-container {
|
||||||
|
background-color: #FFEDE5;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Style du menu hamburger */
|
||||||
|
.menu-icon {
|
||||||
|
display: none;
|
||||||
|
/* Caché par défaut */
|
||||||
|
flex-direction: column;
|
||||||
|
cursor: pointer;
|
||||||
|
position: absolute;
|
||||||
|
right: 1rem;
|
||||||
|
top: 1rem;
|
||||||
|
z-index: 1001;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-icon span {
|
||||||
|
background: rgb(227, 195, 14);
|
||||||
|
display: block;
|
||||||
|
height: 3px;
|
||||||
|
width: 25px;
|
||||||
|
margin: 5px 0;
|
||||||
|
transition: 0.3s;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Masquer la case à cocher */
|
||||||
|
#menu-toggle {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.info-container {
|
||||||
|
display: flex; /* Utilise flexbox pour aligner le contenu */
|
||||||
|
align-items: center; /* Centre verticalement le contenu */
|
||||||
|
padding: 2rem; /* Espace autour du contenu */
|
||||||
|
background-color: rgba(255, 237, 229, 0.8); /* Fond légèrement coloré */
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-content {
|
||||||
|
display: flex; /* Utilise flexbox pour le contenu de l'à propos */
|
||||||
|
width: 100%; /* Prend toute la largeur */
|
||||||
|
max-width: 1200px; /* Limite la largeur maximale */
|
||||||
|
margin: 0 auto; /* Centre le contenu */
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-image {
|
||||||
|
flex: 1; /* Prend un espace flexible */
|
||||||
|
text-align: center; /* Centre l'image horizontalement */
|
||||||
|
padding-right: 1rem; /* Espace entre l'image et le texte */
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-image img {
|
||||||
|
width: 80%; /* Ajuste la taille de l'image */
|
||||||
|
max-width: 300px; /* Largeur maximale pour l'image */
|
||||||
|
border-radius: 15px; /* Bords arrondis */
|
||||||
|
box-shadow: 0 0 15px rgba(255, 255, 255, 0.7); /* Halo lumineux */
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-text {
|
||||||
|
flex: 2; /* Prend un espace flexible */
|
||||||
|
color: black; /* Couleur du texte */
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-text h2 {
|
||||||
|
font-size: 2rem; /* Taille de la police pour le titre */
|
||||||
|
margin-bottom: 1rem; /* Espace sous le titre */
|
||||||
|
}
|
||||||
|
|
||||||
|
.about-text p {
|
||||||
|
font-size: 1rem; /* Taille de la police pour le texte */
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (min-width:761px) {
|
||||||
|
.sky,
|
||||||
|
.bushes,
|
||||||
|
.water,
|
||||||
|
.people1 {
|
||||||
|
background-size: contain;
|
||||||
|
/* Remplit toute la largeur */
|
||||||
|
/*background-position: center; Centre les images */
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media screen and (max-width: 760px) {
|
||||||
|
.menu-icon {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav {
|
||||||
|
display: none;
|
||||||
|
flex-direction: column;
|
||||||
|
position: absolute;
|
||||||
|
top: 4rem;
|
||||||
|
left: 0;
|
||||||
|
width: 100%;
|
||||||
|
background: white;
|
||||||
|
text-align: center;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Quand la case est cochée, afficher le menu */
|
||||||
|
#menu-toggle:checked+.menu-icon+nav {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
nav a {
|
||||||
|
padding: 15px;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user