Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: BUG UI Enhancement of Image Gallery #761

Merged
merged 2 commits into from
Jun 6, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
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
25 changes: 25 additions & 0 deletions imstyle.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
.hero{
width:100%;
height:90vh;
background: white;
overflow: hidden;
}
.hero .carousel{
width:300px;
margin:100px auto 0;
overflow:visible;
}
.carousel img{
-webkit-box-reflect: below 20px linear-gradient(rgba(255,255,255,0.1),rgba(255,255,255,0.3));
width:600px;
height:400px;
}
.dark-theme .hero{
background:#0e1525;
}
@media screen and (max-width:500px) {
.carousel img{
width:250px;
height: 200px;
}
}
73 changes: 45 additions & 28 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,8 @@
}
}
</style>

<link rel="stylesheet" href="imstyle.css">
<link rel="stylesheet" href="jquery.flipster.min.css">

</head>

Expand Down Expand Up @@ -545,35 +546,51 @@ <h2 class="section__title">Best trip packages</h2>
</div>
</div>
</section>
<div class="hero">
<div class="carousel">
<ul>
<li><img src="https://i.ibb.co/ZYDJ6vv/pexels-spencer-davis-4356144.jpg"></li>
<li><img src="https://i.ibb.co/W3HTbYG/pexels-zakaria-boumliha-2827374.jpg"></li>
<li><img src="https://i.ibb.co/KwHd8PQ/pexels-stijn-dijkstra-2499699.jpg"></li>
<li><img src="https://www.shutterstock.com/image-photo/attractive-young-female-tourist-exploring-260nw-2206967581.jpg"></li>
<li><img src="https://thumbs.dreamstime.com/b/young-man-tourist-sail-long-tail-thailand-boat-ocean-sea-vacation-travel-trip-beautiful-nature-87331931.jpg"></li>
<li><img src="https://www.tourmyindia.com/blog//wp-content/uploads/2020/11/Feature-Akshardham-Temple.jpg"></li>
<li><img src="https://etimg.etb2bimg.com/photo/106124800.cms"></li>
<li><img src="https://i.insider.com/5dcc2f02e94e860aff271137?width=700"></li>
<li><img src="https://static01.nyt.com/images/2022/03/23/multimedia/23-virus-briefing-capitol/23-virus-briefing-capitol-articleLarge.jpg?quality=75&auto=webp&disable=upscale"></li>
<li><img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcTWh9aGHycWhRya4V6ZiJFL26LyIHheiu-EoQ&s"></li>

</ul>
</div>



</div>

<section class="gallary" id="ReviewGallery">
<div class="section__container gallary__container">
<div class="section__container gallary__container" id="originalDiv">
<div class="image__gallary">
<div class="gallary__col" data-aos="zoom-in">
<img src="https://i.ibb.co/ZYDJ6vv/pexels-spencer-davis-4356144.jpg" alt="gallary" />
</div>
<div class="gallary__col" data-aos="zoom-in">
<img src="https://i.ibb.co/W3HTbYG/pexels-zakaria-boumliha-2827374.jpg" alt="gallary" />
<img src="https://i.ibb.co/KwHd8PQ/pexels-stijn-dijkstra-2499699.jpg" alt="gallary" />
</div>
</div>
<div class="gallary__content">
<div>
<h2 class="section__title" data-aos="zoom-in">
Our trip gallery that will inspire you
</h2>
<p class="section__subtitle" data-aos="zoom-in">
Explore your suitable and dream places around the world. Here you
can find your right destination.
</p>
<button class="btn btn-style" id="btn-page" onclick="replaceDivs()" data-aos="zoom-in"
style="box-shadow: 2px 2px 8px rgb(0, 191, 255);">View All</button>
</div>
</div>
</div>
</div>
<script
src="https://code.jquery.com/jquery-3.7.1.min.js"
integrity="sha256-/JqT3SQfawRcv/BIHPThkBvs0OEvtFFmqPF/lYI/Cxo="
crossorigin="anonymous"></script>
<script src="jquery.flipster.min.js"></script>
<script>
$('.carousel').flipster({
style:'carousel',
spacing: -0.3,
});
</script>
<div class="gallary__content" style="margin-top: 10px;width:80%">
<div>
<h2 class="section__title" data-aos="zoom-in">
Our trip gallery that will inspire you
</h2>
<p class="section__subtitle" data-aos="zoom-in">
Explore your suitable and dream places around the world. Here you
can find your right destination.
</p>
<button class="btn btn-style" id="btn-page" onclick="replaceDivs()" data-aos="zoom-in"
style="box-shadow: 2px 2px 8px rgb(0, 191, 255);">View All</button>
</div>
</div>
<br><br>
<!-- New div components (hidden initially) -->
<div id="newDiv" style="display: none;" data-aos="zoom-in">
Expand Down
1 change: 1 addition & 0 deletions jquery.flipster.min.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions jquery.flipster.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading