diff --git a/site/interface/site/index.html b/site/interface/site/index.html index 26e751f..1301ac0 100644 --- a/site/interface/site/index.html +++ b/site/interface/site/index.html @@ -43,10 +43,19 @@

THREEJS

-
-

Lorem ipsum dolor sit amet consectetur adipisicing elit. Officia totam cupiditate magni unde expedita molestiae eum aliquam fugit voluptatibus omnis! Dolores, ipsa inventore necessitatibus numquam aspernatur in perferendis id voluptas?

-

Lorem ipsum dolor sit amet consectetur adipisicing elit. Officia totam cupiditate magni unde expedita molestiae eum aliquam fugit voluptatibus omnis! Dolores, ipsa inventore necessitatibus numquam aspernatur in perferendis id voluptas?

- +
+ + +
+

Lorem ipsum dolor sit amet consectetur adipisicing elit. Officia totam cupiditate magni unde expedita molestiae eum aliquam fugit voluptatibus omnis! Dolores, ipsa inventore necessitatibus numquam aspernatur in perferendis id voluptas?

+

Lorem ipsum dolor sit amet consectetur adipisicing elit. Officia totam cupiditate magni unde expedita molestiae eum aliquam fugit voluptatibus omnis! Dolores, ipsa inventore necessitatibus numquam aspernatur in perferendis id voluptas?

+
+
+

EKIP

+
+ \ No newline at end of file diff --git a/site/interface/site/main.js b/site/interface/site/main.js index 5c6fa0f..49b6fe1 100644 --- a/site/interface/site/main.js +++ b/site/interface/site/main.js @@ -3,10 +3,10 @@ /* ::: :::::::: */ /* main.js :+: :+: :+: */ /* +:+ +:+ +:+ */ -/* By: edbernar +#+ +:+ +#+ */ +/* By: marvin +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/07/30 13:50:35 by edbernar #+# #+# */ -/* Updated: 2024/08/07 17:52:24 by edbernar ### ########.fr */ +/* Updated: 2024/08/14 11:32:50 by marvin ### ########.fr */ /* */ /* ************************************************************************** */ @@ -14,6 +14,21 @@ import { createNotification } from "./notification/main.js"; import { liveChat } from "./liveChat/main.js"; import { login } from "./login/main.js"; +window.addEventListener('scroll', function() { + const scrollPosition = window.scrollY; + const rotationAngle = scrollPosition * 0.1; // Ajustez ce facteur pour contrôler l'angle de rotation + const parallaxElement = document.querySelector('#firstBall'); + const parallaxElement2 = document.querySelector('#secondBall'); + const parallaxSpeed = scrollPosition * -0.15; // Ajustez ce facteur pour ralentir le défilement + + // Appliquer la rotation en fonction de la position de défilement + parallaxElement.style.transform = `translateX(-50%) translateY(${-parallaxSpeed}px) rotate(${rotationAngle}deg)`; + parallaxElement2.style.transform = `translateX(50%) translateY(${-parallaxSpeed}px) rotate(${rotationAngle}deg)`; + + // Ajuster la position de l'arrière-plan pour l'effet de parallaxe + // parallaxElement.style.backgroundPositionY = `${parallaxSpeed}px`; +}); + document.addEventListener('DOMContentLoaded', () => { liveChat(); login(); diff --git a/site/interface/site/style/ball3D.png b/site/interface/site/style/ball3D.png new file mode 100644 index 0000000..7a6f26f Binary files /dev/null and b/site/interface/site/style/ball3D.png differ diff --git a/site/interface/site/style/ball3D2.png b/site/interface/site/style/ball3D2.png new file mode 100644 index 0000000..1f46f40 Binary files /dev/null and b/site/interface/site/style/ball3D2.png differ diff --git a/site/interface/site/style/ball3D3.png b/site/interface/site/style/ball3D3.png new file mode 100644 index 0000000..f9baa7e Binary files /dev/null and b/site/interface/site/style/ball3D3.png differ diff --git a/site/interface/site/style/balls.png b/site/interface/site/style/balls.png deleted file mode 100644 index 7017279..0000000 Binary files a/site/interface/site/style/balls.png and /dev/null differ diff --git a/site/interface/site/style/home.css b/site/interface/site/style/home.css index f6b8833..876f7af 100644 --- a/site/interface/site/style/home.css +++ b/site/interface/site/style/home.css @@ -3,10 +3,10 @@ /* ::: :::::::: */ /* home.css :+: :+: :+: */ /* +:+ +:+ +:+ */ -/* By: madegryc +#+ +:+ +#+ */ +/* By: marvin +#+ +:+ +#+ */ /* +#+#+#+#+#+ +#+ */ /* Created: 2024/08/07 12:00:55 by edbernar #+# #+# */ -/* Updated: 2024/08/13 19:02:42 by madegryc ### ########.fr */ +/* Updated: 2024/08/14 12:39:25 by marvin ### ########.fr */ /* */ /* ************************************************************************** */ @@ -129,6 +129,7 @@ body { .homeSection{ min-height: 100svh; + overflow: hidden; } .homeSection p{ @@ -147,12 +148,28 @@ body { #secondText{ font-size: 45px; padding-inline: 50px; - padding-top: 90px; + padding-top: 140px; text-align: right; } #firstBall{ - width: 25%; + position: absolute; + width: 340px; + transform-origin: center; + transform: translateX(-50%); + left: 0; +} + +#secondBall{ + position: absolute; + width: 340px; + transform-origin: center; + transform: translateX(50%); + top: 250px; + right: 0; +} + +.relative{ position: relative; } @@ -175,4 +192,13 @@ body { #menuDiv li:hover { background-color: #f0f0f0; -} \ No newline at end of file +} + +footer { + padding: 15px; + display: flex; + overflow: hidden; + height: 200px; + background-color: white; + color: #020202; + } \ No newline at end of file