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

London class 8 - Yigit Demirer #266

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
55 changes: 52 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,61 @@
<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 -->
<title>House of Cakes</title>
<link rel="stylesheet" href="style.css">
</head>

<body>
<!-- Add your markup here -->
<div class="container">
<div class="header">
<img src="https://i.ibb.co/9qJzwvT/whisklogo-1.png" class="logo" alt="logo">
<div class="nav">
<span></span>
<span></span>
<span></span>
</div>
<div class="promo">Made with the freshest <br>and finest ingredients.</div>
</div>
<div class="menu">
<a href="">Home</a>
<a href="">Cakes</a>
<a href="">Ordering</a>
<a href="">Lessons</a>
<a href="">About</a>
</div>
<div class="hero_media">
<div class="content">
<h1 class="title"> Cake<br><span class="subscription">Subscription</span></h1> <p>Join us today <br>Monthly plan for only £29.99</p>
</div>
<div class="banner"></div>
</div>
<div class="section">
<figure class="macarons">
<div class="content-overlay"></div>
<img src="https://i.ibb.co/nQRw4K5/macarons-1.png" class="features" alt="macarons">
</figure>
<figure class="cookies">
<div class="content-overlay"></div>
<img src="https://i.ibb.co/7jDHTQc/Cookies-1.png" class="features" alt="cookies">
</figure>
<figure class="donuts">
<div class="content-overlay"></div>
<img src="https://i.ibb.co/6tV4Ztq/donuts-1.png" class="features" alt="donuts">
</figure>
<figure class="cupcakes">
<div class="content-overlay"></div>
<img src="https://i.ibb.co/6NwJtRV/Cupcakes-1.png" class="features" alt="cupcakes">
</figure>
</div>
<div class="footer">
<div class="link_title">
<a href="">OUR RECIPES</a>
<a href="">JOIN OUR MAILING LIST</a>
<a href="">MEET THE TEAM</a>
</div>
<p class="copyrights">©2021 House of Cakes Ltd. All rights reserved.</p>
</div>
</div>
</body>

</html>
267 changes: 267 additions & 0 deletions style.css
Original file line number Diff line number Diff line change
@@ -1 +1,268 @@
/* Add your styling here */

@import url("https://fonts.googleapis.com/css?family=Montserrat&display=swap");

@import url('https://fonts.googleapis.com/css2?family=Bungee&display=swap');

@import url('https://fonts.googleapis.com/css?family=Raleway');


.container{
display: grid;
grid-template-areas:
"header"
"content"
"banner"
"section"
"footer";
gap: 2em;
}



.header{
background-color: #eef8fc;
grid-area: header;
padding-top: 2rem;
display: flex;
justify-content: space-between;
}

.logo{
width: 120px;
height: auto;
}

.nav{
position: absolute;
right: 1rem;
top: 1rem;
}

.promo{
position: relative;
right: 1rem;
top: 6.6rem;
font-family: montserrat;
font-size: 0.9rem;
text-align: center;
text-shadow: 2px 2px 2px rgba(0,0,0,0.2);
}

.nav span{
display: block;
width: 1.8rem;
height: 0.25rem;
margin-bottom: 0.2rem;
position: relative;
background: #479761;
border-radius: 0.18rem;
z-index: 1;
}

.content{
height: auto;
grid-area: content;
font-family: bungee;
font-size: 1.6em;
text-align: center;
color: #32333c;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
}

h1 {
text-shadow: 4px 4px 2px rgba(41, 37, 37, 0.2);
}

.subscription{
font-size: 80%;
text-shadow: 4px 4px 2px rgba(41, 37, 37, 0.2);
}

p{
font-family: montserrat;
font-size: 1.4rem;
text-shadow: 2px 2px 2px rgba(0,0,0,0.2);
}

.banner{
background: url(https://images.unsplash.com/photo-1524678516592-b3fbf8938717?ixlib=rb-1.2.1&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2938&q=80);
background-position: center;
background-size: cover;
height: 320px; width: 100%;
grid-area: banner;
}

.section {
grid-area: section;
display: grid;
grid-template-areas:
"macarons cookies"
"donuts cupcakes";
padding-bottom: 2rem;
grid-template: max-content;
align-items: center;
justify-content: space-evenly;
}

img.features {
width: 100%;
height: auto;
object-fit: cover;
cursor: pointer;
}

figure{
max-width: 140px;
max-height: 10em;
margin: 10 auto;
height: 300px;
}

.macarons {
grid-area: macarons;
}

.cookies {
grid-area: cookies;
}

.donuts {
grid-area: donuts;
}

.cupcakes {
grid-area: cupcakes;
}

.footer {
background-color: #c0fdd2;
grid-area: footer;
min-height: 180px;
display: flex;
flex-direction: column;
justify-content: center;
padding-left: 5%;
}

.link_title a{
text-decoration: none;
font-family: bungee;
color: #45454c;
font-size: 1em;
display: flex;
flex-direction: column;
padding: 5px;
width: auto;
padding-bottom: 1rem;

}
.copyrights {
font-size: 0.6rem;
text-align: center;
color: slategray;
font-family: raleway;
}

.menu {
margin-right:10px;
margin-left:10px;
background-color: #eef8fc;
grid-area: menu;
padding: 1rem;
display: none;
justify-content: flex-end;
align-items: center;
}

.menu a {
margin: 2px;
padding: 5px;
padding-top: 2px;
padding-bottom: 2px;
text-decoration: none;
font-family: bungee;
color: #45454c;
font-size: 1em;
background-color: slategrey;
display: none;
}

@media (min-width: 540px) {

.banner {
height: 360px;
}

.menu {
display: flex;
}

.menu a {
display: block;
}

.container{
display: grid;
grid-template-areas:
"header"
"menu"
"content"
"banner"
"section"
"footer";
gap: 2em;
}

.nav {
display: none;
}

}

@media (min-width: 900px) {
.banner { height: 450px; }

.section {
grid-area: section;
display: flex;
justify-content: space-evenly;
gap: 1em;
padding-top: 2rem;
height: auto;
}

.link_title {
display: flex;
gap: 2rem;
justify-content: center;
}

.hero_media {
display: flex;
flex-direction: row-reverse;
justify-content: space-between;
gap: 2rem;
grid-area: hero;
text-align: right;
}

.banner {
height: 400px;
width: 60%;
}

.container{
display: grid;
grid-template-areas:
"header"
"menu"
"hero"
"section"
"footer";
gap: 2em;
}
}