added restaurant_website
This commit is contained in:
parent
d8ff5d13f1
commit
a4b485e7b8
3 changed files with 678 additions and 0 deletions
223
restaurant_website/index.html
Normal file
223
restaurant_website/index.html
Normal file
|
@ -0,0 +1,223 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>FUJISAN</title>
|
||||
<link rel="shortcut icon" href="images/logo.png">
|
||||
<link rel="stylesheet" href="style.css">
|
||||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.2.1/css/all.min.css">
|
||||
<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=Klee+One:wght@400;600&family=Montserrat:wght@300;400;500;600;700;800;900&family=Norican&family=Poppins:ital,wght@0,100;0,300;1,100;1,300&display=swap" rel="stylesheet">
|
||||
<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=Klee+One:wght@400;600&family=Montserrat:wght@300;400;500;600;700;800;900&family=Norican&family=Vujahday+Script&display=swap" rel="stylesheet">
|
||||
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="container">
|
||||
<div class="navbar">
|
||||
<div class="logo">
|
||||
<a href=""><img src="images/logo.png"></a>
|
||||
<span>FUJISAN</span>
|
||||
</div>
|
||||
<nav>
|
||||
<div class="heading-btn">
|
||||
<i class="close-btn fas fa-times-circle"></i>
|
||||
</div>
|
||||
<li><a href="">HOME</a></li>
|
||||
<li><a href="">MENU</a></li>
|
||||
<li><a href="">ORDERING</a></li>
|
||||
<li><a href="#reservation">RESERVATION</a></li>
|
||||
<li><a href="">ABOUT</a></li>
|
||||
<li><a href="">CONTACT</a></li>
|
||||
</nav>
|
||||
<div class="heading-btn">
|
||||
<i class="menu-btn fas fa-bars"></i>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</header>
|
||||
|
||||
<section id="home">
|
||||
<div class="container">
|
||||
<div class="home-content">
|
||||
<h2>HAVE A GOOD DAY WITH A GOOD MEAL</h2>
|
||||
<h3>Fresh ingredients make great food.</h3>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section class="post-menu" id="post">
|
||||
<div class="container">
|
||||
<h1 class="post-heading">Luxury & Quality</h1>
|
||||
<div class="post-box">
|
||||
<div class="box">
|
||||
<div class="post-img">
|
||||
<img src="images/post1.jpg" alt="">
|
||||
</div>
|
||||
<div class="post-content">
|
||||
<h3>PROFESSIONAL CHEFS</h3>
|
||||
<p>Don't dunk your nigiri in the soy sauce. Don't mix your wasabi in the soy sauce. If the rice is good,
|
||||
complement your sushi chef on the rice.</p>
|
||||
<a href="" class="post-btn">Read More</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<div class="post-img">
|
||||
<img src="images/post2.jpg" alt="">
|
||||
</div>
|
||||
<div class="post-content">
|
||||
<h3>FRESH FOOD GAURANTEED</h3>
|
||||
<p>Don't dunk your nigiri in the soy sauce. Don't mix your wasabi in the soy sauce. If the rice is good,
|
||||
complement your sushi chef on the rice.</p>
|
||||
<a href="" class="post-btn">Read More</a>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="box">
|
||||
<div class="post-img">
|
||||
<img src="images/post3.jpg" alt="">
|
||||
</div>
|
||||
<div class="post-content">
|
||||
<h3>THE MENU IS PLENTIFUL</h3>
|
||||
<p>Don't dunk your nigiri in the soy sauce. Don't mix your wasabi in the soy sauce. If the rice is good,
|
||||
complement your sushi chef on the rice.</p>
|
||||
<a href="" class="post-btn">Read More</a>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="static">
|
||||
<div class="container">
|
||||
<div class="static-content">
|
||||
<div class="static-num">
|
||||
<div class="num" data="293">293</div>
|
||||
<h2>Best Dishes</h2>
|
||||
</div>
|
||||
<div class="static-num">
|
||||
<div class="num" data="999">999</div>
|
||||
<h2>Awards won</h2>
|
||||
</div>
|
||||
<div class="static-num">
|
||||
<div class="num" data="148">148</div>
|
||||
<h2>Our Chefs</h2>
|
||||
</div>
|
||||
<div class="static-num">
|
||||
<div class="num" data="278">278</div>
|
||||
<h2>Daily Customers</h2>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</section>
|
||||
|
||||
<section id="chef-special">
|
||||
<div class="container">
|
||||
<div class="special-content">
|
||||
<div class="special-left">
|
||||
<div class="special-left-side">
|
||||
<h3>Chef's Special</h3>
|
||||
</div>
|
||||
<!--chef1-->
|
||||
<div class="img-container">
|
||||
<div class="special-imgs">
|
||||
<img src="images/chef1.jpg">
|
||||
<div class="special-img-text">
|
||||
<h4>Sake Donburi with Ikura</h4>
|
||||
<p>A bowl of steamed sushi rice, topped with fresh salmon, ikura, shiso leaves, and shredded nori on top.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="price">
|
||||
<p>$17.99</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--chef2-->
|
||||
<div class="img-container">
|
||||
<div class="special-imgs">
|
||||
<img src="images/chef2.jpg">
|
||||
<div class="special-img-text">
|
||||
<h4>Shrimp Okonomiyaki</h4>
|
||||
<p>Tempura fried shrimp, corn, Creole butter, arare.</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="price">
|
||||
<p>$13.99</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--chef3-->
|
||||
<div class="img-container">
|
||||
<div class="special-imgs">
|
||||
<img src="images/chef3.jpg">
|
||||
<div class="special-img-text">
|
||||
<h4>Wagyu Nigiri</h4>
|
||||
<p>Thinly sliced savory wagyu steak, pressed over sushi rice (4 pieces).</p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="price">
|
||||
<p>$16.99</p>
|
||||
</div>
|
||||
</div>
|
||||
<!--chef4-->
|
||||
<div class="img-container">
|
||||
<div class="special-imgs">
|
||||
<img src="images/chef4.jpg">
|
||||
<div class="special-img-text">
|
||||
<h4>Zaru Soba</h4>
|
||||
<p>Cold soba noodles dipped in Tsuyu sauce. </p>
|
||||
</div>
|
||||
</div>
|
||||
<div class="price">
|
||||
<p>$7.99</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="special-right">
|
||||
<div class="special-right-img">
|
||||
<img src="images/logo.png">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<section id="reservation">
|
||||
<div class="container">
|
||||
<div class="reservation-form">
|
||||
<h3>Reservation</h3>
|
||||
<form action="">
|
||||
<input type="text" placeholder="First name">
|
||||
<input type="text" placeholder="Phone number">
|
||||
<input type="email" placeholder="Email">
|
||||
<input type="number" placeholder="Number of guests" min="1">
|
||||
<input type="date" placeholder="Date">
|
||||
<select name="hours">
|
||||
<option value="hour-select">Select your time</option>
|
||||
<option value="10">17:00</option>
|
||||
<option value="10">17:30</option>
|
||||
<option value="10">18:00</option>
|
||||
<option value="10">18:30</option>
|
||||
<option value="10">19:00</option>
|
||||
<option value="10">19:30</option>
|
||||
<option value="10">20:00</option>
|
||||
<option value="10">20:30</option>
|
||||
<option value="10">21:00</option>
|
||||
<option value="10">21:30</option>
|
||||
<option value="10">22:00</option>
|
||||
</select>
|
||||
<textarea name="" id="" cols="10" rows="5" placeholder="Special request"></textarea>
|
||||
<button type="submit">Book table</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
<script src="main.js"></script>
|
||||
|
||||
</body>
|
||||
</html>
|
38
restaurant_website/main.js
Normal file
38
restaurant_website/main.js
Normal file
|
@ -0,0 +1,38 @@
|
|||
let menu = document.querySelector('nav')
|
||||
let menubtn = document.querySelector('.menu-btn')
|
||||
let closebtn = document.querySelector('.close-btn')
|
||||
|
||||
menubtn.addEventListener('click', function(){
|
||||
menu.classList.add('active');
|
||||
});
|
||||
closebtn.addEventListener('click', function(){
|
||||
menu.classList.remove('active');
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
const staticContentE1 = document.querySelectorAll('.num');
|
||||
|
||||
staticContentE1.forEach((staticContentE1) =>{
|
||||
staticContentE1.innerText = "0";
|
||||
increamentCounter();
|
||||
|
||||
function increamentCounter(){
|
||||
let currentNum = +staticContentE1.innerText;
|
||||
const dataCeil = staticContentE1.getAttribute('data')
|
||||
const increament = dataCeil/15;
|
||||
currentNum = Math.ceil(currentNum+increament);
|
||||
|
||||
if(currentNum < dataCeil){
|
||||
staticContentE1.innerText = currentNum;
|
||||
setTimeout(increamentCounter, 70);
|
||||
}
|
||||
else{
|
||||
staticContentE1.innerHTML = dataCeil
|
||||
}
|
||||
}
|
||||
});
|
417
restaurant_website/style.css
Normal file
417
restaurant_website/style.css
Normal file
|
@ -0,0 +1,417 @@
|
|||
*{
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
box-sizing: border-box;
|
||||
list-style: none;
|
||||
text-decoration: none;
|
||||
scroll-behavior: smooth;
|
||||
font-family: 'Poppins', sans-serif;
|
||||
}
|
||||
:root{
|
||||
--bg-color:snow;
|
||||
--main-color:rgb(177, 126, 5);
|
||||
--minor-color:rgb(49, 48, 48);
|
||||
--other-color:dimgray;
|
||||
--text-color:black;
|
||||
--box-shadow:10px 10px 5px rgba(0, 0, 0, 0.5);
|
||||
}
|
||||
html{
|
||||
font-size: 100%;
|
||||
}
|
||||
a{
|
||||
text-decoration: none;
|
||||
}
|
||||
.container{
|
||||
max-width: 1500px;
|
||||
margin: auto;
|
||||
padding: 0 100px;
|
||||
}
|
||||
header{
|
||||
width: 100%;
|
||||
padding: 1rem 0;
|
||||
background: rgba(243, 241, 241, 0.85);
|
||||
position: fixed;
|
||||
z-index: 1;
|
||||
}
|
||||
.logo img{
|
||||
display: block;
|
||||
object-fit: cover;
|
||||
width: 15%;
|
||||
}
|
||||
.logo span{
|
||||
font-family: 'Vujahday Script';
|
||||
font-size: 1rem;
|
||||
font-weight: 600;
|
||||
}
|
||||
.navbar{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
}
|
||||
.navbar nav{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.navbar nav li{
|
||||
margin: 0 1rem;
|
||||
}
|
||||
.navbar nav a{
|
||||
font-size: 1rem;
|
||||
color: var(--main-color);
|
||||
font-weight: 600;
|
||||
position: relative;
|
||||
cursor: pointer;
|
||||
}
|
||||
.navbar nav a:hover{
|
||||
color: var(--other-color);
|
||||
}
|
||||
.heading-btn i{
|
||||
font-size: 1.5rem;
|
||||
color: var(--main-color);
|
||||
cursor: pointer;
|
||||
display: none;
|
||||
}
|
||||
#home{
|
||||
background: url(images/header.jpg) no-repeat center center/cover;
|
||||
min-height: 100vh;
|
||||
position: relative;
|
||||
z-index: -10;
|
||||
}
|
||||
#home::before{
|
||||
content: '';
|
||||
background: rgba(57, 57, 57, 0.4);
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
z-index: -11;
|
||||
}
|
||||
.home-content{
|
||||
min-height: 100vh;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
justify-content: center;
|
||||
flex-direction: column;
|
||||
}
|
||||
.home-content h2{
|
||||
font-size: 3.5rem;
|
||||
font-family: 'Vujahday Script';
|
||||
color: var(--bg-color);
|
||||
text-align: center;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
.home-content h3{
|
||||
font-size: 2rem;
|
||||
font-family: 'Vujahday Script';
|
||||
color: var(--bg-color);
|
||||
text-align: center;
|
||||
letter-spacing: 1px;
|
||||
}
|
||||
/*--------------------------------------------------------------------------------------------------------------------------*/
|
||||
#post{
|
||||
padding: 10rem 0 ;
|
||||
}
|
||||
.post-heading{
|
||||
text-align: center;
|
||||
font-size: 3.5rem;
|
||||
font-family:'Vujahday Script';
|
||||
color: var(--main-color);
|
||||
padding-bottom: 2rem;
|
||||
}
|
||||
.post-box{
|
||||
display: flex;
|
||||
gap: 1.5rem;
|
||||
}
|
||||
.post-box .box{
|
||||
width: 33%;
|
||||
background: var(--minor-color);
|
||||
text-align: center;
|
||||
padding-bottom: 1%;
|
||||
}
|
||||
.post-box .box .post-img{
|
||||
height: 25rem;
|
||||
width: 100%;
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
}
|
||||
.post-box .box .post-img img{
|
||||
height: 100%;
|
||||
width: 100%;
|
||||
object-fit: cover;
|
||||
}
|
||||
.post-box .box .post-img:hover img{
|
||||
transform: scale(1.1);
|
||||
}
|
||||
.post-box .box .post-content{
|
||||
padding: 2rem;
|
||||
padding-top: 2rem;
|
||||
}
|
||||
.post-box .box .post-content h3{
|
||||
font-size: 1.5rem;
|
||||
color: var(--main-color);
|
||||
}
|
||||
.post-box .box .post-content p{
|
||||
font-size: 1rem;
|
||||
color: var(--bg-color);
|
||||
padding: 1rem 0;
|
||||
line-height: 1.5;
|
||||
}
|
||||
.post-box .box .post-content .post-btn{
|
||||
display: inline-block;
|
||||
width: 50%;
|
||||
border: none;
|
||||
padding: 0.5rem 0;
|
||||
border: 1px solid var(--main-color);
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
background: var(--minor-color);
|
||||
color: var(--bg-color);
|
||||
transition: all 0.5s ease-in-out;
|
||||
}
|
||||
.post-box .box .post-content .post-btn:hover{
|
||||
background-color: var(--main-color);
|
||||
color: var(--bg-color);
|
||||
}
|
||||
/*--------------------------------------------------------------------------------------------------------------------------*/
|
||||
#static{
|
||||
background: url(images/static.jpg) no-repeat center center/cover;
|
||||
padding: 10rem 0;
|
||||
position: relative;
|
||||
z-index: -1;
|
||||
}
|
||||
#static::after{
|
||||
content: '';
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background: rgba(0, 0, 0, 0.7);
|
||||
z-index: -1;
|
||||
}
|
||||
.static-content{
|
||||
display: grid;
|
||||
grid-template-columns: repeat(4, 1fr);
|
||||
text-align: center;
|
||||
color: var(--main-color);
|
||||
grid-gap: 2rem;
|
||||
}
|
||||
.static-num{
|
||||
border: 1px solid var(--main-color);
|
||||
padding: 2rem;
|
||||
color: var(--bg-color);
|
||||
border-radius: 4px;
|
||||
}
|
||||
.num{
|
||||
font-size: 4.5rem;
|
||||
}
|
||||
.static-num h2{
|
||||
font-size: 1.5rem;
|
||||
color: var(--main-color);
|
||||
}
|
||||
/*--------------------------------------------------------------------------------------------------------------------------*/
|
||||
#chef-special{
|
||||
padding: 10rem 0;
|
||||
}
|
||||
.special-content{
|
||||
display: grid;
|
||||
grid-template-columns: repeat(2, 1fr);
|
||||
width: 100%;
|
||||
grid-gap: 5rem;
|
||||
}
|
||||
.special-left-side h3{
|
||||
font-size: 3.5rem;
|
||||
font-family:'Vujahday Script';
|
||||
color: var(--main-color);
|
||||
}
|
||||
.img-container{
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
padding: 1rem 0;
|
||||
}
|
||||
.special-imgs{
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
.special-imgs img{
|
||||
display: block;
|
||||
object-fit: cover;
|
||||
width: 90px;
|
||||
height: 90px;
|
||||
}
|
||||
.special-img-text{
|
||||
padding-left: 3rem;
|
||||
}
|
||||
.special-img-text h4{
|
||||
font-size: 1.1rem;
|
||||
font-weight: 600;
|
||||
padding-block-end: 0.5rem;
|
||||
}
|
||||
.img-container .price{
|
||||
font-weight: 600;
|
||||
font-size: 1rem;
|
||||
border: 1px solid var(--main-color);
|
||||
background-color: var(--main-color);
|
||||
color: var(--bg-color);
|
||||
padding: 0.5rem;
|
||||
border-radius: 50%;
|
||||
}
|
||||
.special-right{
|
||||
width: 100%;
|
||||
}
|
||||
.special-right-img img{
|
||||
width: 100%;
|
||||
height: auto;
|
||||
display: block;
|
||||
object-fit: cover;
|
||||
}
|
||||
/*-----------------------------------------------------------------------------------*/
|
||||
#reservation{
|
||||
background: url(images/reserve.jpg) no-repeat center center/cover;
|
||||
background-attachment: fixed;
|
||||
padding: 6rem 0;
|
||||
}
|
||||
.reservation-form{
|
||||
background: rgb(186, 183, 176);
|
||||
padding: 2rem;
|
||||
width: 50%;
|
||||
}
|
||||
.reservation-form h3{
|
||||
font-size: 3.5rem;
|
||||
font-family:'Vujahday Script';
|
||||
color: var(--main-color);
|
||||
text-align: center;
|
||||
}
|
||||
.reservation-form form{
|
||||
padding: 2rem 0;
|
||||
}
|
||||
.reservation-form form input{
|
||||
width: 49.5%;
|
||||
padding: 0.3rem 0.4rem;
|
||||
margin-bottom: 1rem;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
outline: none;
|
||||
}
|
||||
.reservation-form form textarea{
|
||||
width: 100%;
|
||||
padding: 1rem 0.4rem;
|
||||
margin-bottom: 1rem;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
outline: none;
|
||||
}
|
||||
.reservation-form form select{
|
||||
width: 49.5%;
|
||||
padding: 0.3rem 0.4rem;
|
||||
margin-bottom: 1rem;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
background: white;
|
||||
}
|
||||
.reservation-form form button{
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
border: none;
|
||||
padding: 0.5rem 0;
|
||||
border: none;
|
||||
border-radius: 5px;
|
||||
cursor: pointer;
|
||||
background: white;
|
||||
transition: all 0.5s ease-in-out;
|
||||
}
|
||||
.reservation-form form button:hover{
|
||||
background-color: var(--main-color);
|
||||
color: var(--bg-color);
|
||||
}
|
||||
/*--------------------------------------------------------------------------------------------------------------------------*/
|
||||
|
||||
|
||||
@media(max-width:1100px){
|
||||
html{
|
||||
font-size: 80%;
|
||||
}
|
||||
.heading-container{
|
||||
padding: 0 60px;
|
||||
}
|
||||
.logo span{
|
||||
font-size: 0.8rem;
|
||||
}
|
||||
.reservation-form{
|
||||
width: 70%;
|
||||
}
|
||||
}
|
||||
@media(max-width:900px){
|
||||
html{
|
||||
font-size: 60%;
|
||||
}
|
||||
.heading-container{
|
||||
padding: 0 50px;
|
||||
}
|
||||
.heading-btn i{
|
||||
display: block;
|
||||
}
|
||||
.navbar nav{
|
||||
min-width: 100%;
|
||||
min-height: 60vh;
|
||||
position: fixed;
|
||||
flex-direction: column;
|
||||
top: 0;
|
||||
right: 100%;
|
||||
align-items: center;
|
||||
transition: all 0.5s ease-in-out;
|
||||
justify-content: center;
|
||||
background: var(--minor-color);
|
||||
}
|
||||
nav.active{
|
||||
right: 0%;
|
||||
transition: all 0.8s ease-in;
|
||||
}
|
||||
.navbar nav li{
|
||||
margin: 1rem 2rem;
|
||||
}
|
||||
.navbar nav li a{
|
||||
font-size: 1.2rem;
|
||||
}
|
||||
.navbar nav a:hover{
|
||||
color: var(--bg-color);
|
||||
}
|
||||
.close-btn{
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 90%;
|
||||
margin: 20px;
|
||||
}
|
||||
}
|
||||
@media(max-width:780px){
|
||||
.special-content{
|
||||
grid-template-columns: repeat(1, 1fr);
|
||||
}
|
||||
.reservation-form{
|
||||
width: 100%;
|
||||
}
|
||||
.reservation-form form input{
|
||||
width: 100%;
|
||||
}
|
||||
.post-menu .post-box{
|
||||
flex-wrap: wrap;
|
||||
}
|
||||
.post-menu .post-box .box{
|
||||
width: 100%;
|
||||
}
|
||||
.static-content{
|
||||
grid-template-columns: repeat(2,1fr);
|
||||
}
|
||||
}
|
||||
@media(max-width:450px){
|
||||
html{
|
||||
font-size: 40%;
|
||||
}
|
||||
.static-content{
|
||||
grid-template-columns: repeat(1,1fr);
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Add table
Reference in a new issue