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
59 changes: 59 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Gymtastic</title>
<link rel="stylesheet" href="style.css">
</head>

<body>
<header>
<nav class="navbar">
<div class="logo"><a href="#">Gymtastic</a></div>

<ul class="links">
<li class="hero"><a href="home.html">Home</a></li>
<li class="hero"><a href="about.html">About Us</a></li>
<li class="hero"><a href="contact.html">Contact Us</a></li>
</ul>

</nav>
</header>
<main>
<h1>Fitness for Life!</h1>
<div>
<p>Every gym is designed with you in mind, from the way they're laid out, to the range of <br> equipment
available.
<br>
<br>
Get your membership today and save a whopping <span>50%</span>!
</p>
</div>

<button class="get-btn" type="button">GET MEMBERSHIP</button>
<h1>Follow us on</h1>
<div>
<button class="btn insta-btn" type="button"><a href="http://instagram.com">Instagram</a></button>
<button class="btn fb-btn" type="button"><a href="http://facebook.com">Facebook</a></button>
<button class="btn yt-btn" type="button"><a href="http://youtube.com">YouTube</a></button>
</div>
</main>
<footer>
<p>Popular features</p>
<h4>Gyms Near Me</h4>
<ul>
<li><a href="#">Gyms in London</a></li>
<li><a href="#">Gyms in Cardiff</a></li>
<li><a href="#">Gyms in Glasgow</a></li>

</ul>
<a href="#">Fitness Classes</a><br>
<a href="#">Personal Trainer</a><br>
<a href="#">Gym Membership Deals & Offers</a>

</footer>
</body>

</html>
101 changes: 101 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
body {
margin: 0;
padding: 0;
color: rgb(44, 43, 43);
font-family: sans-serif;
}

.navbar ul {
list-style-type: none;
}
.navbar a {
color: white;
text-decoration: none;
padding: 20px;
}

.navbar a:hover {
background-color: rgb(89, 149, 228);
color: black;
}
/* HEADER */
header {
position: relative;
}
.navbar {
background-color: rgb(91, 91, 236);
height: 70px;
width: 100%;
margin: 0 auto;
padding: 0;
display: flex;
align-items: center;
justify-content: space-around;
}
.navbar .logo {
font-size: 24px;
font-weight: bold;
/* float: left; */
}
.navbar .links {
display: flex;
gap: 20px;
}
main {
padding: 20px;
margin-right: 20px;
}
h1 {
color: rgb(13, 110, 236);
}
span {
color: blue;
font-size: bold;
}
.get-btn {
padding: 10px 20px;
border-radius: 8px;
margin: 0 5px;
color: orangered;
border: 2px solid orangered;
}
.btn {
color: white;
font-size: medium;
background-color: blueviolet;
border: none;
padding: 10px 32px;
margin-left: 10px;
border-radius: 8px;
box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.1);
}
.insta-btn:hover {
background-color: rgb(175, 119, 231);
color: black;
}
.fb-btn {
background-color: rgb(91, 91, 236);
}
.fb-btn:hover {
background-color: blue;
color: black;
}
.yt-btn {
background-color: rgb(230, 32, 32);
}
.yt-btn:hover {
background-color: rgb(126, 21, 21);
color: black;
}
footer {
background-color: rgb(91, 91, 236);
padding: 20px;
color: white;
}
footer ul li {
list-style: none;
}
a {
text-decoration: none;
color: white;
}