Skip to content
This repository was archived by the owner on Jan 14, 2024. It is now read-only.
Closed
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
65 changes: 62 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
@@ -1,16 +1,75 @@

<!DOCTYPE html>
<html lang="en">

<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>
<link rel="stylesheet" type="text/css" href="style.css">

<title>Testing</title>
<!-- Add a link to your css file here -->
</head>

<body>
<!-- Add your markup here -->
<header>
<a href="index.html" class="header-brand">CAKEWORLD</a>
<nav>
<ul>
<li> <a href="HOME.html">HOME </a> </li>
<li> <a href="CAKES.html">CAKES </a> </li>
<li> <a href="ORDERING.html">ORDERING </a> </li>
<li> <a href="LESSONS.html">LESSONS</a> </li>
<li> <a href="ABOUT.html">ABOUT</a> </li>
</ul>
<a href="CONTACT.html" class="header-cases">CONTACT</a>
</nav>
</header>
<main>
<section class="index-banner">
<div class="vertical-center">
<h2>HELLO</h2>
<h1>We pride ourselves in using the finest quality ingredients, and taking the upmost care in the production of our cakes. It is a great honour for us to share our customers’ most important occasions, and we pride ourselves in delivering first-rate customer service as well as delicious and beautiful cakes.</h1>
</div>
</section>
<section class="index-links">
<a href="#">
<div class="index-boxlink-1">
<h3>CAKE 1</h3>
</div>
</a>
<a href="#">
<div class="index-boxlink-1">
<h3>CAKE 2</h3>
</div>
</a>
<a href="#">
<div class="index-boxlink-1">
<h3>CAKE 3</h3>
</div>
</a>
<a href="#">
<div class="index-boxlink-1">
<h3>CAKE 4</h3>
</div>
</a>
</section>
</main>
<footer>
<ul class="footer-links-main">
<li><a href="#"></a>SITE MAP</li>
<li><a href="#">CONTACT</a></li>
<li><a href="#">DELIVERY</a></li>
<li><a href="#">FRANCHISE</a></li>
<li><a href="#">PRIVACY POLICY</a></li>
</ul>

</footer>




</body>
</html>

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

body{
background-color:#f3f3f3;
}
*{
text-decoration: none;
}
header{
background-color:#fff;
width:100%;
height:100px;
}
.header-brand{
font-family:catamaran;
font-size:24px;
font-weight:1000;
color:#111;
display:block;
margin:auto;
text-align:center;
padding:20px 0;

}
header nav ul {
display:block;
margin:0 auto;
width:fit-content;
}
header nav ul li {
display:inline-block;
float:right;
list style:none;
padding: 0 16px;
}

header nav ul li a {
font-family:catamaran;#
font-size:16px;
color:#111;

}
header .header-cases{
display:none;
}
@media only screen and (min-width:768px){
.header-brand{
margin: 0;
text-align:left;
padding:0px 20px 0px 30px;
border-right:3px solid #111;
float:left;
}
header nav ul {
margin:20px 0px 0px 20px;
justify-content: flex-end;
}

header nav ul li a {
font-family:catamaran;#
font-size:16px;
color:#111;
line-height:60px
}
header .header-cases{


}
}
.index-banner{
display: flex;
width:100%;
align-items: center;
height: calc(100vh-100px);
background-image:url(https://imagesvc.meredithcorp.io/v3/mm/image?url=https%3A%2F%2Fimg1.cookinglight.timeinc.net%2Fsites%2Fdefault%2Ffiles%2Fstyles%2Fmedium_2x%2Fpublic%2F1542062283%2Fchocolate-and-cream-layer-cake-1812-cover.jpg%3Fitok%3DrEWL7AIN);
background-repeat:no-repeat;
background-position:center;
background-size:cover
}

.vertical-center{
display:table-cell;
vertical-align:middle;
align-items: flex-start;
text-align: left;
}

.index-banner h2{
font-family:Rboto;
font-size:60px;
color:#fff;
text-align:center;
font-weight:900;
}

.index-banner h1{
font-family:Courir;
font-size:20px;
font-style:italic;
line-height:30px;
color:#fff;
text-align:center;
font-weight:100;
}
.index-links div{
margin:10px 10px 0;
display: flex;
flex-direction: column;
width:calc(100%-20px);
background-color:sandybrown;
}



@media only screen and (min-width:768px){

.index-banner{
width:100%;
height: 400px;
background-image:url(https://imagesvc.meredithcorp.io/v3/mm/image?url=https%3A%2F%2Fimg1.cookinglight.timeinc.net%2Fsites%2Fdefault%2Ffiles%2Fstyles%2Fmedium_2x%2Fpublic%2F1542062283%2Fchocolate-and-cream-layer-cake-1812-cover.jpg%3Fitok%3DrEWL7AIN);
background-repeat:no-repeat;
background-position:center;
background-size:cover
}
.index-banner h1{
display:center;
margin: 0 auto;
flex-direction: row;
justify-content: space-around;
}

.index-links div {
flex-direction: row;
width: 20%;
}
.index-links div h3{
font-family:Courir;
font-size:10x;
font-style:italic;
line-height:30px;
color:#111;
align-items:center;
flex-direction: row;
text-align:center;
font-weight:80;
line-height:100px;
width:20%;
}
}
/*FOOTER*/
footer{
width:calc(100%- 80px);
padding:40px 40px;
margin-top:20px;
background-color:black;
overflow:hidden;
}

footer ul{
width:fit-content;
padding-left:20px;
}

footer ul a{
color:white;
font-family:Catamaran;
font-size:20px;
line-height:30px;
}

.footer-links-main{
text-align: center;
align-items: center;
}