-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexplore.html
333 lines (300 loc) · 9.96 KB
/
explore.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
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Transparent Reveal Box</title>
<!-- Google se font uthaya hai -->
<link href="https://fonts.googleapis.com/css2?family=Fira+Sans:wght@400;500;700&display=swap" rel="stylesheet">
<style>
body {
margin: 0;
font-family: 'Fira Sans', sans-serif;
background-color: #d4b89a;
display: flex;
flex-direction: column;
align-items: center;
padding: 0;
}
/* Navbar */
.navbar {
width: 100%;
background-color: #5c4033;
color: #fff;
padding: 10px 20px;
display: flex;
align-items: center;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}
.navbar .tab {
background-color: #7b5843;
color: #fff;
padding: 10px 25px;
border-radius: 15px;
font-size: 18px;
margin: 0 auto;
text-align: center;
}
.navbar .home-button {
background-color: #a5744b;
color: white;
border: none;
text-decoration: none;
padding: 8px 15px;
border-radius: 5px;
font-size: 14px;
cursor: pointer;
transition: background-color 0.3s ease;
text: color
}
.navbar .home-button:hover {
background-color: #8c5037;
}
.image-dabba_ka_dabba {
position: relative;
width: 100%;
max-width: 1000px;
height: 350px;
margin: 20px 0;
display: flex;
align-items: center;
justify-content: space-between;
}
.image-dabba {
position: relative;
width: 300px;
height: 100%;
overflow: hidden;
border-radius: 15px;
box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}
.image-dabba img {
width: 100%;
height: 100%;
object-fit: cover;
}
.bru_more-button {
display: none;
}
.text-panel {
position: absolute;
top: 0;
height: 100%;
width: calc(100% - 320px);
background: transparent;
color: #333;
padding: 20px;
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
opacity: 0;
transform: translateX(100%);
transition: transform 0.3s ease, opacity 0.3s ease;
}
.text-panel.left {
right: 0;
transform: translateX(-100%);
}
.text-panel.right {
left: 0;
transform: translateX(100%);
}
.text-panel h2 {
margin: 0 0 10px;
font-size: 24px;
}
.text-panel h3 {
font-size: 20px;
margin-top: 20px;
}
.text-panel ul {
list-style-type: disc;
margin-left: 20px;
}
.text-panel .feature-ingredients {
display: flex;
gap: 30px;
}
.more-button-label {
position: absolute;
bottom: 10px;
background-color: #7b5843;
color: #fff;
border: none;
padding: 10px 15px;
border-radius: 5px;
font-size: 14px;
cursor: pointer;
transition: background-color 0.3s ease;
}
.more-button-label:hover {
background-color: #5c4033;
}
.image-dabba_ka_dabba input:checked + .image-dabba + .text-panel {
transform: translateX(0);
opacity: 1;
}
.image-dabba_ka_dabba.right-side {
flex-direction: row-reverse;
}
</style>
</head>
<body>
<div class="navbar">
<button class="home-button"><a href="index.html">Home</a></button>
<div class="tab">Explore</div>
</div>
<!-- Image 1 -->
<div class="image-dabba_ka_dabba">
<input type="checkbox" class="bru_more-button" id="image1">
<div class="image-dabba">
<img src="Coffee1.jpg" alt="Image 1">
</div>
<div class="text-panel left">
<h2><pre>
Pal Pal Pineapple 50 gms
Premium Instant Coffee | Limited Edition <h2 style = "color: red ;"><pre> Rs. 499.00</pre></h2></pre></h2>
<div class="feature-ingredients">
<div>
<pre><h3> Key Features</h3></pre>
<ul>
<li>Keto-Friendly</li>
<li>Gluten-Free and Vegan</li>
<li>No Artificial Additives</li>
</ul>
</div>
<div>
<pre><h3> Ingredients</h3></pre>
<ul>
<li>Instant Coffee</li>
<li>Pineapple Flavoring</li>
<li>Natural Sweeteners</li>
</ul></pre>
</div>
</div>
</div>
<label for="image1" class="more-button-label">Bru More</label>
</div>
<!-- Image 2 -->
<div class="image-dabba_ka_dabba right-side">
<input type="checkbox" class="bru_more-button" id="image2">
<div class="image-dabba">
<img src="coffee2.jpg" alt="Image 2">
</div>
<div class="text-panel right">
<h2><pre>
Coffee Bliss 200 gms
Premium Arabica Blend | Smooth & Rich<h2 style = "color: red ;"><pre> Rs. 1848.00</pre></h2></pre></h2>
<div class="feature-ingredients">
<div>
<h3><pre> Key Features</pre></h3>
<ul>
<li>High-Quality Arabica Beans</li>
<li>Rich and Smooth Flavor</li>
<li>Rich in Antioxidants</li>
</ul>
</div>
<div>
<pre><h3> Ingredients</h3></pre>
<ul>
<li>Arabica Coffee Beans</li>
<li>Natural Flavorings</li>
</ul>
</div>
</div>
</div>
<label for="image2" class="more-button-label">Bru More</label>
</div>
<!-- Image 3 -->
<div class="image-dabba_ka_dabba">
<input type="checkbox" class="bru_more-button" id="image3">
<div class="image-dabba">
<img src="coffee3.jpg" alt="Image 3">
</div>
<div class="text-panel left">
<h2><pre>
Espresso Perfection 100 gms
Bold Espresso Blend | Dark Roasted<h2 style = "color: red ;"><pre> Rs. 429.00</pre></h2></pre></h2>
<div class="feature-ingredients">
<div>
<h3><pre> Key Features</pre></h3>
<ul>
<li>Single Origin Coffee</li>
<li>Perfect for Espresso</li>
<li>Strong Aroma</li>
</ul>
</div>
<div>
<pre><h3> Ingredients</h3></pre>
<ul>
<li>Espresso Beans</li>
<li>Natural Flavorings</li>
</ul>
</div>
</div>
</div>
<label for="image3" class="more-button-label">Bru More</label>
</div>
<!-- Image 4 -->
<div class="image-dabba_ka_dabba right-side">
<input type="checkbox" class="bru_more-button" id="image4">
<div class="image-dabba">
<img src="coffee4.jpg" alt="Image 4">
</div>
<div class="text-panel right">
<h2><pre>
Morning Brew 250 gms
Bold Arabica Coffee | Medium Roasted<h2 style = "color: red ;"><pre> Rs. 949.00</pre></h2></pre></h2>
<div class="feature-ingredients">
<div>
<h3><pre> Key Features</pre></h3>
<ul>
<li>Bold and Robust Flavor</li>
<li>Ground for Easy Use</li>
<li>Contains 100% Arabica Coffee</li>
</ul>
</div>
<div>
<pre><h3> Ingredients</h3></pre>
<ul>
<li>Arabica Coffee</li>
<li>Natural Sweeteners</li>
</ul>
</div>
</div>
</div>
<label for="image4" class="more-button-label">Bru More</label>
</div>
<!-- Image 5 -->
<div class="image-dabba_ka_dabba">
<input type="checkbox" class="bru_more-button" id="image5">
<div class="image-dabba">
<img src="coffee5.jpg" alt="Image 5">
</div>
<div class="text-panel left">
<h2><pre>
Latte Fusion 300 gms
Creamy Coffee Blend | For Lattes<h2 style = "color: red ;"><pre> Rs. 959.00</pre></h2></pre></h2>
<div class="feature-ingredients">
<div>
<h3><pre> Key Features</pre></h3>
<ul>
<li>Rich and Creamy Texture</li>
<li>Perfect for Lattes</li>
<li>No Added Sugar</li>
</ul>
</div>
<div>
<pre><h3> Ingredients</h3></pre>
<ul>
<li>Arabica Coffee</li>
<li>Non-Dairy Creamer</li>
</ul>
</div>
</div>
</div>
<label for="image5" class="more-button-label">Bru More</label>
</div>
</body>
</html>