Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
174 changes: 174 additions & 0 deletions index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,174 @@
body, ul {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
}

.navbar {
background-color: #0056b3;
color: white;
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
}

.logo {
font-size: 24px;
font-weight: bold;
}

.nav-links {
list-style: none;
}body, ul {
margin: 0;
padding: 0;
font-family: Arial, sans-serif;
}

.navbar {
background-color: #0056b3;
color: white;
display: flex;
justify-content: space-between;
align-items: center;
padding: 10px 20px;
}

.logo {
font-size: 24px;
font-weight: bold;
}

.nav-links {
list-style: none;
}

.nav-links li {
display: inline;
margin-left: 20px;
}

.nav-links a {
color: white;
text-decoration: none;
font-size: 16px;
}


.nav-links li {
display: inline;
margin-left: 20px;
}

.nav-links a {
color: white;
text-decoration: none;
font-size: 16px;
}

body {
font-family: Arial, sans-serif;
margin: 20px;
padding: 0;
background: #fff;
color: #333;
}

header h1 {
color: #333;
text-align: center;
}

.discount {
color: blue;
font-weight: bold;
}

.first-button {
background-color: orange;
border: none;
border-radius: 5px;
color: white;
padding: 10px 20px;
text-transform: uppercase;
display: block;
margin: 20px auto;
cursor: pointer;
}

.social-button {
border: none;
border-radius: 5px;
color: white;
padding: 10px 20px;
margin-right: 10px;
cursor: pointer;
}

.instagram {
background-color: #c13584;
}

.facebook {
background-color: #3b5998;
}

.youtube {
background-color: #c4302b;
}

section {
text-align: center;
margin-top: 20px;
}
body {
font-family: Arial, sans-serif;
margin: 0;
padding: 0;
}

.footer {
background-color: #0056b3;
color: white;
padding: 20px;
text-align: left;
margin-top: 13px;
}

.footer h2 {
margin-top: 0;
}

.footer-links p, .footer-links ul {
margin: 5px 0;
}

.footer-links ul {
padding-left: 20px;
}

.footer-links li {
list-style-type: none;
}

.testimonials {
background-color: #f0f0f0;
padding: 20px;
margin-top: 20px;
}

.testimonial {
text-align: center;
margin-top: 10px;
}

.testimonial p {
font-style: italic;
}

.testimonial cite {
display: block;
margin-top: 5px;
color: #555;
}
57 changes: 57 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>html-gymtastic</title>
<link rel="stylesheet" href="index.css">
</head>
<body>
<nav class="navbar">
<div class="logo">Gymtastic</div>
<ul class="nav-links">
<li><a href="#home">Home</a></li>
<li><a href="#about">About Us</a></li>
<li><a href="#contact">Contact Us</a></li>
</ul>
</nav>

<header>
<h1>Fitness for life!</h1>
</header>
<p>Every gym is designed with you in mind, from the way they're laid out, to the range of equipment available.</p>
<p>Get your membership today and save a whopping <span class="discount">50%</span>!</p>
<button class="first-button">GET MEMBERSHIP</button>
<section>
<p>Follow us on</p>
<button class="social-button instagram">Instagram</button>
<button class="social-button facebook">Facebook</button>
<button class="social-button youtube">YouTube</button>
</section>
<section class="testimonials">
<h2>What Our Members Say</h2>
<div class="testimonial">
<p>"Joining Fitness for Life was the best decision I ever made! The facilities are top-notch and the staff is always helpful."</p>
<cite>— Faruq</cite>
</div>
<div class="testimonial">
<p>"The variety of equipment and classes available is amazing. I've improved my health significantly since joining."</p>
<cite>— Faruq</cite>
</div>
</section>
<footer class="footer">
<h2>Popular features</h2>
<div class="footer-links">
<p>Gyms Near Me</p>
<ul>
<li>Gyms in London</li>
<li>Gyms in Cardiff</li>
<li>Gyms in Glasgow</li>
</ul>
<p>Fitness Classes</p>
<p>Personal Trainers</p>
<p>Gym Membership Deals & Offers</p>
</div>
</footer>
</body>
</html>