-
Notifications
You must be signed in to change notification settings - Fork 1
/
section.html
261 lines (242 loc) · 10.1 KB
/
section.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<!-- for social media sharing links -->
<meta name="theme-color" content="#439299" />
<meta property="og:description" content="description" />
<meta property="og:title" content="Adsamy" />
<meta property="og:type" content="website" />
<meta property="og:url" content="website link" />
<meta property="og:image" content="website image" />
<!-- bootstrap -->
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"
rel="stylesheet"
integrity="sha384-EVSTQN3/azprG1Anm3QDgpJLIm9Nao0Yz1ztcQTwFspd3yD65VohhpuuCOmLASjC"
crossorigin="anonymous"
/>
<!-- scss -->
<link rel="stylesheet" href="./scss/main.css" />
<!-- css -->
<link rel="stylesheet" href="./css/style.css" />
<!-- swiper -->
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/swiper@8/swiper-bundle.min.css"
/>
<title>ADSAMY</title>
<!-- jquery -->
<script
src="https://code.jquery.com/jquery-3.6.3.min.js"
integrity="sha256-pvPw+upLPUjgMXY0G+8O0xUf+/Im1MZjXxxgOcBQBXU="
crossorigin="anonymous"
></script>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js" integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r" crossorigin="anonymous"></script>
<!-- bootstrap -->
<script
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js"
integrity="sha384-MrcW6ZMFYlzcLA8Nl+NtUVF0sA7MsXsP1UyJoMp4YLEuNSfAP+JcXn/tWtIaxVXM"
crossorigin="anonymous"
></script>
</head>
<body>
<!-- Navbar Include -->
<nav class="navbar sticky-top navbar-expand-lg bg-dark-blue text-white py-2" id="navbar_container"></nav>
<!-- --Navbar Include -->
<section class=" d-flex flex-column-reverse flex-md-row">
<div class="swiper marketingSwiper">
<div class="swiper-wrapper">
<div
class="swiper-slide d-flex align-items-center "
style="background:linear-gradient(180deg, rgba(114,9,183,0) 0%, rgba(6,12,19,1) 100%), url(./imgs/section/background.png);"
>
<div class="row slide-row">
<div class="col-md-7 ">
<div
class="d-flex flex-column justify-content-center align-items-start h-100 ps-5"
>
<h2 class="text-white fs-1 pb-2">adsamy Media</h2>
<p class="text-white pb-2">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed
do eiusmod tempor incididunt ut labore et dolore magna
aliqua. Ut enim ad minim veniam, quis nostrud exercitation
ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit
esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
occaecat cupidatat non proident, sunt in culpa qui officia
deserunt mollit anim id est laborum.
</p>
<button class="btn click-btn text-white">click here</button>
</div>
</div>
</div>
</div>
<div
class="swiper-slide d-flex align-items-center "
style="background:linear-gradient(180deg, rgba(114,9,183,0) 0%, rgba(6,12,19,1) 100%), url(./imgs/section/background\ \(2\).png);"
>
<div class="row slide-row">
<div class="col-md-7 ">
<div
class="d-flex flex-column justify-content-center align-items-start h-100 ps-5"
>
<h2 class="text-white fs-1 pb-2">lorem ipsum</h2>
<p class="text-white pb-2">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed
do eiusmod tempor incididunt ut labore et dolore magna
aliqua. Ut enim ad minim veniam, quis nostrud exercitation
ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit
esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
occaecat cupidatat non proident, sunt in culpa qui officia
deserunt mollit anim id est laborum.
</p>
<button class="btn click-btn text-white">click here</button>
</div>
</div>
</div>
</div>
<div
class="swiper-slide d-flex align-items-center "
style="background:linear-gradient(180deg, rgba(114,9,183,0) 0%, rgba(6,12,19,1) 100%), url(./imgs/section/background\ \(2\).png);"
>
<div class="row slide-row">
<div class="col-md-7 ">
<div
class="d-flex flex-column justify-content-center align-items-start h-100 ps-5"
>
<h2 class="text-white fs-1 pb-2">Hello Hello</h2>
<p class="text-white pb-2">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed
do eiusmod tempor incididunt ut labore et dolore magna
aliqua. Ut enim ad minim veniam, quis nostrud exercitation
ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit
esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
occaecat cupidatat non proident, sunt in culpa qui officia
deserunt mollit anim id est laborum.
</p>
<button class="btn click-btn text-white">click here</button>
</div>
</div>
</div>
</div>
</div>
<div class="swiper-pagination marketingSwiper-pagination"></div>
<div class="swiper-button-prev">
<i class="fa-solid fa-arrow-left"></i>
</div>
<div class="swiper-button-next">
<i class="fa-solid fa-arrow-right"></i>
</div>
</div>
<div class="inner-swiper-container">
<div class="row vw-100 ">
<div class="col-md-7"></div>
<div class="col-md-5 p-5 px-md-0 pb-5">
<div class="swiper inner-swiper">
<div class="swiper-wrapper">
<div class="swiper-slide ">
<img
src="./imgs/section/img1 (1).webp"
class="w-100"
alt=""
/>
</div>
<div class="swiper-slide ">
<img
src="./imgs/section/img1 (3).webp"
class="w-100"
alt=""
/>
</div>
<div class="swiper-slide ">
<img
src="./imgs/section/img1 (2).webp"
class="w-100"
alt=""
/>
</div>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- Footer Include -->
<footer class="text-center mt-0 text-lg-start text-white" style="background-color: #1b2b44;" id="footer_container"></footer>
<!-- --Footer Include -->
<script
src="https://kit.fontawesome.com/5b9061b1a3.js"
crossorigin="anonymous"
></script>
<script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script>
<!-- dynamic load fixed parts -->
<script src="./js/load_fixed_parts.js" crossorigin="anonymous"></script>
<script>
//* Add click event to .right-img to move to the next slide
// document.querySelectorAll('.right-img').forEach(img => {
// img.addEventListener('click', () => {
// swiper.slideNext();
// });
// });
</script>
<script>
document.addEventListener('DOMContentLoaded', function () {
// Initialize outer Swiper
var outerSwiper = new Swiper('.marketingSwiper', {
loop: true,
pagination: {
el: ".marketingSwiper-pagination",
clickable: true,
},
slidesPerView: 1,
effect: 'fade',
fadeEffect: {
crossFade: true
},
navigation: {
nextEl: '.swiper-button-next',
prevEl: '.swiper-button-prev',
},
});
// Initialize inner Swiper
var innerSwiper = new Swiper('.inner-swiper', {
spaceBetween: 10,
loop: true,
slidesPerView: "auto",
on: {
slideChangeTransitionStart: function () {
var slides = this.slides;
var activeIndex = this.activeIndex;
var prevIndex = activeIndex - 1;
// Remove the class from all slides
slides.forEach(function (slide) {
slide.classList.remove('prev-slide');
});
// Add the class to the previous slide
if (prevIndex >= 0) {
slides[prevIndex].classList.add('prev-slide');
}
},
slideChangeTransitionEnd: function () {
var slides = this.slides;
var activeIndex = this.activeIndex;
var prevIndex = activeIndex - 1;
// Remove the class from the previous slide after the transition ends
if (prevIndex >= 0) {
slides[prevIndex].classList.remove('prev-slide');
}
}
}
});
// Link the swipers using controller
outerSwiper.controller.control = innerSwiper;
innerSwiper.controller.control = outerSwiper;
});
</script>
</body>
</html>