<!
DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Gym Management System</title>
<style>
body {
margin: 0;
font-family: Arial, sans-serif;
background: #f5f5f5;
}
header {
background: #222;
color: #fff;
padding: 15px;
text-align: center;
}
nav {
display: flex;
justify-content: center;
background: #444;
}
nav a {
color: #fff;
padding: 14px 20px;
text-decoration: none;
}
nav a:hover {
background: #666;
}
section {
padding: 40px;
text-align: center;
}
.plans {
display: grid;
grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
gap: 20px;
}
.card {
background: #fff;
border-radius: 10px;
padding: 20px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
form {
max-width: 400px;
margin: auto;
background: #fff;
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}
input, select, textarea, button {
width: 100%;
margin: 10px 0;
padding: 10px;
border-radius: 5px;
border: 1px solid #ddd;
}
button {
background: #222;
color: white;
cursor: pointer;
}
button:hover {
background: #444;
}
footer {
text-align: center;
background: #222;
color: #fff;
padding: 10px;
margin-top: 20px;
}
</style>
</head>
<body>
<header>
<h1> Gym Management System</h1>
<p>Stay Fit, Stay Healthy</p>
</header>
<nav>
<a href="#home">Home</a>
<a href="#register">Register</a>
<a href="#plans">Plans</a>
<a href="#schedule">Schedule</a>
<a href="#contact">Contact</a>
</nav>
<section id="home">
<h2>Welcome to Our Gym</h2>
<p>We provide best training programs, certified trainers and modern
equipment.</p>
</section>
<section id="register">
<h2>Member Registration</h2>
<form id="regForm">
<input type="text" id="name" placeholder="Full Name" required>
<input type="email" id="email" placeholder="Email" required>
<input type="number" id="age" placeholder="Age" required>
<select id="plan" required>
<option value="">Choose Plan</option>
<option>Basic</option>
<option>Standard</option>
<option>Premium</option>
</select>
<button type="submit">Register</button>
</form>
<p id="msg"></p>
</section>
<section id="plans">
<h2>Workout Plans</h2>
<div class="plans">
<div class="card">
<h3>Basic Plan</h3>
<p>Access to gym equipment</p>
<p>₹500/month</p>
</div>
<div class="card">
<h3>Standard Plan</h3>
<p>Trainer guidance + cardio</p>
<p>₹1000/month</p>
</div>
<div class="card">
<h3>Premium Plan</h3>
<p>Diet plan + Personal Trainer</p>
<p>₹2000/month</p>
</div>
</div>
</section>
<section id="schedule">
<h2>Class Schedule</h2>
<p>Mon - Cardio | Tue - Strength | Wed - Yoga | Thu - CrossFit | Fri -
Zumba</p>
</section>
<section id="contact">
<h2>Contact Us</h2>
<form>
<input type="text" placeholder="Your Name" required>
<input type="email" placeholder="Your Email" required>
<textarea placeholder="Your Message"></textarea>
<button>Send</button>
</form>
</section>
<footer>
<p>© 2025 Gym Management System. All rights reserved.</p>
</footer>
<script>
[Link]("regForm").addEventListener("submit", function(e){
[Link]();
let name = [Link]("name").value;
let email = [Link]("email").value;
let age = [Link]("age").value;
let plan = [Link]("plan").value;
[Link]("msg").innerText =
`Thank you ${name}, you have registered for the ${plan} plan!`;
[Link]();
});
</script>
</body>
</html>