-
Notifications
You must be signed in to change notification settings - Fork 585
/
loc.html
124 lines (110 loc) · 3.94 KB
/
loc.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Local Events & Festivals</title>
<style>
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f4f4f4;
}
/* Gradient header */
header {
background: linear-gradient(45deg, #6a0dad, #2f73d9); /* Purple to dark blue gradient */
color: white;
padding: 1em;
text-align: center;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Add shadow to the header */
}
#events {
display: flex;
flex-wrap: wrap;
justify-content: center;
padding: 2em;
}
/* Styling event cards */
.event-card {
background-color: white;
border: none;
border-radius: 12px;
margin: 15px;
padding: 15px;
width: 320px;
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
transition: transform 0.3s ease, box-shadow 0.3s ease;
}
/* Hover effect for cards */
.event-card:hover {
transform: translateY(-8px); /* Lift the card on hover */
box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2); /* Increase shadow on hover */
}
.event-card img {
width: 100%;
height: auto;
border-radius: 12px 12px 0 0; /* Round the top corners */
}
.event-card h2 {
font-size: 1.6em;
color: #6a0dad; /* Use purple for titles */
margin: 10px 0;
}
.event-card p {
font-size: 1em;
margin-bottom: 10px;
color: #333;
}
.event-card .date {
font-weight: bold;
color: #2f73d9; /* Use dark blue for the date */
margin-bottom: 10px;
}
</style>
</head>
<body>
<header>
<h1>Discover Local Events & Festivals</h1>
</header>
<section id="events">
<!-- Events will be dynamically inserted here -->
</section>
<script>
document.addEventListener("DOMContentLoaded", () => {
const events = [
{
title: "Paris Marathon",
date: "13 April 2025",
description: "Join us to run the largest path with enthusiasm and enjoy the marathon.",
image: "https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcSLgjtGK_igiNGcVfS_CAGFgC0-afxp7pKDVQ&s"
},
{
title: "Dubai International Film Festival",
date: "19 June 2024",
description: "Celebrate the Film Festival with amazing performance of famous artists.",
image: "https://variety.com/wp-content/uploads/2018/04/15th-edition-of-the-region_s-leading-film-festival-to-be-held-in-2019.jpg"
},
{
title: "Goa Carnival",
date: "9th to 13th February 2024",
description: "Experience the magic of Goan culture, food and festival vibes.",
image: "https://upload.wikimedia.org/wikipedia/en/1/1f/Goa_Carnaval.jpg"
}
];
const eventsSection = document.getElementById("events");
events.forEach(event => {
const eventCard = document.createElement("div");
eventCard.className = "event-card";
eventCard.innerHTML = `
<img src="${event.image}" alt="${event.title}">
<h2>${event.title}</h2>
<p class="date">${event.date}</p>
<p>${event.description}</p>
`;
eventsSection.appendChild(eventCard);
});
});
</script>
</body>
</html>