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
62 changes: 44 additions & 18 deletions alternating.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,54 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<title>Cookie Store</title>
</head>
<body>
<main>
<h2>Our Cookies</h2>
<p>Checkout our latest and delicious cookies.</p>

<h3>Mint Chocolate</h3>
<p>Tasty mint chocolate cookies</p>
<img src="images/mint-cookie.png" alt="A single mint chocolate cookie" />

<h3>Peanut Butter</h3>
<p>Yummy peanut buttery goodness</p>
<img src="images/peanut-cookie.png" alt="A single peanut butter cookie" />

<h3>Oatmeal</h3>
<p>Your fitness instructors favorite</p>
<img src="images/oatmeal-cookie.png" alt="A single oatmeal cookie" />

<h3>Chocolate Chip</h3>
<p>Gooey chocolate you'll love</p>
<img src="images/chip-cookie.png" alt="A single chocolate chip cookie" />
<h2 style="text-align: center;">Our Cookies</h2>
<p style="text-align: center;">Checkout our latest and delicious cookies.</p>
<div class="container">
<div class="row">
<div class="col-12 col-sm-12 col-md-4 offset-md-4 d-flex flex-column justify-content-center order-md-2">
<h3>Mint Chocolate</h3>
<p>Tasty mint chocolate cookies</p>
</div>
<div class="col-12 col-sm-12 col-md-4 d-flex align-items-center order-md-1">
<img src="images/mint-cookie.png" alt="A single mint chocolate cookie" class="img-fluid" />
</div>
</div>

<div class="row">
<div class="col-12 col-sm-12 col-md-4 d-flex flex-column justify-content-center order-md-1">
<h3>Peanut Butter</h3>
<p>Yummy peanut buttery goodness</p>
</div>
<div class="col-12 col-sm-12 col-md-4 offset-md-4 d-flex align-items-center order-md-2">
<img src="images/peanut-cookie.png" alt="A single peanut butter cookie" class="img-fluid" />
</div>
</div>

<div class="row">
<div class="col-12 col-sm-12 col-md-4 offset-md-4 d-flex flex-column justify-content-center order-md-2">
<h3>Oatmeal</h3>
<p>Your fitness instructor's favorite</p>
</div>
<div class="col-12 col-sm-12 col-md-4 d-flex align-items-center order-md-1">
<img src="images/oatmeal-cookie.png" alt="A single oatmeal cookie" class="img-fluid" />
</div>
</div>

<div class="row">
<div class="col-12 col-sm-12 col-md-4 d-flex flex-column justify-content-center order-md-1">
<h3>Chocolate Chip</h3>
<p>Gooey chocolate you'll love</p>
</div>
<div class="col-12 col-sm-12 col-md-4 offset-md-4 d-flex align-items-center order-md-2">
<img src="images/chip-cookie.png" alt="A single chocolate chip cookie" class="img-fluid" />
</div>
</div>
</div>
</main>
</body>
</html>
63 changes: 63 additions & 0 deletions css/styles.css
Original file line number Diff line number Diff line change
@@ -1 +1,64 @@
/* Add custom css styles here */
#main-header {
height: 100vh;
width: 100vw;
background-image: url('../images/coffee-biscuits.jpg');
background-size: cover;
background-position: center;
background-repeat: no-repeat;
display: flex;
justify-content: center;
align-items: center;
}

h2 {
text-align: center;
padding-top: 60px;
}

.image-container img.center-img {
display: block;
margin: 0 auto;
border-radius: 50%;
width: 300px;
height: 300px;
object-fit: cover;
}

.image-container h3,
.image-container p {
text-align: center;
}

.centered-div {
text-align: center;
padding: 20px;
background-color: rgba(0, 0, 0, 0.5);
color: lightgray;
border-radius: 15px;
}

#about-us-container {
display: grid;
grid-template-columns: 1fr 3fr;
align-items: center;
padding-bottom: 60px;
}

#about-image {
border-radius: 50%;
width: 300px;
height: 300px;
}

#about-text {
line-height: 2;
}

#main-footer {
padding-bottom: 60px;
background-color:dodgerblue;
color:white;
text-align: center;
}

78 changes: 46 additions & 32 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,48 +4,62 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Cookie Store</title>
<link href="css/styles.css" rel="stylesheet">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
</head>
<body>
<header>
<h1>Cookie Store</h1>
<p>Buy our awesome cookies. All proceeds go to charity!</p>
<header id="main-header">
<div class="centered-div">
<h1>Cookie Store</h1>
<p>Buy our awesome cookies. All proceeds go to charity!</p>
</div>
</header>

<main>
<h2>Our Cookies</h2>
<p>Checkout our latest and delicious cookies.</p>

<h3>Mint Chocolate</h3>
<p>Tasty mint chocolate cookies</p>
<img src="images/mint-cookie.png" alt="A single mint chocolate cookie" />

<h3>Peanut Butter</h3>
<p>Yummy peanut buttery goodness</p>
<img src="images/peanut-cookie.png" alt="A single peanut butter cookie" />

<h3>Oatmeal</h3>
<p>Your fitness instructors favorite</p>
<img src="images/oatmeal-cookie.png" alt="A single oatmeal cookie" />

<h3>Chocolate Chip</h3>
<p>Gooey chocolate you'll love</p>
<img src="images/chip-cookie.png" alt="A single chocolate chip cookie" />
<p style="text-align: center;">Checkout our latest and delicious cookies.</p>
<div class = "container" style="padding-bottom: 60px;">
<div class="row">
<div class="col-12 col-sm-12 col-md-6 col-lg-3 image-container">
<h3>Mint Chocolate</h3>
<p>Tasty mint chocolate cookies</p>
<img src="images/mint-cookie.png" alt="A single mint chocolate cookie" class="img-fluid center-img"/>
</div>
<div class="col-12 col-sm-12 col-md-6 col-lg-3 image-container">
<h3>Peanut Butter</h3>
<p>Yummy peanut buttery goodness</p>
<img src="images/peanut-cookie.png" alt="A single peanut butter cookie" class="img-fluid center-img"/>
</div>
<div class="col-12 col-sm-12 col-md-6 col-lg-3 image-container">
<h3>Oatmeal</h3>
<p>Your fitness instructors favorite</p>
<img src="images/oatmeal-cookie.png" alt="A single oatmeal cookie" class="img-fluid center-img"/>
</div>
<div class="col-12 col-sm-12 col-md-6 col-lg-3 image-container">
<h3>Chocolate Chip</h3>
<p>Gooey chocolate you'll love</p>
<img src="images/chip-cookie.png" alt="A single chocolate chip cookie" class="img-fluid center-img"/>
</div>
</div>
</div>
</main>
<div>
<h2>About us</h2>

<img src="images/bakers.svg" alt="illustrations of two people baking" />
<div>
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
occaecat cupidatat non proident, sunt in culpa qui officia deserunt
mollit anim id est laborum.
<div style="background-color:aliceblue;">
<h2>About us</h2>
<div id="about-us-container">
<img src="images/bakers.svg" alt="illustrations of two people baking" id="about-image"/>
<div id="about-text">
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod
tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim
veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea
commodo consequat. Duis aute irure dolor in reprehenderit in voluptate
velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint
occaecat cupidatat non proident, sunt in culpa qui officia deserunt
mollit anim id est laborum.
</div>
</div>
</div>
<footer>
<footer id="main-footer">
<h2>Contact us</h2>
<div>
100 Broadway Avenue,<br />
Expand Down
Loading