Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fri-6pm-web-dev-bootstrap-lab-5.2-mujie-shen #115

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
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
56 changes: 40 additions & 16 deletions alternating.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,28 +3,52 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="css/styles.css" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/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" />
<div class="container text-center">
<div class="row align-items-center justify-content-center">
<div class="col-sm-12 col-md-8 order-md-1">
<h3>Mint Chocolate</h3>
<p>Tasty mint chocolate cookies</p>
</div>
<div class="col-sm-12 col-md-4 order-md-2">
<img src="images/mint-cookie.png" class="img-fluid rounded-circle" alt="A single mint chocolate cookie" />
</div>
</div>
<div class="row align-items-center justify-content-center">
<div class="col-sm-12 col-md-8 order-md-2">
<h3>Peanut Butter</h3>
<p>Yummy peanut buttery goodness</p>
</div>
<div class="col-sm-12 col-md-4 order-md-1">
<img src="images/peanut-cookie.png" class="img-fluid rounded-circle" alt="A single peanut butter cookie" />
</div>
</div>
<div class="row align-items-center justify-content-center">
<div class="col-sm-12 col-md-8 order-md-1">
<h3>Oatmeal</h3>
<p>Your fitness instructors favorite</p>
</div>
<div class="col-sm-12 col-md-4 order-md-2">
<img src="images/oatmeal-cookie.png" class="img-fluid rounded-circle" alt="A single oatmeal cookie" />
</div>
</div>
<div class="row align-items-center justify-content-center">
<div class="col-sm-12 col-md-8 order-md-2">
<h3>Chocolate Chip</h3>
<p>Gooey chocolate you'll love</p>
</div>
<div class="col-sm-12 col-md-4 order-md-1">
<img src="images/chip-cookie.png" class="img-fluid rounded-circle" alt="A single chocolate chip cookie" />
</div>
</div>
</div>
</main>
</body>
</html>
89 changes: 89 additions & 0 deletions css/styles.css
Original file line number Diff line number Diff line change
@@ -1 +1,90 @@
/* Add custom css styles here */
body {
max-width: fit-content;
font-family: Arial, Helvetica, sans-serif;
}

header {
height: 540px;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
background-image: url("../images/coffee-biscuits.jpg");
background-size: cover;
background-position: center;
}

header .container {
width: auto;
margin-inline: auto;
background-color: rgba(30, 30, 30, 0.7);
color: white;
border-radius: 25px;
padding: 50px;
}

header .container h1 {
font-size: 4em;
font-weight: lighter;
}

header .container p {
font-size: 1.8em;
font-weight: lighter;
letter-spacing: 0.5px;
}

main {
text-align: center;
padding: 50px;
}

.container {
margin: 40px auto;
vertical-align: middle;
}

p {
font-size: 1.4em;
vertical-align: middle;
letter-spacing: 0.5px;
}

main h2 {
font-size: 3.2em;
margin-bottom: 10px;
}

main h3 {
font-size: 2.5em;
margin-bottom: 10px;
}

.aboutus {
color: black;
background-color:rgb(250, 250, 250);
padding: 50px;
}

.aboutus h2, footer h2 {
text-align: center;
font-size: 2.8em;
margin-bottom: 20px;
}

footer {
height: 300px;
text-align: center;
display: flex;
justify-content: center;
align-items: center;
background-color: rgb(64, 112, 255);
padding: 50px;
}

footer .container {
max-width: 400px;
margin-inline: auto;
color: white;
}
89 changes: 54 additions & 35 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,55 +3,74 @@
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="stylesheet" href="css/styles.css" />
<link href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css" rel="stylesheet" integrity="sha384-rbsA2VBKQhggwzxH7pPCaAqO46MgnOM80zW1RWuH61DGLwZJEdK2Kadq2F9CUG65" crossorigin="anonymous">
<title>Cookie Store</title>
</head>
<body>
<header>
<h1>Cookie Store</h1>
<p>Buy our awesome cookies. All proceeds go to charity!</p>
<div class="container">
<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" />
<div class="container">
<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 rounded-circle" alt="A single mint chocolate cookie" />
</div>
<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 rounded-circle" 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 rounded-circle" alt="A single oatmeal cookie" />
</div>
<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 rounded-circle" alt="A single chocolate chip cookie" />
</div>
</div>
</div>
</main>
<div>
<div class="aboutus">
<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 class="row">
<div class="col-sm-3 col-md-3 col-lg-2 photo">
<img src="images/bakers.svg" class="img-fluid rounded-circle" alt="illustrations of two people baking" />
</div>
<div class="col-sm-9 col-md-9 col-lg-10">
<p>
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.
</p>
</div>
</div>
</div>
<footer>
<h2>Contact us</h2>
<div>
100 Broadway Avenue,<br />
New York, NY 10001 <br />
(212) 555-1234
<div class="container">
<h2>Contact us</h2>
<p>
100 Broadway Avenue,<br />
New York, NY 10001 <br />
(212) 555-1234
</p>
</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.bundle.min.js" integrity="sha384-kenU1KFdBIe4zVF0s0G1M5b4hcpxyD9F7jL+jjXkk+Q2h455rYXK/7HAuoJl+0I4" crossorigin="anonymous"></script>
</body>
</html>
Loading