Hi All,
I have just completed the Tea Cozy Project. I would really like some feedback if possible. All feedback is welcome.
Thanks
Emma
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Tea Cozy</title>
<link href="css/index.css" type="text/css" rel="stylesheet">
</head>
<body>
<header>
<img #logo src="resources/img-tea-cozy-logo.webp" alt="Tea Cozy Logo" height="50px">
<nav>
<ul>
<li><a href="#">Mission</a></li>
<li><a href="#">Featured Tea</a></li>
<li><a href="#">Locations</a></li>
</ul>
</nav>
</header>
<main>
<!--Mission-->
<div class="container">
<div class="mission">
<img src="resources/img-mission-background.webp" alt="Image of colorful tea leaves in a jar"
width="1200" height="700">
<h2 class="banner">Our Mission</h2>
<h4 class="banner">Handpicked, Artisanally Curated, Free Range, Sustainable, Small Batch, Fair Trade,
Organic Tea</h4>
</div>
</div>
<!--Tea of the Month-->
<div class="container">
<div class="month">
<h2 class="tea">Tea of the Month</h2>
<h4 class="tea">What's Steeping at The Tea Cozy?</h4>
<div class="menuItems">
<div class="item berry">
<img src="resources/img-berryblitz.webp" alt="Picture of Berry Blitz Tea." width="300px" height="200px">
<p>Fall Berry Blitz Tea</p>
</div>
<div class="item rum">
<img src="resources/img-spiced-rum.webp" alt="Picture of Spiced Rum Tea." width="300px" height="200px">
<p>Spiced Rum Tea</p>
</div>
<div class="item donuts">
<img src="resources/img-donut.webp" alt="Picture of Seasonal Donut." width="300px" heigth="200px">
<p>Seasonal Donuts</p>
</div>
<div class="item Myrtle">
<img src="resources/img-myrtle-ave.webp" alt="Picture of Myrtle Ave Tea." width="300px" height="200px">
<p>Myrtle Ave Tea</p>
</div>
<div class="item bedford">
<img src="resources/img-bedford-bizarre.webp" alt="Picture of Bedford Bizarre Tea." width="300px" height="200px">
<p>Beford Bizarre Tea</p>
</div>
</div>
</div>
</div>
<!--Locations-->
<div class="container">
<div class="location">
<h2>Locations</h2>
<div class="place">
<div class="downtown">
<h3>Downtown</h3>
<p>384 West 4th St</p>
<p>Suite 108</p>
<p>Portland, Maine</p>
</div>
<div class="bayside">
<h3>East Bayside</h3>
<p>3433 Phisherman's Avenue</p>
<p>(Northwest Corner)</p>
<p>Portland, Maine</p>
</div>
<div class="oakdale">
<h3>Oakdale</h3>
<p>515 Crescent Avenue</p>
<p>Second Floor</p>
<p>Portland, Maine</p>
</div>
</div>
</div>
</div>
</main>
<footer>
<div class="container">
<div class="contact">
<h2>The Tea Cozy</h2>
<h5>[email protected]</h5>
<p>917-555-8904</p>
</div>
<div class="copyright">
<p>Copyright The Tea Cozy 2017</p>
</div>
</div>
</footer>
</body>
</html>
/*Universal Styles*/
* {
font-family: 'Helvetica', sans-serif;
font-size: 22px;
color: seashell;
background-color: black;
}
.container {
margin: 20px auto;
}
h2 {
font-size: 30px;
}
h3 {
font-size: 28px;
}
h4 {
font-size: 25px;
}
/*Header*/
header {
height: 69px;
width: 99%;
border-bottom: 1px solid seashell;
position: fixed;
top: 3px;
z-index: 1;
}
#logo {
margin-left: 10px;
}
/*Nav*/
nav { /*anchor elements need to be sparated a little*/
float: right;
margin-right: 10px;
}
ul {
list-style-type: none;
margin-bottom: -1px;
}
ul li {
display: inline;
padding: 5px;
}
ul li a {
text-decoration: underline;
}
/*Mission*/
.banner {
text-align: center;
font-weight: bold;
z-index: 1;
width: 99%;
padding: 5px;
opacity: 1;
}
h2.banner {
position: absolute;
top: 400px;
}
h4.banner {
position: absolute;
top: 435px;
}
/*Featured Tea*/
.month {
width: 1000px;
margin-left: 8%;
}
.tea {
text-align: center;
}
.menuItems {
display: inline-flex;
justify-content: center;
flex-wrap: wrap;
}
.item {
width: 32%;
}
.item p {
text-align: center;
line-height: 10px;
}
/*Locations*/
.location {
position: relative;
top: 0px;
background-image: url(https://content.codecademy.com/courses/freelance-1/unit-4/img-locations-background.jpg);
width: 1200px;
height: 500px;
opacity: 0.8;
}
.location h2 {
position: absolute;
top: 150px;
width: 99%;
text-align: center;
line-height: 15px;
background-color: transparent;
}
.place {
position: absolute;
top: 200px;
display: inline-flex;
margin-left: 80px;
background-color: transparent;
}
.downtown {
width: 300px;
margin: 20px;
}
.bayside {
width: 300px;
margin: 20px;
}
.oakdale {
width: 300px;
margin: 20px;
}
.place h3,
.place p {
text-align: center;
}
/*Footer*/
.contact {
height: 200px;
width: 99%;
text-align: center;
}