Skip to content
This repository was archived by the owner on Jan 14, 2024. It is now read-only.
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
5713c61
Added header markup to index.html
m4ndycheung Feb 8, 2023
69e5174
Created image folder
m4ndycheung Feb 8, 2023
212b1f6
Added to index.html
m4ndycheung Feb 8, 2023
dc36538
Added cupcakes
m4ndycheung Feb 8, 2023
e3fc6f9
Added social icons and gallery images
m4ndycheung Feb 8, 2023
ed00f69
Added container around all contents in the body for grid
m4ndycheung Feb 8, 2023
e1062dd
Updated index.html
m4ndycheung Feb 8, 2023
35e2724
Added to general section in style.css
m4ndycheung Feb 8, 2023
3d42cce
Created a cupcake logo
m4ndycheung Feb 8, 2023
87c719f
Removed styling from lists and links
m4ndycheung Feb 8, 2023
1964985
Adjusted social media icon sizes in footer
m4ndycheung Feb 8, 2023
a7a399b
Centered footer text and social media icons
m4ndycheung Feb 8, 2023
774be1d
Updated footer
m4ndycheung Feb 8, 2023
205bf66
Added Grid to index.html
m4ndycheung Feb 8, 2023
33104e6
Added Main Grid rows
m4ndycheung Feb 8, 2023
bdf8b47
Edited the grid-rows for each section
m4ndycheung Feb 8, 2023
50d5361
Added colours and fonts to root in css
m4ndycheung Feb 9, 2023
5d3f67b
Aligned header text to the right
m4ndycheung Feb 9, 2023
06a41a2
Updated index.html and style.css
m4ndycheung Feb 9, 2023
57c6d06
Updated index.html and style.css
m4ndycheung Feb 9, 2023
2dd18dc
Created menu icon
m4ndycheung Feb 9, 2023
a792b0f
Updated index.html and style.css
m4ndycheung Feb 9, 2023
49a2177
Created menu.css so that css is separate from main styles
m4ndycheung Feb 9, 2023
41124bd
Updated media query at 900px
m4ndycheung Feb 9, 2023
d9c9c7d
Updated 900px media query
m4ndycheung Feb 9, 2023
7105092
Aligned main text
m4ndycheung Feb 9, 2023
845fa50
Updated media query 900px
m4ndycheung Feb 9, 2023
47399ee
Updated media query 900px
m4ndycheung Feb 10, 2023
242217a
Fixed grid for mobile screens
m4ndycheung Feb 10, 2023
b4a2457
Aligned the header logo and text!!!
m4ndycheung Feb 11, 2023
5aa9ff6
Fixed the nav bar alignment at 900px media query
m4ndycheung Feb 11, 2023
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 images/cupcake-hero.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/cupcake-logo.png
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/cupcakes-1.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/cupcakes-2.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/cupcakes-3.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/cupcakes-4.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/fb.png
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/ig.png
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/tw.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
111 changes: 109 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,118 @@
<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 -->
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="menu.css" />
</head>

<body>
<!-- Add your markup here -->
<div class="body__container">

<header class="header grid__full">

<div class="header__container second__grid">
<div class="header__1">
<div>
<a href="#">
<div class="logo">
<div class="logo__img"></div>
<p class="logo__text">basic_cupcake</p>
</div>
</a>
<nav class="nav__bar">
<input class="menu__btn" type="checkbox" id="menu__btn" />
<label class="menu__icon" for="menu__btn">
<span class="nav__icon"></span>
</label>
<ul class="menu unstyled__list">
<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>
</div>
</div>
<div class="header__2">
<p class="header__text">The best cakes in town delivered to your door</p>
</div>
</div>

</header>

<nav class="big__nav">
<ul class="menu unstyled__list">
<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>
<div class="section__break"></div>
</nav>



<main class="main__grid grid__center">
<div class="main__text">
<h1>Welcome</h1>
<p>Umami vaporware tote bag mlkshk PBR&B truffaut polaroid cloud bread. XOXO hot chicken artisan kinfolk. Biodiesel vegan cred, bushwick hammock normcore sustainable tilde coloring book four loko health goth church-key. Plaid activated charcoal food truck, man bun fixie locavore craft beer mlkshk lo-fi four loko big mood chia hammock.</p>
</div>
<div class="main__image">
<img src="images/cupcake-hero.jpg" alt="assortment of cupcakes on display" />
</div>
</main>

<section class="portfolio__section grid__center">
<h1>Some of our cakes</h1>
<div class="portfolio__grid">
<div class="item1">
<img src="images/cupcakes-1.jpg" alt="cookies and cream cupcakes" />
</div>
<div class="item2">
<img src="images/cupcakes-2.jpg" alt="basic vanilla sprinkle cupcakes" />
</div>
<div class="item3">
<img src="images/cupcakes-3.jpg" alt="chocolate cupcakes" />
</div>
<div class="item4">
<img src="images/cupcakes-4.jpg" alt="rainbow cream cupcakes" />
</div>
</div>
</section>

<footer class="grid__full">
<div class="second__grid">
<ul class="social__icons unstyled__list">
<li >
<a href="#" class="icon__flex flex__row">
<div class="fb icon"></div>
<p>Facebook</p>
</a>
</li>
<li >
<a href="#" class="icon__flex flex__row">
<div class="ig icon"></div>
<p>Instagram</p>
</a>
</li>
<li>
<a href="#" class="icon__flex flex__row">
<div class="tw icon"></div>
<p>Twitter</p>
</a>
</li>
</ul>

<p class="center__text">
© 2023 Basic_Cupcake. All rights reserved. Basic_Cupcake is a private company in Scotland no. 13411713.
</p>
</div>
</footer>

</div>

</body>

</html>
88 changes: 88 additions & 0 deletions menu.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
/* nav menu */
.header ul {
margin: 0;
padding: 0;
overflow: hidden;
background-color: var(--main__clr);
}

.header ul a {
display: block;
outline: 1px solid var(--accent__clr);
padding: 10px;
}

.header ul a:hover {
background-color: var(--second__clr);
}

.header .menu {
clear: both;
max-height: 0;
transition: max-height 0.2s ease-out;
}

.header .menu__icon {
padding: 50px 0px;
position: relative;
float: right;
cursor: pointer;
}

/* creating the menu icon inside the label tag */
.header .menu__icon .nav__icon {
background: #000;
display: block;
height: 3px;
width: 20px;
position: relative;
transition: background 0.2s ease-out;
}

/* Adds additional lines to menu icon */
.header .menu__icon .nav__icon:before {
background: #000;
content: "";
display: block;
height: 100%;
width: 100%;
position: absolute;
transition: all 0.2s ease-out;
top: 5px;
}

.header .menu__icon .nav__icon:after {
background: #000;
content: "";
display: block;
height: 100%;
width: 100%;
position: absolute;
transition: all 0.2s ease-out;
top: -5px;
}

.header .menu__btn {
display: none;
}

/* general sibling combinator (~) selects the next sibling with class of .menu */
.header .menu__btn:checked ~ .menu {
max-height: 240px;
}

/* menu icon animation */
.header .menu__btn:checked ~ .menu__icon .nav__icon {
background: transparent;
}

.header .menu__btn:checked ~ .menu__icon .nav__icon:before {
top: 0;
transform: rotate(-45deg);
}

.header .menu__btn:checked ~ .menu__icon .nav__icon:after {
top: 0;
transform: rotate(45deg);
}

Loading