Assignment-123/css/swiper.css

212 lines
3.7 KiB
CSS
Raw Permalink Normal View History

2024-12-31 06:58:41 +00:00
@import url('https://fonts.googleapis.com/css2?family=Jost:wght@100..900&display=swap');
*,
*::before,
*::after {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
/* display: flex;
align-items: center;
justify-content: center; */
height: 100%;
background-color: white;
}
.swipecontainer .heading p{
text-align: center;
}
.swiper-slide img {
display: block;
width: 100%;
height: 100%;
}
.swipecontainer {
width: 100%;
margin-top: 8rem;
margin-bottom: 2rem;
}
.swipecontainer p{
color: #000;
}
.swiper {
width: 100%;
padding: 50px 0;
margin-top: 3rem;
}
.swiper-slide {
position: relative;
aspect-ratio: 3.5/4;
border-radius: 12px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
cursor: grab;
user-select: none;
overflow: hidden;
max-width: 300px;
height: 300px;
}
.swiper-slide img {
object-fit: cover;
pointer-events: none;
width: 100%;
height: 100%;
}
.caption {
position: absolute;
left: 0;
bottom: 0;
width: 100%;
height: 70px;
background-color: rgba(0, 0, 0, 0.7);
color: #e2e2e2;
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
transform: translateY(70px);
transition: transform 1s ease;
}
.swiper-slide:hover .caption {
transform: translateY(0);
}
h1 {
font-size: 1.2rem;
letter-spacing: 1px;
}
.swipecontainer p {
font-size: 2.5rem;
font-weight: 800;
}
.swiper-wrapper {
transition-timing-function: linear !important;
}
/* featured projects slider */
.featured-projects-container {
display: flex;
justify-content: space-between;
align-items: center;
padding: 20px;
max-width: 100%;
}
.image-slider {
width: 60%;
margin-bottom: 6rem;
}
.image-slider .slick-slide {
background-size: cover;
background-position: center;
width: 100%;
display: flex;
justify-content: center;
gap: 30px;
}
.image-slider img {
width: 300px;
height: 300px;
object-fit: cover;
}
.content-slider {
width: 35%;
padding: 10px;
background-color: white;
border-radius: 8px;
height: 300px;
overflow: hidden;
}
.content-slider .slide {
height: 100%;
display: flex;
align-items: center;
justify-content: center;
text-align: center;
overflow: hidden;
}
.content-slider .slide h2 {
font-size: 2rem;
color: #000;
margin-bottom: 10px;
}
.slide {
max-width: 100%;
}
.content-slider .slide p {
font-size: 17px;
color: #333;
}
.content-slider .slick-slide {
display: none;
opacity: 0;
transition: opacity 0.3s ease-in-out;
}
.content-slider .slick-active {
opacity: 1;
}
/* featured projects section title */
.project-section-title {
text-align: center;
font-family: "Roboto", serif;
margin: 10px 0px;
}
.project-section-title h2 {
margin: 0px 0px;
font-size: 3rem
}
.project-section-title span{
color: #000000;
}
.project-section-title p {
font-size: 1.1rem;
margin-top: 10px;
margin-bottom: 50px;
}
.slick-images img {
display: flex;
justify-content: center;
align-items: center;
}
/* new */
@media (min-width: 769px) and (max-width: 1400px) {
.slick-images img {
width: 200px;
height: 200px;
gap: 80px;
}
}
@media (max-width: 768px) {
.featured-projects-container {
display: none;
}
}