Skip to content
This repository was archived by the owner on Jan 14, 2024. It is now read-only.

London10-StellaDelMar-RodriguezHTML-CSS-COURSEWORKweek3 #521

Open
wants to merge 1 commit into
base: master
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
Binary file added .DS_Store
Binary file not shown.
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"liveServer.settings.port": 5501
}
Binary file added cakepics/cake-main.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 cakepics/cake.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 cakepics/cake2.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 cakepics/cake3.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 cakepics/cake4.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 cakepics/smallcake.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 design/.DS_Store
Binary file not shown.
79 changes: 65 additions & 14 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,67 @@
<!DOCTYPE html>
<html lang="en">
<html>
<head>
<title>Cake &amp; Co.</title>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link rel="preconnect" href="https://fonts.googleapis.com" />
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin />
<link
href="https://fonts.googleapis.com/css2?family=Quicksand&display=swap"
rel="stylesheet"
/>
<link rel="stylesheet" href="/style.css" />
</head>
<body>
<header style="height: 100px">
<img src="/cakepics/smallcake.jpg" alt="cake" />
<h2>The best cakes delivered in town</h2>
</header>
<nav>
<ul>
<li><a href="#">Home</a></li>
<li><a href="#">Cakes</a></li>
<li><a href="#">Order</a></li>
<li><a href="#">Lessons</a></li>
<li><a href="#">About</a></li>
</ul>
</nav>
<main>
<section>
<div class="wrapper">
<img src="/cakepics/cake-main.jpg" alt="Cake image" />
<article>
<h2>About our cakes</h2>
<p>
Cake is a beloved dessert enjoyed all around the world. A good
cake should have the perfect texture - moist but not too dense,
with a soft, tender crumb. Achieving the perfect texture requires
careful measurements and precise baking techniques. Whether you're
using a traditional recipe or experimenting with new flavors, a
well-made cake is a treat for the taste buds and a delight for the
eyes.
</p>
</article>
</div>
</section>
<section class="section__cakes">
<div>
<img src="/cakepics/cake.jpg" alt="Cake image" />
</div>
<div>
<img src="/cakepics/cake2.jpg" alt="Cake image" />
</div>
<div>
<img src="cakepics/cake3.jpg" alt="Cake image" />
</div>
<div>
<img src="/cakepics/cake4.jpg" alt="Cake image" />
</div>
</section>
</main>

<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta http-equiv="X-UA-Compatible" content="ie=edge">
<title>Responsive Cake webpage</title>
<!-- Add a link to your css file here -->
</head>

<body>
<!-- Add your markup here -->
</body>

</html>
<footer>
<!-- Footer content goes here -->
</footer>
</body>
</html>
193 changes: 193 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -1 +1,194 @@
/* Add your styling here */
* {
box-sizing: border-box;
margin: 0;
padding: 0;
font-family: "Quicksand", sans-serif;
}

/* Set the root font size to 16px */
html {
font-size: 16px;
}

/* Style the header */
header {
height: 100px;
background-color: #fff;
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 2rem;
}

/* Style the logo */
header .logo {
font-size: 2rem;
font-weight: bold;
color: #333;
}

/* Style the navigation bar */
nav {
margin: 2rem 0;
}

nav ul {
list-style: none;
display: flex;
justify-content: flex-end;
}

nav li {
margin: 0 1rem;
}

nav a {
color: #333;
text-decoration: none;
font-weight: bold;
text-transform: uppercase;
padding: 1rem;
}

nav a:hover {
color: #555;
background-color: #f4f4f4;
border-radius: 4px;
}

/* Style the main section */
main {
display: flex;
flex-wrap: wrap;
justify-content: center;
max-width: 1200px;
margin: 2rem auto;
}

section {
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
}

section article {
width: 50%;
display: flex;
flex-direction: column;
justify-content: center;
gap: 5rem;
}

.wrapper {
display: flex;
gap: 1rem;
}

.section__cakes {
margin-top: 2rem;
gap: 1rem;
}

/* Style the cakes section */
.cakes {
display: flex;
flex-wrap: wrap;
justify-content: center;
max-width: 1200px;
margin: 2rem auto;
}

.cake {
width: calc(25% - 2rem);
margin: 1rem;
}

.cake img {
width: 100%;
height: auto;
margin-bottom: 1rem;
}

.cake h3 {
font-size: 1.5rem;
margin-bottom: 0.5rem;
}

.cake p {
font-size: 1rem;
line-height: 1.5;
margin-bottom: 1rem;
}

/* Style the footer */
footer {
background-color: #333;
color: #fff;
text-align: center;
padding: 2rem;
margin-top: 2rem;
}

/* Responsive styles */

@media screen and (max-width: 1200px) {
.section__cakes {
display: grid;
grid-template-columns: 1fr 1fr;
}
}
@media screen and (max-width: 768px) {
header {
height: auto;
padding: 1rem;
}

header .logo {
margin-bottom: 1rem;
}

nav {
margin-top: 1rem;
}

nav li {
margin: 1rem 0;
}

main {
margin: 1rem;
}

.wrapper {
flex-direction: column;
}

section img {
width: 100%;
margin-right: 0;
margin-bottom: 1rem;
}

section article {
width: 100%;
}

.cakes {
margin: 1rem;
}
}

@media screen and (max-width: 468px) {
nav ul {
flex-direction: column;
align-items: center;
}

.section__cakes {
flex-direction: column;
}
}

Binary file added untitled folder.textClipping
Binary file not shown.