Alrighty, I think I finally finished the Tea-cozy project!! https://github.com/PatriciaIsaacs1997/Codecademy-Off-Platform-Project–Tea-Cozy
There’s a couple things I’m still not the happiest about, but overall I think I managed to follow the design spec.
For those of you not wanting to be redirected/have a new tab pop open:
HTML:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>The Tea Cozy</title>
<!--STYLESHEETS-->
<link rel="stylesheet" href="./resources/style.css">
</head>
<body>
<header id="page-header">
<!--NAV LOGO-->
<img src="./resources/images/logo.png" alt="TEA COZY">
<!--NAVIGATION-->
<nav>
<a href="#mission">Mission</a>
<a href="#featured-tea">Featured Tea</a>
<a href="#locations">Locations</a>
</nav>
</header>
<main>
<section class="mission">
<!--HEADER IMAGE-->
<span class="header-background"><img src="./resources/images/background.jpg" alt=""></span>
<!--TEXT OVERLAY-->
<div class="mission-overlay">
<h2>Our Mission</h2>
<br>
<h4>Handpicked, Artisianly Currated, Free Range, Sustainable, Small Batch, Fair Trade, Organic Tea</h4>
</div>
</section>
<!--FEATURED TEA SECTION-->
<section class="featured-tea">
<h2>Tea of the Month</h2>
<br>
<h4>What's Steeping at The Tea Cozy</h4>
<div class="monthly-items">
<!--IMAGE 1-->
<div class="monthly-items-child-1">
<figure>
<img src="./resources/images/berryblitz.jpg" alt="">
<figcaption>
<h4>Fall Berry Blitz Tea</h4>
</figcaption>
</figure>
</div>
<!--IMAGE 2-->
<div class="monthly-items-child-2">
<figure>
<img src="./resources/images/spicedrum.jpg" alt="">
<figcaption>
<h4>Spiced Rum Tea</h4>
</figcaption>
</figure>
</div>
<!--IMAGE 3-->
<div class="monthly-items-child-3">
<figure>
<img src="./resources/images/donut.jpg" alt="">
<figcaption>
<h4>Seasonal Donuts</h4>
</figcaption>
</figure>
</div>
<!--IMAGE 4-->
<div class="monthly-items-child-4">
<figure>
<img src="./resources/images/myrtleave.jpg" alt="">
<figcaption>
<h4>Myrtle Ave Tea</h4>
</figcaption>
</figure>
</div>
<!--IMAGE 5-->
<div class="monthly-items-child-5">
<figure>
<img src="./resources/images/bedfordbizarre.jpg" alt="">
<figcaption>
<h4>Bedford Bizarre Tea</h4>
</figcaption>
</figure>
</div>
</div>
</section>
<!--LOCATIONS SECTION-->
<section class="locations">
<!--BACKGROUND IMAGE-->
<span class="locations-background"><img src="./resources/images/locations.jpg" alt=""></span>
<!--INFO BOXES-->
<div class="location-info">
<div class="location-header">
<h2>Locations</h2>
</div>
<br>
<div class="location1">
<h3>Downtown</h3>
<h4>384 West 4th St</h4>
<h4>Suite 108</h4>
<h4>Portland, Maine</h4>
</div>
<div class="location2">
<h3>East Bayside</h3>
<h4>3433 Phisherman's Avenue</h4>
<h4>(Northwest Corner)</h4>
<h4>Portland, Maine</h4>
</div>
<div class="location3">
<h3>Oakdale</h3>
<h4>515 Crescent Avenue</h4>
<h4>Second Floor</h4>
<h4>Portland, Maine</h4>
</div>
</div>
</section>
</main>
</body>
<footer id="footer">
<section class="contact-info">
<h2>The Tea Cozy</h2>
<br>
<a target="_blank" href="mainto:[email protected]"><h5>[email protected]</h5></a>
<br>
<a href="tel:917-555-8904"><h5>917-555-8904</h5></a>
</section>
<div class="copyright">
<h5>copyright The Tea Cozy 2017</h5>
</div>
</footer>
</html>
CSS:
/*RESET*/
* {
margin: 0;
padding: 0;
}
/*UTILITIES*/
html * {
font-family: Arial, Helvetica, sans-serif;
color: seashell;
opacity: 0.9;
text-align: center;
}
html {
font-size: 22px;
background-color: black;
}
main {
padding: 16px;
}
/*HEADER AND NAV STYLING*/
nav {
display: flex;
flex-wrap: nowrap;
justify-content: flex-end;
margin-right: 10px;
text-decoration: underline;
}
nav a {
display: flex;
color: seashell;
cursor: pointer;
margin: 10px;
}
header {
position: fixed;
display: flex;
align-items: center;
justify-content: space-between;
height: 69px;
width: 100%;
border-bottom: 1px solid seashell;
background-color: black;
z-index: 1;
top: 0;
padding: auto;
}
header img {
display: flex;
justify-content: flex-start;
height: 50px;
margin-left: 10px;
}
.mission {
position: relative;
display: flex;
flex-direction: column;
flex-wrap: wrap;
justify-content: center;
align-items: center;
margin: auto;
}
.header-background img {
height: 700px;
width: 1200px;
padding: 69px;
}
.mission-overlay {
position: absolute;
display: flex;
flex-direction: column;
flex-wrap: wrap;
align-items: center;
justify-content: center;
top: 30%;
width: 100%;
background-color: black;
color: seashell;
}
/*FEATURED TEA SECTION*/
.featured-tea {
display: flex;
justify-content: space-around;
flex-direction: column;
flex-wrap: wrap;
align-content: center;
align-items: center;
}
.tea-header {
margin-bottom: -50px;
}
.monthly-items {
row-gap: 10px;
column-gap: 40px;
display: flex;
flex-direction: row;
align-items: center;
flex-wrap: wrap;
justify-content: center;
width: 1000px;
align-content: center;
padding: 69px;
}
.monthly-items img {
display: block;
height: 200px;
width: 300px;
margin-bottom: 10px;
}
/*LOCATIONS SECTION*/
.locations {
position: relative;
display: flex;
flex-direction: column;
flex-wrap: wrap;
justify-content: center;
align-items: center;
margin: auto;
}
.locations-background img{
height: 500px;
width: 1200px;
}
.location-info {
position: absolute;
display: flex;
flex-direction: row;
flex-wrap: nowrap;
justify-content: space-evenly;
opacity: 1;
}
.location-header {
position: absolute;
display: flex;
flex-direction: column;
flex-wrap: wrap;
justify-content: space-around;
margin: -15px;
background-color: transparent;
font-weight: bold;
z-index: 1;
}
.location1 {
display: flex;
width: 300px;
height: 300px;
background-color: black;
margin: 30px 20px;
flex-direction: column;
justify-content: space-evenly;
}
.location2 {
display: flex;
width: 300px;
height: 300px;
background-color: black;
margin: 30px 20px;
flex-direction: column;
justify-content: space-evenly;
}
.location3 {
display: flex;
width: 300px;
height: 300px;
background-color: black;
margin: 30px 20px;
flex-direction: column;
justify-content: space-evenly;
}
/*FOOTER*/
.contact-info {
align-items: center;
color: seashell;
height: 200px;
}
.contact-info a {
color: seashell;
text-decoration: none;
cursor: pointer;
}
.copyright {
display: flex;
justify-content: flex-start;
margin-left: 20px;
margin-bottom: 40px;
}