Skip to content

Commit

Permalink
block 6 home work Grocery List
Browse files Browse the repository at this point in the history
  • Loading branch information
Daren Morreale committed Dec 5, 2024
1 parent 9f679ee commit b6e875e
Show file tree
Hide file tree
Showing 4 changed files with 123 additions and 0 deletions.
Binary file added images/Snackbar.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added images/Westside_Market_in_Manhattan.JPG
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
89 changes: 89 additions & 0 deletions index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Grocery List</title>
<link rel="stylesheet" href="styles/styles.css" />
<style>
body {
background: #f7f7f7;
padding: 150px;
font-family: Arial, sans-serif;
font-weight: 400;
}
h1,
h2,
h3,
h4 {
font-weight: 600;
}
</style>
</head>
<body>
<header>
<h1 style="color: #108efe; font-size: 2.5em; text-align: center">
My Very Organized Grocery List
</h1>
</header>
<section class="section-wrapper">
<h2 class="category-title">Pantry Items</h2>
<div class="items-wrapper">
<div class="item">
<h3 class="item-title">Canned</h3>
<ul style="list-style-type: square">
<li>Corn</li>
<li>Tuna</li>
<li>Green Beans</li>
<li>Beans</li>
</ul>
</div>
<div class="item">
<h3 class="item-title">Dry Goods</h3>
<ul style="list-style-type: circle">
<li>Rice</li>
<li>Lentils</li>
<li>Oats</li>
<li>Pancake Mix</li>
</ul>
</div>
<img
class="item-image"
src="images/Westside_Market_in_Manhattan.JPG"
alt="Pantry Items"
class="item-image"
/>
</div>
</section>

<section class="section-wrapper">
<h2 class="category-title" style="color:red; background:rgb(201, 255, 246);">Freezer Items</h2>
<div class="items-wrapper">
<div class="item">
<h3 class="item-title">Veggies</h3>
<ul style="list-style-type: upper-latin">
<li>Broccoli</li>
<li>Carrots</li>
<li>Cauliflower</li>
<li>Bell Peppers</li>
</ul>
</div>
<div class="item">
<h3 class="item-title">Snacks</h3>
<ol>
<li>Chicken Nuggets</li>
<li>Hot Pockets</li>
<li>Fries</li>
<li>Tator Tots</li>
</ol>
</div>
<img
class="item-image"
src="images/Snackbar.jpg"
alt="Pantry Items"
class="item-image"
/>
</div>
</section>
</body>
</html>
34 changes: 34 additions & 0 deletions styles/styles.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
.section-wrapper {
width: 50%;
padding: 50px;
background: #97dea3;
margin: 20px auto;
border: 2px solid #108efe;
}

.category-title {
padding: 20px;
background-color: #f5ffbd;
text-transform: uppercase;
font-weight: 900;
text-align: center;
border-bottom: 2px solid #108efe;
border-top: 2px solid #108efe;
}
.items-wrapper {
display: flex;
gap: 20px;
}
.item {
background: #ffeeff;
padding: 5px 20px;
width: 33%;
min-height: 100%;
}
.item-title {
text-transform: uppercase;
}
.item-image {
object-fit: cover;
width: 33%;
}

0 comments on commit b6e875e

Please sign in to comment.