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
10 changes: 5 additions & 5 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ TITLE: Include your section in the pull request title

## What section are you in:

- [ ] Tuesday
- [ ] Wednesday
- [ ] Thursday
- [ ] Friday 3pm
- [ ] Friday 6pm
- [ ] Tuesday
- [ ] Wednesday
- [ ] Thursday
- [ ] Friday 3pm
- [X] Friday 6pm

**Is the solution complete?**

Expand Down
6 changes: 2 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,16 +32,14 @@ In this lab, you are given an [index.html](index.html) file that contains our we
- Starting on [medium `md` screens](screenshots/index-md-screen.png), 2 cookies per row
- Starting on [large `lg` screens](screenshots/index-lg-screen.png), 4 cookies per row
- Read about making your [images responsive](https://getbootstrap.com/docs/5.2/content/images/)

2. Apply styling and classes so that the title text is displayed centered within the `<header>` section. Below are some hints on how to do this:
2. Apply styling and classes so that the title text is displayed centered within the `<header>` section. Below are some hints on how to do this:

- Use custom styles for this section
- Give the header section a fixed height, I used 400px
- Read about using images with a `cover` [background-size](https://developer.mozilla.org/en-US/docs/Web/CSS/background-size)
- Read about how to center a div block
- Choose a background image of your own or use [the image provided](images/coffee-biscuits.jpg)
- There are multiple ways to solve this section

3. Style the "About us" section and the `<footer>` section of the page to display similar to the [screenshots](screenshots/index-lg-screen.png)

- Use a grid for the "About us" section
Expand All @@ -51,7 +49,7 @@ In this lab, you are given an [index.html](index.html) file that contains our we

1. Open the [alternating.html](alternating.html) page in your code editor
2. Open the [alternating.html](alternating.html) page in your web browser
3. Using only bootstrap grid styles make the cookie products alternate as shown and described in the following screenshots:
3. Using only bootstrap grid styles make the cookie products alternate as shown and described in the following screenshots:

- On [mobile screens](screenshots/alternating-mobile-screen.png), display 1 cookie per row
- Starting on [medium `md` screens](screenshots/alternating-md-screen.png), display the cookie image and details on the same row, but alternate the order of these two on every row
Expand Down
40 changes: 28 additions & 12 deletions alternating.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,27 +4,43 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Cookie Store</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<link rel = "stylesheet" href = "css/styles.css">
</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" />
<div class = "row">
<div class="col-sm-12 col-md-6 order-md-2">
<h3>Mint Chocolate</h3>
<p>Tasty mint chocolate cookies</p>
<img src="images/mint-cookie.png" alt="A single mint chocolate cookie" />
</div>

<div class="col-sm-12 col-md-6 order-md-1">
<h3>Peanut Butter</h3>
<p>Yummy peanut buttery goodness</p>
<img src="images/peanut-cookie.png" alt="A single peanut butter cookie" />
</div>

<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" />

<div class = "col-sm-12 col-md-6 order-md-4">
<h3>Oatmeal</h3>
<p>Your fitness instructors favorite</p>
<img src="images/oatmeal-cookie.png" alt="A single oatmeal cookie" />
</div>

<h3>Chocolate Chip</h3>
<p>Gooey chocolate you'll love</p>
<img src="images/chip-cookie.png" alt="A single chocolate chip cookie" />
<div class = "col-sm-12 col-md-6 order-md-3">
<h3>Chocolate Chip</h3>
<p>Gooey chocolate you'll love</p>
<img src="images/chip-cookie.png" alt="A single chocolate chip cookie" />
</div>
</div>
</main>
</body>
</html>
41 changes: 41 additions & 0 deletions css/styles.css
Original file line number Diff line number Diff line change
@@ -1 +1,42 @@
/* Add custom css styles here */
header {
height: 400px;
background-size: cover;
align-items: center;
justify-content: center;
display: flex;
background-image: url('../images/coffee-biscuits.jpg');

}

.header-text {
color: white;
background: rgba(35, 35, 35, .65);
padding: 2em;
text-align: center;
border-radius: 1em;
}

main {
margin-top: 2em;
}

.aboutus {
align-items: center;
margin-top: 4em;
padding-top: 2em;
padding-bottom: 2em;
background-color: rgb(242, 242, 242);
}

.aboutus h2 {
text-align: center;
}

footer {
background-color: rgb(75, 121, 183);
text-align: center;
padding-top: 2em;
padding-bottom: 2em;
}

77 changes: 51 additions & 26 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,45 +4,68 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Cookie Store</title>
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<link rel = "stylesheet" href = "css/styles.css">
</head>

<body>
<header>
<h1>Cookie Store</h1>
<p>Buy our awesome cookies. All proceeds go to charity!</p>
<header >
<div class = "header-text">
<h1>Cookie Store</h1>
<p>Buy our awesome cookies. All proceeds go to charity!</p>
</div>
</header>

<main>


<main class="flex text-center">
<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" />
<div class="row">
<div class="col-sm-12 col-md-6 col-lg-3">
<h3>Mint Chocolate</h3>
<p>Tasty mint chocolate cookies</p>
<img src="images/mint-cookie.png" class = "img-fluid" alt="A single mint chocolate cookie" />
</div>

<h3>Peanut Butter</h3>
<p>Yummy peanut buttery goodness</p>
<img src="images/peanut-cookie.png" alt="A single peanut butter cookie" />
<div class="col-sm-12 col-md-6 col-lg-3">
<h3>Peanut Butter</h3>
<p>Yummy peanut buttery goodness</p>
<img src="images/peanut-cookie.png" class = "img-fluid" alt="A single peanut butter cookie" />
</div>

<div class="col-sm-12 col-md-6 col-lg-3">
<h3>Oatmeal</h3>
<p>Your fitness instructors favorite</p>
<img src="images/oatmeal-cookie.png" class = "img-fluid" alt="A single oatmeal cookie" />
</div>

<h3>Oatmeal</h3>
<p>Your fitness instructors favorite</p>
<img src="images/oatmeal-cookie.png" alt="A single oatmeal cookie" />
<div class="col-sm-12 col-md-6 col-lg-3">
<h3>Chocolate Chip</h3>
<p>Gooey chocolate you'll love</p>
<img src="images/chip-cookie.png" class = "img-fluid" alt="A single chocolate chip cookie" />
</div>

<h3>Chocolate Chip</h3>
<p>Gooey chocolate you'll love</p>
<img src="images/chip-cookie.png" alt="A single chocolate chip cookie" />
</main>
<div>
<div class = "aboutus">
<h2>About us</h2>
<div class = "row" >
<div class = "col-2 offset-1">
<img src="images/bakers.svg" class = "img-fluid" style = "border-radius: 50%; width:150px; " alt="illustrations of two people baking" />
</div>

<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 class = "col-9">
<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>
</div>
</div>
</div>
<footer>
Expand All @@ -53,5 +76,7 @@ <h2>Contact us</h2>
(212) 555-1234
</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.2.3/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>

</body>
</html>