-
Notifications
You must be signed in to change notification settings - Fork 0
/
bhopal.html
118 lines (100 loc) · 4.44 KB
/
bhopal.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Image Slider</title>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://cdn.jsdelivr.net/npm/[email protected]/fonts/remixicon.css" rel="stylesheet" />
<style>
.slides {
display: flex;
transition: transform 0.5s ease-in-out;
}
.slide {
min-width: 100%;
}
.slider-container {
position: relative;
overflow: hidden;
}
.activity-container {
display: flex;
justify-content: space-between;
align-items: flex-start;
gap: 20px;
}
.price {
background-color: #3b82f6;
color: white;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
border-radius: 8px;
padding: 20px;
height: 100%;
}
</style>
</head>
<body class="bg-gray-100">
<div class="main px-4">
<div>
<h1 class="text-4xl md:text-6xl text-center my-10">1-Day Trip from Sanchi to Bhopal</h1>
</div>
<div class="slider-container relative w-full max-w-5xl mx-auto overflow-hidden mb-10">
<div id="slides" class="slides">
<img class="slide" src="https://i.ytimg.com/vi/xLPvmUe2rvk/maxresdefault.jpg" alt="">
<img class="slide" src="https://media2.thrillophilia.com/images/photos/000/218/213/original/1586328146_Sanchi_Stupa__Sanchi.jpg?" alt="">
<img class="slide" src="https://www.trawell.in/admin/images/upload/164055285Indore_main1.jpg" alt="Image 3">
<img class="slide" src="https://media.assettype.com/outlooktraveller%2Fimport%2Foutlooktraveller%2Fpublic%2Fuploads%2Farticles%2Ftravelnews%2FBhopal_lake.jpg?w=1200&auto=format%2Ccompress&fit=max" alt="">
</div>
</div>
<div class="w-full max-w-3xl mx-auto">
<p class="text-xl text-center mt-10 font-semibold">Take a one day to visit Sanchi Stupa, the ancient cave of Udayagiri, Lake View, and explore UNESCO World Heritage Sites.</p>
</div>
<div class="activity-container my-10 px-4">
<div class="activity w-3/4">
<h1 class="text-3xl font-bold mb-5">About this activity</h1>
<div class="flex items-center mb-3">
<i class="ri-calendar-close-line text-3xl text-green-500 mr-3"></i>
<h3 class="text-lg text-green-500 font-semibold">Free cancellation</h3>
</div>
<p class="text-lg font-medium text-red-500 mb-5">Cancel up to 24 hours before the activity</p>
<div class="flex items-start mb-5">
<i class="ri-reserved-line text-3xl text-blue-500 mr-3"></i>
<div>
<a class="text-blue-500 text-lg font-semibold" href="#">Reserve now & pay later</a>
<p class="text-lg mt-1 text-gray-600">Keep your travel plans flexible - book your spot and pay nothing today.</p>
</div>
</div>
<div class="flex items-start">
<i class="ri-calendar-check-line text-3xl text-blue-500 mr-3"></i>
<div>
<a class="text-blue-500 text-lg font-semibold" href="#">Check your Accommodations</a>
<p class="text-lg mt-1 text-gray-600">Keep your travel plans flexible</p>
</div>
</div>
</div>
<!-- Price Section -->
<div class="price w-1/4 h-[40vh]">
<span class="text-2xl font-bold">Price Info</span>
</div>
</div>
</div>
<script>
const slides = document.getElementById('slides');
let index = 0;
const slideCount = slides.children.length;
const slideWidth = slides.clientWidth;
function showSlide(index) {
slides.style.transform = `translateX(${-index * slideWidth}px)`;
}
function nextSlide() {
index = (index + 1) % slideCount;
showSlide(index);
}
setInterval(nextSlide, 5000);
</script>
</body>
</html>