Skip to content
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 submissions/ayobamiJoshua/CSS/img 1.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 submissions/ayobamiJoshua/CSS/img 2.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 submissions/ayobamiJoshua/CSS/img 4.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 submissions/ayobamiJoshua/CSS/img 5.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 submissions/ayobamiJoshua/CSS/img3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
101 changes: 101 additions & 0 deletions submissions/ayobamiJoshua/CSS/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link rel="stylesheet" href="style.css">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Food Dash</title>
</head>
<body>
<section class="menu">
<div class="nav">
<div class="logo"><h1>Food<b>Dash</b></h1></div>
<ul>
<li><a class="active" href="#">Home</a></li>
<li><a href="#">Menu</a></li>
<li><a href="#">Service</a></li>
<li><a href="#">About Us</a></li>
<li><a href="#">Gallery</a></li>
</ul>
<div>
<input class="signin" type="submit" value="Sign In" name="signin">
<input class="signup" type="submit" value="Sign Up" name="signup">
</div>
</div>
</section>
<secion class="grid">
<div class="content">
<div class="content-left">
<div class="info">
<h2>Order Your Best <br>food anytime</h2>
<p>Hey, Our delicious food is waiting for you, <br>
We are always near to you with fresh item of food</p>
</div>
<button>Explore food</button>
</div>
<div class="content-right">
<img src="img 2.png" alt="">
</div>
</div>
</secion>
<section class="category">
<div class="list-items">
<h3>Popular Dishes</h3>
<div class="card-list">

<div class="card">
<img src="img 1.png" alt="">
<div class="food-title">
<h1>Chicken & Chips</h1>
</div>
<div class="desc-food">
<p>Grilled chicken served with potatoe chips.</p>
</div>
<div class="price">
<span>#4,500</span>
</div>
</div>

<div class="card">
<img src="img3.png" alt="">
<div class="food-title">
<h1>waffle</h1>
</div>
<div class="desc-food">
<p>waffle served with honey</p>
</div>
<div class="price">
<span>#4,500</span>
</div>
</div>

<div class="card">
<img src="img 4.png" alt="">
<div class="food-title">
<h1>Salad</h1>
</div>
<div class="desc-food">
<p>Salad mash</p>
</div>
<div class="price">
<span>#4,500</span>
</div>
</div>

<div class="card">
<img src="img 5.png" alt="">
<div class="food-title">
<h1>Chips</h1>
</div>
<div class="desc-food">
<p>potatoe chips.</p>
</div>
<div class="price">
<span>#5,000</span>
</div>
</div>
</div>
</div>
</section>
</body>
</html>
271 changes: 271 additions & 0 deletions submissions/ayobamiJoshua/CSS/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,271 @@
*,::after,::before{
margin: 0;
padding: 0;
box-sizing: border-box;
}

body{
margin: 0 100px;
background-color: bisque;
}



.nav{
width: 100%;
display: flex;
justify-content: space-between;
align-items: center;
padding: 30px 0;
}

.nav .logo h1{
font-weight: 600;
font-family: sans-serif;
color: black;
}

.nav .logo b{
color: #ff511c;
}

.nav ul{
display: flex;
list-style: none;
}

.nav ul li{
margin-right: 30px;
}

.nav ul li a{
text-decoration: none;
color: black;
font-family: sans-serif;
font-weight: 500;
font-size: 17px;
}



.nav ul .active::after{
content: '';
width: 50%;
height: 3px;
background-color: #ff511c;
display: flex;
position: relative;
margin-left: 10px;

}



input{
padding: 10px 20px;
cursor: pointer;
font-weight: 600;
}

.signin{
background: transparent;
border: none;
}

.signup{
background-color: #ff511c;
color: white;
outline: none;
border: none;
border-radius: 5px;
}




.content{
display: grid;
grid-template-columns: 50% auto;
gap: 30px;
margin-top: 120px;
align-items: center;
justify-content: space-between;
width: 100%;

}





.content .content-left{
display: block;
width: 100%;
}

.content .content-left .info{
max-width: 100%;
display: flex;
flex-direction: column;
}

.content .content-left .info h2{
font-size: 60px;
font-family: sans-serif;
margin-bottom: 30px;
}

.content .content-left .info p{
font-size: 20px;
line-height: 2pc;
margin-bottom: 30px;
font-family: sans-serif;
}




.content .content-left button{
padding: 10px 23px;
background-color: #ff511c;
color: white;
border-radius: 5px;
border: none;
cursor: pointer;
}





.content .content-right{
display: block;
width: 150px;
}

.content .content-right img{
width: 200px;
height: auto;
position: relative;
user-select: none;
animation: rotate 10s linear infinite;
}





@keyframes rotate {
0%{
transform: rotate(0deg);
}
100%{
transform: rotate(360deg);
}
}





.category{
width: 100%;
display: flex;
margin-bottom: 50px;
justify-content: center;
}

.category .list-items{
width: 90%;
position: relative;
margin-top: 80px;
}


.category .list-items h3{
font-size: 20px;
font-weight: 600;
font-family: sans-serif;
margin-bottom: 70px;
}

.category .list-items .card-list{
display: grid;
grid-template-columns:repeat(4, 1fr);
}

.category .card-list .card{
width: 200px;
height: auto;
display: block;
padding: 10px;
border-radius: 10px;
position: relative;
background: white;
outline: 2px solid #faad96;
}

.category .card-list .card img{
width: 60px;
height: auto;
bottom: 110px;
left: 70px;
object-fit: cover;
object-position: center;
background-repeat: no-repeat;
position: absolute;
box-shadow:0 20px 20px #faad96;
border-radius: 50%;

}

.category .card-list .card .food-tittle{
padding: 40px 0 10px;
}


.category .card-list .card .food-tittle h1{
text-align: center;
font-weight: bold;
font-size: 16px;
font-family: sans-serif;
}


.category .card .desc-food p{
font-size: 13px;
text-align: center;
font-weight: 500;
margin-bottom: 20px;
font-family: sans-serif;
}

.category .card .price{
display: flex;
align-items: center;
justify-content: space-between;
}


@media screen and (min-width: 600px) {
div{
padding: 25px 35px;
}
div li {
display: inline;
padding: 8px;
float: right;
}
}



::-webkit-scrollbar{
width: 10px;
}

::-webkit-scrollbar-thumb{
border-radius: 20px;
background-color: #ff511c;
}