Here’s a simple example of how to present a music festival lineup using HTML, CSS, and JavaScript. This example will include the lineup, ticket info, and some highlights of the festival.
HTML (index.html)
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Music Festival 2024</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<header>
<h1>Music Festival 2024</h1>
<p>Your ultimate music experience!</p>
</header>
<section id="lineup">
<h2>Lineup</h2>
<ul>
<li>The Headliners</li>
<li>Band A</li>
<li>Band B</li>
<li>Band C</li>
<li>DJ X</li>
<li>Artist Y</li>
<li>Band D</li>
</ul>
</section>
<section id="ticket-info">
<h2>Ticket Information</h2>
<p>Early Bird: $99</p>
<p>Regular: $129</p>
<p>VIP: $199</p>
<button id="buy-tickets">Buy Tickets</button>
</section>
<section id="highlights">
<h2>Festival Highlights</h2>
<ul>
<li>Live performances from top artists</li>
<li>Food trucks featuring local cuisine</li>
<li>Art installations and interactive experiences</li>
<li>After-parties with top DJs</li>
<li>Camping options available!</li>
</ul>
</section>
<footer>
<p>© 2024 Music Festival. All rights reserved.</p>
</footer>
<script src="script.js"></script>
</body>
</html>
CSS (styles.css)
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
background-color: #f0f0f0;
}
header {
background-color: #3b3b3b;
color: white;
padding: 20px;
text-align: center;
}
h1 {
margin: 0;
}
section {
margin: 20px;
padding: 15px;
background-color: white;
border-radius: 8px;
box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}
ul {
list-style-type: none;
padding: 0;
}
button {
background-color: #3b3b3b;
color: white;
border: none;
padding: 10px 20px;
border-radius: 5px;
cursor: pointer;
}
button:hover {
background-color: #555;
}
footer {
text-align: center;
padding: 20px;
background-color: #3b3b3b;
color: white;
position: fixed;
width: 100%;
bottom: 0;
}
JavaScript (script.js)
javascript
Copy code
document.getElementById("buy-tickets").addEventListener("click", function() {
alert("Tickets are not available for purchase yet! Stay tuned for updates.");
});
How It Works
- HTML: The structure includes sections for the lineup, ticket information, and highlights of the festival.
- CSS: Provides basic styling to make it visually appealing, including responsive design principles.
- JavaScript: Adds interactivity, such as an alert when the “Buy Tickets” button is clicked.
How to Run
- Create three files: index.html, styles.css, and script.js.
- Copy the respective code into each file.
- Open index.html in a web browser to see the music festival presentation.
Feel free to customize the lineup, ticket prices, highlights, and styles to fit your needs!