Skip to content
Open

Hero #13

Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
36 commits
Select commit Hold shift + click to select a range
257a9f9
footer done
Rupam058 Apr 24, 2024
8b697ba
font-size changes
Rupam058 Apr 24, 2024
5e61efd
grid alignment changes on mobile
Rupam058 Apr 24, 2024
76706c7
landing page 1
Rupam058 Apr 26, 2024
d92ef27
landing page 2
Rupam058 Apr 26, 2024
87c7cde
landing page 3
Rupam058 Apr 26, 2024
1f2ea88
navbar changes
Rupam058 Apr 27, 2024
4610ae6
navbar changes 2
Rupam058 Apr 28, 2024
f8b927e
landing page 4
Rupam058 Apr 28, 2024
10dca75
changing navbar0
Rupam058 Apr 30, 2024
fe99db0
navbar changed
Rupam058 Apr 30, 2024
dfa482a
navbar changes 2
Rupam058 Apr 30, 2024
1939be6
minor change
Rupam058 Apr 30, 2024
23521aa
navbar
Rupam058 Apr 30, 2024
59366a0
testing
Rupam058 Apr 30, 2024
fe850eb
testing 2
Rupam058 Apr 30, 2024
899293b
testing3
Rupam058 Apr 30, 2024
9760709
testing4
Rupam058 Apr 30, 2024
00ccb88
testing 5
Rupam058 Apr 30, 2024
7dcceab
testing 6
Rupam058 Apr 30, 2024
eeab155
minor change
Rupam058 Apr 30, 2024
a8cea09
navbar check
Rupam058 Apr 30, 2024
c011855
card 1
Rupam058 May 4, 2024
2207737
card 2
Rupam058 May 6, 2024
e2c1281
card 3
Rupam058 May 6, 2024
9057c52
card 4
Rupam058 May 6, 2024
021a65b
card 5
Rupam058 May 7, 2024
a0d1459
card 6
Rupam058 May 7, 2024
fb22236
hero image
Rupam058 May 8, 2024
cc8d318
hero-check
Rupam058 May 8, 2024
d97cbf0
hero-check-2
Rupam058 May 9, 2024
289d6b5
font-change
Rupam058 May 11, 2024
886544c
Font color change
Rupam058 May 13, 2024
6c8ff95
Hero fixed
Rupam058 May 14, 2024
373c452
starting Carousel
Rupam058 May 15, 2024
492907a
card responsive
Rupam058 May 15, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions Design/Design1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions Design/chevron-back-outline.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions Design/chevron-forward-outline.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
65 changes: 65 additions & 0 deletions JS/script.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
function sticky_header() {
window.addEventListener("scroll", function () {
var header = document.querySelector("header");
header.classList.toggle("sticky", window.scrollY > 100);
});
}

function header_dropdown() {
const menuToggle = document.querySelector(".menu__toggle");
const links = document.querySelector(".links");
const nav = document.querySelector("nav");
const header = document.querySelector("header");

menuToggle.addEventListener("click", function () {
links.classList.toggle("open");
nav.classList.toggle("nav-open");
header.classList.toggle("head-open");
menuToggle.classList.toggle("active");
});

// ---------------------------------------------

const dropdown = document.querySelector(".dropdown");
const dropdownM = document.querySelector(".dropdown-menu");

dropdown.addEventListener("click", function () {
dropdownM.classList.toggle("dr-open");
});
}

function card_swiper() {
new Swiper(".slide-content", {
// slidesPerView: 3,
spaceBetween: 10,
loop: true,
centerSlide: "true",
fade: "true",
grabCursor: "true",
pagination: {
el: ".swiper-pagination",
clickable: true,
dynamicBullets: true,
},
navigation: {
nextEl: ".nav-right",
prevEl: ".nav-left",
},

breakpoints: {
0: {
slidesPerView: 1,
},
1300: {
slidesPerView: 2,
},
1700: {
slidesPerView: 3,
},
},
});
}

sticky_header();
header_dropdown();
card_swiper();
14 changes: 14 additions & 0 deletions JS/swiper-bundle.min.js

Large diffs are not rendered by default.

Binary file not shown.
Binary file not shown.
172 changes: 172 additions & 0 deletions css/Card.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,172 @@
/* -------- CARD Starts Here ------------- */

.carousel-body {
position: relative;
width: 100%;
height: 660px;
background: var(--gradient-2);

display: flex;
align-items: center;
justify-content: center;

color: var(--secondary-text);
/* font-family: "Poppins", sans-serif; */
padding: 0 50px;
}
.carousel {
flex-basis: 60%;
/* overflow: hidden; */
max-width: 1400px;
transition: all 300ms ease;
}
.carousel-info {
flex-basis: 40%;
}
.slide-container {
position: relative;
padding: 60px 0 30px;
width: 100%;
/* background: rgb(201, 198, 198); */
/* overflow: hidden; */
}
.slide-content {
margin: 0 60px;
/* background-color: red; */
overflow: hidden;
/* border-radius: 25px; */
}
.card {
/* width:320px; */
/* border-radius: 25px; */
/* background-color: #fff; */
}
.image-content,
.card-content {
position: relative;
display: flex;
flex-direction: column;
align-items: center;
/* padding: 10px 14px; */
}
.image-content {
padding: 10px 14px;
}
.card-image {
/* position: relative; */
height: 400px;
width: 400px;
/* border-radius: 50%; */
padding: 3px;
}
.card-image .card-img {
height: 100%;
width: 100%;

object-fit: cover;
border-radius: 20px;
}
.button {
border: none;
font-size: 20px;
color: var(--secondary-text);
padding: 8px 16px;

/* background: #4070f4; */
background: #34a05f;

border-radius: 6px;
margin: 14px;
cursor: pointer;
transition: all 0.3s ease;
}
.button:hover {
color: var(--primary-text);
/* background: #265df2; */
background: #2b7a4a;
}
.swiper-custom-nav {
position: absolute;
width: 100%;
display: flex;
justify-content: space-between;
top: 50%;
transform: translateY(-50%);
font-size: 4rem;

/* color: #4070f4; */
color: #34a05f;
}
.nav-left,
.nav-right {
cursor: pointer;
}
.nav-left:hover,
.nav-right:hover {
/* color: #265df2; */
color: #2b7a4a;
}
.swiper-pagination {
--swiper-theme-color: #34a05f;
}
.swiper-pagination-bullet {
opacity: 1;
}
.swiper-pagination-bullet-active {
opacity: 1;
}

.carousel-info {
padding: 0px 60px 40px;
position: relative;
}
.carousel-info h1 {
font-size: 3rem;
margin-bottom: 20px;
font-weight: 600;
}
.carousel-info p {
font-size: 1.2rem;
font-weight: 400;
}
@media only screen and (max-width: 1700px) {
.carousel {
max-width: 950px;
}
}
@media only screen and (max-width: 1300px) {
.carousel {
max-width: 550px;
}
.carousel-info {
padding: 0px 30px 40px;
}
}

@media only screen and (max-width: 820px) {
.carousel-body {
flex-direction: column;
height: auto;
}
.carousel,
.carousel-info {
flex-basis: 100%;
}
.carousel-info h1 {
font-size: 2.3rem;
}
.carousel-info p {
font-size: 1rem;
}
}

@media only screen and (max-width: 530px) {
.swiper-custom-nav {
display: none;
}
.carousel-info {
margin-bottom: 40px;
}
}

/* -------- CARD Ends Here ------------- */
Loading