Certainly! Below is a single HTML file for a modern, dynamic calisthenics website. It uses:
- Responsive design with CSS Grid and Flexbox
- Smooth scrolling and animations with CSS and JavaScript
- Dark/light mode toggle
- Interactive workout cards with hover effects
- A sticky navbar with active link highlighting
- A contact form with validation
- Google Fonts and icons for a polished look
You can save this as index.html and open it in any modern browser.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<title>Calisthenics Pro</title>
<meta name="description" content="Dynamic and modern calisthenics workout website" />
<meta name="author" content="ChatGPT" />
<!-- Google Fonts -->
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;500;700&display=swap" rel="stylesheet" />
<!-- Icons -->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css" rel="stylesheet" />
<style>
:root {
--primary-color: #ff5722;
--secondary-color: #212121;
--background-light: #f9f9f9;
--background-dark: #121212;
--text-light: #ffffff;
--text-dark: #222222;
--card-bg-light: #ffffff;
--card-bg-dark: #1e1e1e;
--transition-speed: 0.3s;
}
/* Dark mode variables */
body.dark {
--background: var(--background-dark);
--text-color: var(--text-light);
--card-bg: var(--card-bg-dark);
}
body.light {
--background: var(--background-light);
--text-color: var(--text-dark);
--card-bg: var(--card-bg-light);
}
/* Reset & base */
* {
box-sizing: border-box;
}
body {
margin: 0;
font-family: 'Poppins', sans-serif;
background-color: var(--background);
color: var(--text-color);
scroll-behavior: smooth;
transition: background-color var(--transition-speed), color var(--transition-speed);
}
a {
color: var(--primary-color);
text-decoration: none;
transition: color var(--transition-speed);
}
a:hover {
color: #e64a19;
}
/* Navbar */
header {
position: sticky;
top: 0;
background-color: var(--card-bg);
box-shadow: 0 2px 8px rgb(0 0 0 / 0.1);
z-index: 1000;
}
nav {
max-width: 1200px;
margin: 0 auto;
padding: 1rem 2rem;
display: flex;
justify-content: space-between;
align-items: center;
}
.logo {
font-weight: 700;
font-size: 1.5rem;
color: var(--primary-color);
letter-spacing: 2px;
}
.nav-links {
display: flex;
gap: 2rem;
}
.nav-links a {
font-weight: 500;
position: relative;
}
.nav-links a.active::after {
content: '';
position: absolute;
bottom: -6px;
left: 0;
width: 100%;
height: 3px;
background-color: var(--primary-color);
border-radius: 2px;
}
/* Dark mode toggle */
.toggle-btn {
background: none;
border: 2px solid var(--primary-color);
border-radius: 30px;
padding: 0.3rem 0.8rem;
color: var(--primary-color);
cursor: pointer;
font-weight: 600;
transition: background-color var(--transition-speed), color var(--transition-speed);
}
.toggle-btn:hover {
background-color: var(--primary-color);
color: var(--text-light);
}
/* Hero Section */
.hero {
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
text-align: center;
padding: 6rem 1rem 4rem;
background: linear-gradient(135deg, #ff5722 0%, #ff8a50 100%);
color: #fff;
}
.hero h1 {
font-size: 3rem;
margin-bottom: 1rem;
letter-spacing: 3px;
}
.hero p {
font-size: 1.25rem;
max-width: 600px;
margin-bottom: 2rem;
font-weight: 300;
}
.hero button {
background-color: #fff;
color: var(--primary-color);
border: none;
padding: 1rem 2rem;
font-size: 1.1rem;
font-weight: 700;
border-radius: 30px;
cursor: pointer;
box-shadow: 0 4px 15px rgb(255 87 34 / 0.4);
transition: background-color 0.3s ease, color 0.3s ease;
}
.hero button:hover {
background-color: #e64a19;
color: #fff;
}
/* Sections */
section {
max-width: 1200px;
margin: 3rem auto;
padding: 0 1rem;
}
h2.section-title {
font-size: 2.5rem;
text-align: center;
margin-bottom: 2rem;
color: var(--primary-color);
letter-spacing: 2px;
}
/* Workouts Grid */
.workouts-grid {
display: grid;
grid-template-columns: repeat(auto-fit,minmax(280px,1fr));
gap: 2rem;
}
.workout-card {
background-color: var(--card-bg);
border-radius: 15px;
box-shadow: 0 8px 20px rgb(0 0 0 / 0.1);
overflow: hidden;
display: flex;
flex-direction: column;
transition: transform 0.3s ease, box-shadow 0.3s ease;
cursor: pointer;
}
.workout-card:hover {
transform: translateY(-10px);
box-shadow: 0 12px 30px rgb(0 0 0 / 0.2);
}
.workout-card img {
width: 100%;
height: 180px;
object-fit: cover;
}
.workout-content {
padding: 1.5rem;
flex-grow: 1;
display: flex;
flex-direction: column;
}
.workout-content h3 {
margin: 0 0 0.5rem;
font-weight: 700;
}
.workout-content p {
flex-grow: 1;
font-weight: 300;
color: var(--text-color);
}
.workout-content button {
margin-top: 1rem;
align-self: flex-start;
background-color: var(--primary-color);
border: none;
color: #fff;
padding: 0.6rem 1.2rem;
border-radius: 30px;
font-weight: 600;
cursor: pointer;
transition: background-color 0.3s ease;
}
.workout-content button:hover {
background-color: #e64a19;
}
/* About Section */
.about-text {
max-width: 800px;
margin: 0 auto;
font-weight: 300;
line-height: 1.6;
font-size: 1.1rem;
color: var(--text-color);
}
/* Contact Form */
form {
max-width: 600px;
margin: 0 auto;
background-color: var(--card-bg);
padding: 2rem;
border-radius: 15px;
box-shadow: 0 8px 20px rgb(0 0 0 / 0.1);
}
form label {
display: block;
margin-bottom: 0.5rem;
font-weight: 600;
}
form input,
form textarea {
width: 100%;
padding: 0.75rem 1rem;
margin-bottom: 1.5rem;
border: 1.5px solid #ccc;
border-radius: 10px;
font-size: 1rem;
font-family: 'Poppins', sans-serif;
transition: border-color 0.3s ease;
}
form input:focus,
form textarea:focus {
border-color: var(--primary-color);
outline: none;
}
form button {
background-color: var(--primary-color);
border: none;
color: #fff;
padding: 1rem 2rem;
font-weight: 700;
border-radius: 30px;
cursor: pointer;
transition: background-color 0.3s ease;
}
form button:hover {
background-color: #e64a19;
}
/* Footer */
footer {
text-align: center;
padding: 2rem 1rem;
background-color: var(--card-bg);
color: var(--text-color);
font-weight: 300;
font-size: 0.9rem;
}
/* Responsive tweaks */
@media (max-width: 600px) {
.hero h1 {
font-size: 2.2rem;
}
.hero p {
font-size: 1rem;
}
nav {
padding: 1rem;
}
.nav-links {
gap: 1rem;
}
}
/* Animations */
.fade-in {
opacity: 0;
transform: translateY(20px);
animation-fill-mode: forwards;
animation-name: fadeInUp;
animation-duration: 0.8s;
animation-timing-function: ease-out;
}
@keyframes fadeInUp {
to {
opacity: 1;
transform: translateY(0);
}
}
</style>
</head>
<body class="light">
<header>
<nav>
<div class="logo">CalisthenicsPro</div>
<div class="nav-links">
<a href="#home" class="active">Home</a>
<a href="#workouts">Workouts</a>
<a href="#about">About</a>
<a href="#contact">Contact</a>
</div>
<button class="toggle-btn" aria-label="Toggle Dark Mode"><i class="fa-solid fa-moon"></i></button>
</nav>
</header>
<main>
<section id="home" class="hero" aria-label="Hero Section">
<h1>Master Your Bodyweight</h1>
<p>Unlock your strength, flexibility, and endurance with dynamic calisthenics workouts designed for all levels.</p>
<button onclick="document.getElementById('workouts').scrollIntoView({behavior:'smooth'})">Explore Workouts</button>
</section>
<section id="workouts" aria-label="Workouts Section">
<h2 class="section-title">Featured Workouts</h2>
<div class="workouts-grid">
<article class="workout-card fade-in" style="animation-delay: 0.1s;">
<img src="https://images.unsplash.com/photo-1598970434795-0c54fe7c0642?auto=format&fit=crop&w=600&q=80" alt="Push-ups workout" loading="lazy" />
<div class="workout-content">
<h3>Push-ups Progression</h3>
<p>Build upper body strength with progressive push-up variations from beginner to advanced.</p>
<button onclick="alert('Push-ups workout details coming soon!')">Learn More</button>
</div>
</article>
<article class="workout-card fade-in" style="animation-delay: 0.3s;">
<img src="https://images.unsplash.com/photo-1594737625785-7a7a7a7a7a7a?auto=format&fit=crop&w=600&q=80" alt="Pull-ups workout" loading="lazy" />
<div class="workout-content">
<h3>Pull-ups Mastery</h3>
<p>Enhance your back and arm strength with pull-up techniques and training plans.</p>
<button onclick="alert('Pull-ups workout details coming soon!')">Learn More</button>
</div>
</article>
<article class="workout-card fade-in" style="animation-delay: 0.5s;">
<img src="https://images.unsplash.com/photo-1605296867304-46d5465a13f1?auto=format&fit=crop&w=600&q=80" alt="Leg workout" loading="lazy" />
<div class="workout-content">
<h3>Leg Strength & Mobility</h3>
<p>Develop powerful legs and improve mobility with bodyweight squats, lunges, and jumps.</p>
<button onclick="alert('Leg workout details coming soon!')">Learn More</button>
</div>
</article>
<article class="workout-card fade-in" style="animation-delay: 0.7s;">
<img src="https://images.unsplash.com/photo-1517960413843-0aee8e2b5908?auto=format&fit=crop&w=600&q=80" alt="Core workout" loading="lazy" />
<div class="workout-content">
<h3>Core & Stability</h3>
<p>Strengthen your core with planks, leg raises, and dynamic stability exercises.</p>
<button onclick="alert('Core workout details coming soon!')">Learn More</button>
</div>
</article>
</div>
</section>
<section id="about" aria-label="About Section">
<h2 class="section-title">About CalisthenicsPro</h2>
<p class="about-text fade-in" style="animation-delay: 0.2s;">
CalisthenicsPro is your ultimate destination for mastering bodyweight training. Whether you're a beginner or an advanced athlete, our expertly designed workouts and tips will help you build strength, flexibility, and endurance without the need for expensive equipment. Join our community and transform your fitness journey today!
</p>
</section>
<section id="contact" aria-label="Contact Section">
<h2 class="section-title">Get in Touch</h2>
<form id="contactForm" novalidate>
<label for="name">Name</label>
<input type="text" id="name" name="name" placeholder="Your full name" required minlength="2" />
<label for="email">Email</label>
<input type="email" id="email" name="email" placeholder="you@example.com" required />
<label for="message">Message</label>
<textarea id="message" name="message" rows="5" placeholder="Write your message here..." required minlength="10"></textarea>
<button type="submit">Send Message</button>
</form>
</section>
</main>
<footer>
© 2025 CalisthenicsPro. All rights reserved.
</footer>
<script>
// Dark/Light mode toggle
const toggleBtn = document.querySelector('.toggle-btn');
const body = document.body;
const icon = toggleBtn.querySelector('i');
// Load saved mode from localStorage
const savedMode = localStorage.getItem('mode');
if (savedMode) {
body.className = savedMode;
icon.className = savedMode === 'dark' ? 'fa-solid fa-sun' : 'fa-solid fa-moon';
} else {
body.className = 'light';
}
toggleBtn.addEventListener('click', () => {
if (body.classList.contains('light')) {
body.classList.replace('light', 'dark');
icon.className = 'fa-solid fa-sun';
localStorage.setItem('mode', 'dark');
} else {
body.classList.replace('dark', 'light');
icon.className = 'fa-solid fa-moon';
localStorage.setItem('mode', 'light');
}
});
// Navbar active link on scroll
const sections = document.querySelectorAll('section');
const navLinks = document.querySelectorAll('.nav-links a');
window.addEventListener('scroll', () => {
let current = '';
sections.forEach(section => {
const sectionTop = section.offsetTop - 80;
if (pageYOffset >= sectionTop) {
current = section.getAttribute('id');
}
});
navLinks.forEach(link => {
link.classList.remove('active');
if (link.getAttribute('href') === '#' + current) {
link.classList.add('active');
}
});
});
// Contact form validation and submission
const form = document.getElementById('contactForm');
form.addEventListener('submit', e => {
e.preventDefault();
const name = form.name.value.trim();
const email = form.email.value.trim();
const message = form.message.value.trim();
if (name.length < 2) {
alert('Please enter a valid name (at least 2 characters).');
form.name.focus();
return;
}
if (!validateEmail(email)) {
alert('Please enter a valid email address.');
form.email.focus();
return;
}
if (message.length < 10) {
alert('Please enter a message with at least 10 characters.');
form.message.focus();
return;
}
alert('Thank you for reaching out! We will get back to you soon.');
form.reset();
});
function validateEmail(email) {
// Simple email regex
return /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(email);
}
</script>
</body>
</html>
Features included:
- Responsive layout with grid and flexbox
- Dark/light mode toggle with icon change and localStorage persistence
- Sticky navbar with active link highlighting on scroll
- Hero section with call-to-action button
- Workouts section with animated cards and images
- About section with fade-in text
- Contact form with client-side validation and alert feedback
- Smooth scrolling for navigation
- Modern typography and icons
If you want me to add anything else (like a video background, more animations, or integration with APIs), just ask!