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
Binary file added .DS_Store
Binary file not shown.
46 changes: 46 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="style.css">
</head>
<body>
<header class="top-nav">

<div class="logo">
<a> Gymtastic </a>
</div>
<div class="nav-items">
<a>Home</a>
<a>About Us</a>
<a>Contact Us</a>
</div>
</header>
<main>
<h1>Fitness for life!</h1>
<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 50%!</p>
<button class="cta-button">GET MEMBERSHIP</button>
<section class="social-media">
<h2>Follow us on</h2>
<a href="#" class="instagram">Instagram</a>
<a href="#" class="facebook">Facebook</a>
<a href="#" class="youtube">YouTube</a>
</section>
</main>
<footer>
<section class="footer-links">
<h3>Popular features</h3>
<a href="#">Gyms Near Me</a>
<a href="#">Gyms in London</a>
<a href="#">Gyms in Cardiff</a>
<a href="#">Gyms in Glasgow</a>
<a href="#">Fitness Classes</a>
<a href="#">Personal Trainers</a>
<a href="#">Gym Membership Deals & Offers</a>
</section>
</footer>
</body>
</html>

126 changes: 126 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@

* {
margin: 0;
padding: 0;
box-sizing: border-box;
}


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


nav {
display: flex;
justify-content: left;
margin-bottom: 20px;
color: #f8f8f8;
font-weight: bold;

}

.logo {
color: white;
text-decoration: none;
font-size: 1.30em;
margin: 3px;
font-weight: bold;

}

.nav-items {
color: #fcfafa;
text-decoration: none;
padding: 1px 300px;
margin: 0;
position: relative;
top: -35px;
display: grid;
grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
}




header {
font-size: 1.7em;
color: hwb(0 97% 3%);
margin-bottom: 1.0em;
background-color: rgb(90, 150, 200);


}


p {
margin-bottom: 1em;
}


.cta-button {
display: inline-block;
background-color: #faf8f4;
color: #f39005;
padding: 10px 20px;
margin: 20px 0;
border: none;
border-radius: 5px;
cursor: pointer;
font-size: 1em;
}

.cta-button:hover {
background-color: #cc8400;
}


.social-media a {
display: inline-block;
width: 120px;
padding: 10px;
margin: 0 10px;
color: #fff;
border-radius: 5px;
font-size: 1em;
}

.social-media a.instagram {
background: #c13584;
}

.social-media a.facebook {
background: #3b5998;
}

.social-media a.youtube {
background: #ff0000;
}


.footer a {
display: inline-block;
color: #333;
text-decoration: none;
padding: 5px;
margin: 5px 10px;
}

.footer a:hover {
text-decoration: underline;
}

.footer {
background-color: #f8f8f8;
padding: 20px;
margin-top: 20px;
}

.logo {
color: white;
font-weight: bold;
}