Skip to content

Commit

Permalink
Merge pull request #3 from The-JW-Corp/JW-3-Our-team
Browse files Browse the repository at this point in the history
Jw 3 our team
  • Loading branch information
JW-Rami authored Feb 14, 2024
2 parents c9e9655 + def0180 commit e121696
Show file tree
Hide file tree
Showing 8 changed files with 499 additions and 71 deletions.
4 changes: 2 additions & 2 deletions src/components/AnimationsComponent/AnimationsComponent.js
Original file line number Diff line number Diff line change
Expand Up @@ -236,12 +236,12 @@ function AnimationsComponent() {
return (
<>
<>
<motion.div
{/* <motion.div
className="progress-bar"
style={{
scaleX: scrollYProgress,
}}
/>
/> */}
</>
</>
);
Expand Down
3 changes: 2 additions & 1 deletion src/components/Carousel/Carousel.css
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
/* background-color: red; */
height: 70vh;
width: 100%;
/* max-width: 96vw; */
display: flex;
align-items: center;
justify-content: center;
Expand Down Expand Up @@ -182,7 +183,7 @@ transition-duration:600ms ;
}
@media (max-width: 450px) {
.swiper {
width: 320px;
width: 280px;
height: 140px;
}
.carousel-slide-wrap {
Expand Down
2 changes: 1 addition & 1 deletion src/components/Carousel/Carousel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function Carousel({ langageState }) {
return (
<div className="carousel-container">
<div className="carousel-title">
{langageState ? "Nos Projets" : "Our Project"}
{langageState ? "Nos Projets" : "Our Projects"}
</div>

<div className="carousel-wrap">
Expand Down
176 changes: 153 additions & 23 deletions src/components/Navbar/Navbar.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
z-index: 1030;
display: flex;
width: 100%;
/* width: 70vw; */
height: 6em;
font-size: 14px;
font-weight: 600;
Expand Down Expand Up @@ -31,6 +32,7 @@
justify-content: center;
align-items: center;
width: 80%;
/* background-color: red; */
}
.nav-container {
width: 85%;
Expand Down Expand Up @@ -138,18 +140,60 @@

/* ---------------------------------------------------------------------------------------------- */

.switch-langage-container {
.navbar-switch-langage-container {
display: flex;
justify-content: flex-end;
flex-direction: row;
padding: 2px;
align-items: center;
justify-content: center;
right: 1%;
top: 6%;
top: 0px;
position: fixed;
}
.switch-langage-container div {
.navbar-contact-us {
/* background-color: red; */
text-decoration: none;
text-align: center;
color: white;
border-radius: 20px;
padding: 5px;
width: 120px;
height: 30px;
display: flex;
align-items: center;
justify-content: center;
/* text-align: center; */
border: white 2px solid;
/* height: 40px; */
position: relative;
position: fixed;
right: 25%;
top: 2%;
z-index: 10;
/* animation: jellow 2s ease 0s 1 normal forwards; */
}
.navbar-contact-us-notif {
width: 20px;
height: 20px;
border-radius: 50%;
background-color: red;
position: absolute;
display: flex;
justify-content: center;
align-items: center;
z-index: 5;
top: -10px;
right: -5px;
font-size: 10px !important;
animation: bounceIn 400ms both;
}
.navbar-contact-us:hover {
background-color: white;
color: blueviolet;
transition-duration: 300ms;
}
.navbar-switch-langage-container div {
height: 100%;
width: 100%;
/* background-color: blue; */
Expand All @@ -158,20 +202,20 @@
align-items: center;
font-size: 0.7em;
}
.switch {
.navbar-switch {
position: relative;
display: inline-block;
width: 24px;
height: 14px;
}

.switch input {
.navbar-switch input {
opacity: 0;
width: 0;
height: 0;
}

.slider {
.navbar-slider {
position: absolute;
cursor: pointer;
top: 0;
Expand All @@ -183,7 +227,7 @@
transition: 0.4s;
}

.slider:before {
.navbar-slider:before {
position: absolute;
content: "";
height: 11px;
Expand All @@ -195,28 +239,97 @@
transition: 0.4s;
}

input:checked + .slider {
input:checked + .navbar-slider {
background-color: rgb(61, 11, 108);
}

input:focus + .slider {
input:focus + .navbar-slider {
box-shadow: 0 0 1px rgb(61, 11, 108);
}

input:checked + .slider:before {
input:checked + .navbar-slider:before {
-webkit-transform: translateX(9px);
-ms-transform: translateX(9px);
transform: translateX(9px);
}

/* Rounded sliders */
.slider.round {
.navbar-slider.navbar-round {
border-radius: 34px;
}

.slider.round:before {
.navbar-slider.navbar-round:before {
border-radius: 50%;
}
@keyframes bounceIn {
0% {
transform: scale(0.2);
}
70% {
transform: scale(2);
}
100% {
transform: scale(1);
}
}
@keyframes jellow {
/* 0% {
transform: scale3d(1, 1, 1);
}
30% {
transform: scale3d(1.25, 0.75, 1);
}
40% {
transform: scale3d(0.75, 1.25, 1);
}
50% {
transform: scale3d(1.15, 0.85, 1);
}
65% {
transform: scale3d(0.95, 1.05, 1);
}
75% {
transform: scale3d(1.05, 0.95, 1);
}
100% {
transform: scale3d(1, 1, 1);
} */
0%,
100% {
transform: rotate(0deg);
transform-origin: 50% 50%;
}

10% {
transform: rotate(8deg);
}

20%,
40%,
60% {
transform: rotate(-10deg);
}

30%,
50%,
70% {
transform: rotate(10deg);
}

80% {
transform: rotate(-8deg);
}

90% {
transform: rotate(8deg);
}
}
/* ---------------------------------------------------------------------------------------------- */

@media (max-width: 767px) {
Expand All @@ -227,18 +340,36 @@ input:checked + .slider:before {
justify-content: center;
align-items: center;
}
.switch-langage-container {
.navbar-switch-langage-container {
right: 8%;
}
.navbar-contact-us {
display: none;
}
}
@media (max-width: 1080px) {
.navbar-contact-us {
top: 2.4%;
width: 80px;
height: 20px;
font-size: 10px;
}
.navbar-contact-us-notif {
width: 13px;
height: 13px;
top: -7px;
right: -2.5px;
font-size: 8px !important;
}
}
@media (min-width: 400px) {
.switch-langage-container{
.navbar-switch-langage-container {
/* top:5%;
right: 4% ; */
}
}
@media (min-width: 500px) {
.switch-langage-container{
.navbar-switch-langage-container {
right: 10%;
top: 4%;
padding: 2px;
Expand All @@ -250,7 +381,7 @@ input:checked + .slider:before {
display: flex;
justify-content: center;
}
.switch-langage-container {
.navbar-switch-langage-container {
display: flex;
justify-content: flex-end;
flex-direction: row;
Expand All @@ -261,7 +392,6 @@ input:checked + .slider:before {
top: 3.15%;
position: fixed;
}

}
@media (min-width: 850px) {
.navbar-list-container {
Expand All @@ -276,27 +406,27 @@ input:checked + .slider:before {
display: flex;
justify-content: center;
}
.switch-langage-container {
.navbar-switch-langage-container {
display: flex;
justify-content: flex-end;
flex-direction: row;
padding: 20px;
align-items: center;
justify-content: center;
right: 15%;
right: 8%;
top: 1%;
position: fixed;
}
.switch-langage-container div {
.navbar-switch-langage-container div {
font-size: 1em;
}
.switch {
.navbar-switch {
position: relative;
display: inline-block;
width: 48px;
height: 28px;
}
.slider:before {
.navbar-slider:before {
position: absolute;
content: "";
height: 21px;
Expand All @@ -307,7 +437,7 @@ input:checked + .slider:before {
-webkit-transition: 0.4s;
transition: 0.4s;
}
input:checked + .slider:before {
input:checked + .navbar-slider:before {
-webkit-transform: translateX(19px);
-ms-transform: translateX(19px);
transform: translateX(19px);
Expand Down
Loading

0 comments on commit e121696

Please sign in to comment.