|
21 | 21 | <link href="https://fonts.googleapis.com/css?family=Varela+Round" rel="stylesheet"> |
22 | 22 | <link href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i" rel="stylesheet"> |
23 | 23 |
|
24 | | - <!-- Custom styles for this template --> |
25 | | - <link href="css/grayscale.min.css" rel="stylesheet"> |
26 | | - |
27 | 24 | <!--Progressive Image Loading--> |
28 | 25 | <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/progressive-image.js/dist/progressive-image.css"> |
29 | 26 |
|
| 27 | + <!--Swiper Slider--> |
| 28 | + <link rel="stylesheet" href="https://unpkg.com/swiper/swiper-bundle.min.css" /> |
| 29 | + |
| 30 | + <!-- Custom styles for this template --> |
| 31 | + <link href="css/grayscale.min.css" rel="stylesheet"> |
| 32 | + |
| 33 | + <style> |
| 34 | + .swiper { |
| 35 | + width: 100%; |
| 36 | + height: 100%; |
| 37 | + } |
| 38 | + |
| 39 | + .swiper-slide { |
| 40 | + text-align: center; |
| 41 | + font-size: 18px; |
| 42 | + background: #fff; |
| 43 | + |
| 44 | + /* Center slide text vertically */ |
| 45 | + display: -webkit-box; |
| 46 | + display: -ms-flexbox; |
| 47 | + display: -webkit-flex; |
| 48 | + display: flex; |
| 49 | + flex-direction: column; |
| 50 | + -webkit-box-pack: center; |
| 51 | + -ms-flex-pack: center; |
| 52 | + -webkit-justify-content: center; |
| 53 | + justify-content: center; |
| 54 | + -webkit-box-align: center; |
| 55 | + -ms-flex-align: center; |
| 56 | + -webkit-align-items: center; |
| 57 | + align-items: center; |
| 58 | + |
| 59 | + margin-top: auto; |
| 60 | + margin-bottom: auto; |
| 61 | + } |
| 62 | + |
| 63 | + .swiper-slide img { |
| 64 | + display: block; |
| 65 | + width: 100%; |
| 66 | + height: 100%; |
| 67 | + object-fit: cover; |
| 68 | + } |
| 69 | + </style> |
30 | 70 | </head> |
31 | 71 |
|
32 | 72 | <body id="page-top"> |
@@ -106,10 +146,35 @@ <h2 class="text-center text-black-50">Projects</h2> |
106 | 146 | <!-- Featured Project Row --> |
107 | 147 | <div class="row align-items-center no-gutters mb-4 mb-lg-5"> |
108 | 148 | <div class="col-xl-8 col-lg-7"> |
109 | | - <a href="img/projects/OdooLauncher-Electron_reduced.gif" class="progressive replace"> |
| 149 | + <!-- <a href="img/projects/OdooLauncher-Electron_reduced.gif" class="progressive replace"> |
110 | 150 | <img src="img/projects/OdooLauncher-Electron_preview.png" class="img-fluid mb-3 mb-lg-0 preview" alt="project1" /> |
111 | | - </a> |
| 151 | + </a> --> |
112 | 152 | <!-- <img loading="lazy" class="img-fluid mb-3 mb-lg-0" src="img/projects/aqeeb_cool_blog.JPG" alt=""> --> |
| 153 | + <div class="swiper mySwiper"> |
| 154 | + <div class="swiper-wrapper"> |
| 155 | + <div class="swiper-slide"> |
| 156 | + <a href="img/projects/OdooLauncher-Electron.png" class="progressive replace"> |
| 157 | + <img src="img/projects/OdooLauncher-Electron_preview.png" class="img-fluid mb-3 mb-lg-0 preview" alt="project1" /> |
| 158 | + </a> |
| 159 | + <p>Vanilla JS</p> |
| 160 | + </div> |
| 161 | + <div class="swiper-slide"> |
| 162 | + <a href="img/projects/OdooLauncher-ElectronReact.png" class="progressive replace"> |
| 163 | + <img src="img/projects/OdooLauncher-ElectronReact-preview.png" class="img-fluid mb-3 mb-lg-0 preview" alt="project1" /> |
| 164 | + </a> |
| 165 | + <p>React JS</p> |
| 166 | + </div> |
| 167 | + <div class="swiper-slide"> |
| 168 | + <a href="img/projects/OdooLauncher-Electron_reduced.gif" class="progressive replace"> |
| 169 | + <img src="img/projects/OdooLauncher-Electron_preview.png" class="img-fluid mb-3 mb-lg-0 preview" alt="project1" /> |
| 170 | + </a> |
| 171 | + </div> |
| 172 | + <!-- <div class="swiper-slide">Demo Slide</div> --> |
| 173 | + </div> |
| 174 | + <div class="swiper-pagination"></div> |
| 175 | + <div class="swiper-button-next"></div> |
| 176 | + <div class="swiper-button-prev"></div> |
| 177 | + </div> |
113 | 178 | </div> |
114 | 179 | <div class="col-xl-4 col-lg-5"> |
115 | 180 | <div class="featured-text text-center text-lg-left"> |
@@ -268,6 +333,22 @@ <h4 class="text-uppercase m-0">Phone</h4> |
268 | 333 | <!--Progressive Image Loading--> |
269 | 334 | <script defer src="https://cdn.jsdelivr.net/npm/progressive-image.js/dist/progressive-image.js"></script> |
270 | 335 |
|
| 336 | + <!--Swiper Slider--> |
| 337 | + <script src="https://unpkg.com/swiper/swiper-bundle.min.js"></script> |
| 338 | + <!-- Initialize Swiper --> |
| 339 | + <script> |
| 340 | + const swiper = new Swiper(".mySwiper", { |
| 341 | + pagination: { |
| 342 | + el: ".swiper-pagination", |
| 343 | + dynamicBullets: true |
| 344 | + }, |
| 345 | + navigation: { |
| 346 | + nextEl: ".swiper-button-next", |
| 347 | + prevEl: ".swiper-button-prev" |
| 348 | + } |
| 349 | + }); |
| 350 | + </script> |
| 351 | + |
271 | 352 | </body> |
272 | 353 |
|
273 | 354 | </html> |
0 commit comments