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
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
6 changes: 5 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,23 @@
In this exercise, we'll be using everything we've learned so far about the Box Model and CSS selectors.

## Instructions

Replicate the website in the screenshot below:

![Screenshot](images/screenshot.png)

## Tips

- Think about the hierarchy of the page, start by creating elements for each section, then work your way through each section until you're happy with how it looks
- Use divs for containers where appropriate
- Give your elements readable classes to easily identify and style them
- If you have multiple of something, it's probably a list. You can always style the list to your liking though!

## Extension #1

- Add a testimonial section after the follow us part!

## Extension #2
- Add a second page that links to the about us, and has the same layout and styling

- Add a second page that links to the about us, and has the same layout and styling
- On this page add the about information, and after creating a section that has a row of cards with different gym locations
65 changes: 65 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
<!DOCTYPE html>
<html lang="en">

<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta http-equiv="X-UA-Compatible" content="ie=edge" />
<link rel="stylesheet" href="styles.css" />

<title>Gymtastic</title>
</head>

<body>
<header>
<div class="logo">Gymtastic</div>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">About Us</a></li>
<li><a href="#">Contact Us</a></li>
</ul>
</nav>
</header>

<main>
<section>
<h2>Fitness for Life!</h2>
<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 you membership today and save a whopping <strong>50%</strong>!
</p>

<a href="#" class="cta">GET MEMBERSHIP</a>
</section>

<section>
<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>
<span> Popular Features</span>
<ul>
<li><br> Gym Near Me
<ul>
<li>Gyms in London</li>
<li>Gyms in Cardiff</li>
<li>Gyms in Glasgow</li>
</ul>
</li>
<li class="list-item">Fitness Classes</li>
<li class="list-item">Personal Trainers</li>
<li class="list-item">Gym Membership Deals [&] Offers</li>
</ul>
</footer>

</body>

</html>
106 changes: 106 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,106 @@
* {
font-family: sans-serif;
}

body {
margin: 0;
padding: 0;
}

h2,
strong {
color: #0d5f80;
}

header {
background-color: #077caa;
padding: 20px;
}

header * {
display: inline;
}

header .logo {
color: white;
font-size: 20px;
font-weight: bolder;
}

header ul {
list-style: none;
margin-left: 20px;
}

header ul li {
margin-right: 20px;
}

header ul a {
color: white;
text-decoration: none;
}

main {
padding: 30px;
}

section {
padding: 10px;
}

.cta {
color: #f77b08;
border: solid 2px #f77b08;
padding: 10px 20px;
margin-top: 20px;
display: inline-block;
border-radius: 10px;
text-decoration: none;
}

.instagram {
color: white;
font-weight: bold;
text-decoration: none;
padding: 9px 30px;
border-radius: 10px;
border: solid 2px rgb(154, 55, 225);
background-color: rgb(154, 55, 225);
}

.facebook {
color: white;
font-weight: bold;
text-decoration: none;
padding: 9px 30px;
border-radius: 10px;
border: solid 2px blue;
background-color: blue;
}

.youtube {
color: white;
font-weight: bold;
text-decoration: none;
padding: 9px 30px;
border-radius: 10px;
border: solid 2px red;
background-color: red;
}

footer {
padding: 30px;
background-color: #077caa;
color: white;
}

footer .list-item {
list-style-type: none;
font-weight: bold;
}

footer ul {
list-style-type: none;
}