diff --git a/assets/images/photo_6.png b/assets/images/photo_6.png index 8bdb4ab..c12ecf9 100644 Binary files a/assets/images/photo_6.png and b/assets/images/photo_6.png differ diff --git a/assets/images/photo_6_small.png b/assets/images/photo_6_small.png new file mode 100644 index 0000000..1982271 Binary files /dev/null and b/assets/images/photo_6_small.png differ diff --git a/css/styles.css b/css/styles.css index 3ed45fa..d8365df 100644 --- a/css/styles.css +++ b/css/styles.css @@ -92,6 +92,15 @@ hr { text-align: justify; } +.banner p { + border-top: 2px solid var(--vert-clair); + border-bottom: 2px solid var(--vert-clair); + padding: 0px 15px; + margin: 1rem 0; + font-size: 14px; +} + +/* Image principale (Mobile & Tablette) */ #photo { width: 100vw; margin-left: calc(-50vw + 50%); @@ -102,6 +111,12 @@ hr { object-fit: cover; border-radius: 0; box-shadow: none; + display: block; /* On s'assure qu'elle est visible */ +} + +/* On masque la petite image sur mobile et tablette */ +#photosmall { + display: none; } /* Projets */ @@ -115,7 +130,6 @@ hr { /* Indicateur de Défilement */ .projets h2::after { content: "\f337 Glissez pour voir plus"; - font-family: "Font Awesome 6 Free"; font-weight: 900; display: block; font-size: 0.9rem; @@ -227,6 +241,10 @@ footer { margin-bottom: 2rem; } + .banner p { + font-size: 20px; + } + .projets h2::after { display: none; } @@ -251,10 +269,71 @@ footer { max-width: 800px; margin-left: auto; margin-right: auto; - text-align: left; + text-align: center; } .footer-block p { - justify-content: flex-start; + justify-content: center; } +} + +@media (min-width: 1024px) { + + /* Organisation de la bannière */ + .banner { + flex-direction: row-reverse; + width: 100vw; + margin-left: calc(-50vw + 50%); + margin-right: calc(-50vw + 50%); + align-items: center; + margin-bottom: 3rem; + border-top: 2px solid var(--vert-clair); + border-bottom: 2px solid var(--vert-clair); + } + + /* Le texte de la bannière */ + .banner p { + width: 45vw; + margin: 0; + border: none; + font-size: 22px; + word-spacing: -3px; + padding: 0px 0px 0px 30px; + + } + + /* On masque la grande photo */ + #photo { + display: none; + } + + /* On affiche et on stylise la petite photo (avec l'effet de dégradé) */ + #photosmall { + display: block; /* Affiche l'image */ + width: 55vw; + height: 450px; + margin: 0; + object-fit: cover; /* Assure que l'image ne se déforme pas */ + -webkit-mask-image: linear-gradient(to right, transparent 0%, black 25%); + mask-image: linear-gradient(to right, transparent 0%, black 25%); + } + + .projets img { + height: 320px; + transition: transform 0.4s ease; /* Rend le zoom fluide */ + } + + /* Effet de zoom au passage de la souris */ + .projets > div > div:hover img { + transform: scale(1.08); /* Grossit l'image de 8% */ + } + + @media (min-width: 1440px) { + + .banner p { + font-size: 25px ; + } + + } + } \ No newline at end of file diff --git a/index.html b/index.html index ada2ce9..e65d0f7 100644 --- a/index.html +++ b/index.html @@ -26,12 +26,13 @@

-

Galerie de mes projets

+

Mes Travaux

photo