-
Notifications
You must be signed in to change notification settings - Fork 0
/
museum.html
364 lines (313 loc) · 9.3 KB
/
museum.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
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link href="https://fonts.googleapis.com/css2?family=Lateef:wght@200;300;400;500;600;700;800&display=swap"
rel="stylesheet" />
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Greco-Roman Museum</title>
<link rel="stylesheet" href="https://unpkg.com/leaflet/dist/leaflet.css" />
<script src="https://unpkg.com/leaflet/dist/leaflet.js"></script>
<style>
body {
margin: 0;
padding: 0;
font-family: "Lateef", serif;
background-image: url("https://i.pinimg.com/564x/17/97/45/179745a3ef2508595c382f04fee5451a.jpg");
/* Background image URL */
background-size: cover;
background-position: center;
background-attachment: fixed;
/* Fixed background */
}
* {
margin: 0;
box-sizing: border-box;
}
.nav {
position: fixed;
top: 0;
left: 0;
right: 0;
z-index: 2;
display: flex;
justify-content: space-between;
padding: 0 15%;
background-color: transparent;
transition: background-color 0.3s ease;
height: 10vh;
color: white;
}
.nav.scrolled {
background-color: rgb(0, 0, 0, 0.8);
color: white;
}
.nav_items {
display: flex;
justify-content: space-between;
align-self: center;
}
.items {
width: 20%;
display: flex;
justify-content: space-between;
}
.nav_items li {
cursor: pointer;
list-style: none;
}
.logo {
width: 15%;
}
.logo img {
width: 100%;
}
.nav_items a {
text-decoration: none;
color: white;
padding: 0px 20px;
margin-right: 10px;
font-size: 24px;
}
#map-container {
height: 100vh;
/* Adjust the height as needed */
width: 101%;
background-color: rgba(0, 0, 0, 0.5);
/* Black with 50% transparency */
display: flex;
justify-content: center;
align-items: center;
z-index: 0;
/* Ensure it's behind other content */
}
#map {
height: 70%;
width: 90%;
margin-top: 25vh;
/* Adjust the margin top */
z-index: 0;
/* Ensure it's behind other content */
}
.title {
position: absolute;
top: 100px;
right: 20px;
font-size: 60px;
/* Adjust the font size as needed */
color: white;
}
/* Added styles for colored paragraphs */
.colored-paragraphs {
display: flex;
flex-direction: column;
justify-content: space-between;
align-items: center;
height: 150vh;
/* Height of the colored paragraphs container */
color: white;
/* Text color */
font-size: 60px;
/* Adjust font size as needed */
}
.red-paragraph,
.blue-paragraph,
.green-paragraph {
display: flex;
justify-content: flex-end;
/* Align text to the right */
align-items: center;
/* Center vertically */
height: 100vh;
/* Height of each paragraph */
width: 101%;
padding-right: 20px;
/* Add padding to the right */
}
/* Style for the text in the middle */
.middle-text {
text-align: center;
flex-grow: 1;
/* Allow the text to grow and occupy the available space */
font-size: 35px;
/* Adjust font size as needed */
}
.left-image1 {
text-align: left;
flex-grow: 1;
/* Allow the text to grow and occupy the available space */
padding-left: 100px;
/* Add padding to the right */
}
.left-image2 {
text-align: left;
flex-grow: 1;
/* Allow the text to grow and occupy the available space */
padding-left: 250px;
/* Add padding to the right */
}
.red-paragraph span,
.blue-paragraph span,
.green-paragraph span {
margin-right: auto;
/* Push the span to the right */
}
.red-paragraph {
background-color: #d0c7c2;
}
.blue-paragraph {
background-color: #4b342c;
}
.green-paragraph {
background-color: #d0c7c2;
}
/* & START FOOTER STYLE */
footer {
font-size: 20px;
color: white;
padding: 3% 5%;
background-color: rgba(0, 0, 0, 0.8);
display: flex;
justify-content: center;
width: 100%;
}
.footer h5 {
font-size: 30px;
margin-bottom: 5px;
color: rgb(180, 160, 119);
}
.footer ul {
display: flex;
justify-content: space-evenly;
}
.footer li {
margin: 20px;
}
.footer p {
text-align: center;
}
.footer a {
text-decoration: none;
color: rgb(180, 160, 119);
}
.footer .about_us {
margin-top: 15px;
}
/* & END FOOTER STYLE */
</style>
</head>
<body>
<nav>
<div class="nav">
<div class="items">
<ul class="nav_items">
<li><a href="./index.html">الرئيسية</a></li>
<li><a href="./AboutUS.html"> المتحف</a></li>
<li><a href="./museum.html">التذاكر</a></li>
</ul>
</div>
<div class="logo">
<img src="images/logo.jpg" alt="logo">
</div>
</div>
</nav>
<div id="map-container">
<div id="map"></div>
<!-- Map -->
<div class="title">المتحف اليوناني الروماني</div>
<!-- Title -->
</div>
<!-- Colored paragraphs -->
<div class="colored-paragraphs">
<div class="red-paragraph">
<div class="middle-text">
<p>من</p>
<p>٩:٠٠ صباحًا</p>
<p>إلي</p>
<p>٥:٠٠ مساءً</p>
</div>
<div class="left-image2">
<img src="images/clock.png" alt="Clock" />
</div>
<div>ساعات العمل</div>
</div>
<div class="blue-paragraph">
<div class="middle-text">
<p>: أجنبي</p>
<p>كبار: 300ج.م/ طلبة: 150ج.م</p>
<p>: مصري/ عربي</p>
<p>كبار: 40ج.م/ طلبة : 20ج.م</p>
</div>
<div class="left-image1">
<img src="images/tickets.png" alt="Tickets" />
</div>
<div>أسعار التذاكر</div>
</div>
<div class="green-paragraph">
<div class="middle-text">
<ul>
<li>لا يسمح بإحضار طعام ومشروبات من الخارج •</li>
<li>
يُسمح بالتصوير الشخصي غير المهني وغير التجاري باستخدام الكاميرات
المحمولة الصغيرة والهواتف المحمول •
</li>
<li>
يحظر استخدام معدات التصوير الاحترافية، والكاميرات ذات العدسات
القابلة للإزالة، وأضواء التصوير، والحوامل، والكاميرات الطائرة •
</li>
<li>جميع الحجوزات غير قابلة للتحويل وغير قابلة للاسترداد •</li>
</ul>
</div>
<div>الأرشادات</div>
</div>
<footer>
<div class="footer">
<p>جميع حقوق النشر محفوظة وزارة الآثار- مصر ٢٠١٩ </p>
<p> لتحميل مطوية المتحف اليوناني الروماني <a href="./بروشور-المتحف-اليوناني-عربي.pdf">اضغط هنا</a></p>
<p class="about_us">هذا الموقع تم بواسطة</p>
<ul>
<li>جهاد مدحت</li>
<li> رنا أحمد </li>
<li>عائشة إبراهيم</li>
</ul>
</div>
</footer>
</div>
<script>
var map = L.map("map").setView(
[31.199183137917828, 29.906597101452036],
15
); // Set center to Greco-Roman Museum with zoom level 15
L.tileLayer("https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png", {
attribution:
'© <a href="https://www.openstreetmap.org/copyright">OpenStreetMap</a> contributors',
}).addTo(map);
var museumIcon = L.icon({
iconUrl: "https://leafletjs.com/examples/custom-icons/leaf-red.png",
iconSize: [25, 41],
iconAnchor: [12, 41],
popupAnchor: [1, -34],
shadowUrl:
"https://leafletjs.com/examples/custom-icons/leaf-shadow.png",
shadowSize: [41, 41],
});
var marker = L.marker([31.199183137917828, 29.906597101452036]).addTo(
map
);
marker
.bindPopup("<b>Greco-Roman Museum</b><br>Alexandria, Egypt.")
.openPopup();
// & S C R O L L N A V B A R
window.addEventListener('scroll', function () {
const navbar = document.querySelector('.nav');
if (window.scrollY > 50) { // Change 50 to the desired scroll threshold
navbar.classList.add('scrolled');
} else {
navbar.classList.remove('scrolled');
}
});
</script>
</body>
</html>