Professional Documents
Culture Documents
THE DEGREE OF
AT
DEPARTMENT OF COMPUTER SCIENCE, APPLICATION &
ANIMATION
MR
1
UNDER THE GUIDANCE OF
PROJECT GUIDE
MS VANAJA A
Assistant Professor, Department of Computer Science & Application
St Aloysius College (Autonomous)
Mangaluru – 575 003
2
MS VANAJA A MS PRAFULLA
ACKNOWLEDGEMENT
We are tankful to our Principal Rev. Dr Praveen Martis S J, Dr Ravindra Swami K (Dean)
and Ms Prafulla (HOD) Department of Computer science for their support throughout the
project work.
We also acknowledge the supports and fruitful guidance of project internal as well External
guide, Ms A Vanaja (Department of Computer Science, Applications and Animation)
forgiving us all the necessary information and guiding us, which was the key for successful
completion of this project.
Signature
3
TABLE OF CONTENTS
1 Introduction of simple food and restaurant 5
webpage (front end)
2 Code 6-44
4 conclusion 46
5 Resource 46
4
INTRODUCTION
⦁ Name of the project : SIMPLE FOOD AND REASTURANT WEBPAGE
(FRONT END)
⦁ Description:
Food is a driving force for many. It does come under one of the most
basic amenities for a human being. And when it comes to a country as
busy as India in its peak lunch hours getting a glance at the menu card
before ordering food is also a huge problem.
5
The most important advantage of food delivery is by
providing food whenever or wherever you want. Nowadays people
are too busy at times, but food delivery service helps them to grab a
bite in their busy schedule. Here I provide you with the most
significant advantages of online food delivery service.
To solve this problem our team has created a “FOOD DELIVERY
WEBPAGE” in frontend using HTML , Java script and CSS.
⦁ Background study : Websites are intended to provide rich information
and quality service. It acts as a connecting line between diverse individuals
around the world. As an internet tool, it is in itself diverse in many ways
depending on the content that the website provides. Having a computerized
system in an organization makes the tasks easy, because it will help to access
data in a shorter period of time unlike the manual form that can duplicate errors
in the part of the concerns.
Code :
HTML
6
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<link
href="https://fonts.googleapis.com/css2?family=Oswald:wght@200;400;500
&family=Roboto:wght@100;300;400;500&display=swap"
rel="stylesheet">
</head>
<body>
<header>
7
<nav class="navbar">
<li><a href="#about">about</a></li>
<li><a href="#menu">menu</a></li>
<li><a href="#popular">popular</a></li>
<li><a href="#gallery">gallery</a></li>
</nav>
</header>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Iure, odit distinctio error
corporis adipiscimolestias eveniet optio quaerat tempore asperiores!</p>
</div>
</div>
</section>
8
<section class="about" id="about">
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Ea accusantium eligendi a
totam consequatur!
Quis minus amet iusto iure repudiandae, incidunt enim fugiat ipsa? Iure quam et quo quos
quisquam!</p>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Sint totam pariatur saepe sit
nostrum
</div>
</section>
</ul>
9
<img src="/images/menu2.jpg" id="menu-img" alt="">
</div>
<div class="content">
<div class="info">
<p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Illum, vero?</p>
</div>
<div class="info">
<p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Illum, vero?</p>
</div>
<div class="info">
<p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Illum, vero?</p>
</div>
<div class="info">
<p>Lorem ipsum, dolor sit amet consectetur adipisicing elit. Illum, vero?</p>
</section>
<div>
10
<h1><i class="fa fa-shopping-cart"></i>cart</h1>
<div class="box-container">
<h3>delicious food</h3>
<div class="stars">
</div>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Alias, suscipit?</p>
<h6 class="price">Rs269.00</h6>
<span></span>
<button>Add to cart</button>
</div>
<h3>delicious food</h3>
<div class="stars">
11
<i class="fas fa-star"></i>
</div>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Alias, suscipit?</p>
<h6 class="price">Rs269.00</h6>
<span></span>
<button>add to cart</button>
</div>
<h3>delicious food</h3>
<div class="stars">
</div>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Alias, suscipit?</p>
<h6 class="price">Rs269.00</h6>
<span></span>
<button>add to cart</button>
</div>
12
<img src="/images/product-4.jpg" alt="">
<h3>delicious food</h3>
<div class="stars">
</div>
<p>Lorem ipsum dolor sit amet consectetur adipisicing elit. Alias, suscipit?</p>
<h6 class="price">Rs269.00</h6>
<span></span>
<button>add to cart</button>
</div> </div>
</section>
<div class="box-container">
<img src="/images/img1.jpg"">
<h3>delicious food</h3>
13
</div>
<h3>delicious food</h3>
</div>
<h3>delicious food</h3>
</div>
<h3>delicious food</h3>
</div>
<h3>delicious food</h3>
</div>
<h3>delicious food</h3>
</div> </div>
</section>
14
<section class="order" id="order">
<div class="row">
</form>
</div>
</div>
</section>
<div class="footer">
<div class="box-container">
<div class="box">
<h3>contact info</h3>
15
<p> <i class="fas fa-envelope"></i> example@gmail.com </p>
</div>
<div class="box">
<h3>branch location</h3>
<a href="#">india</a>
<a href="#">USA</a>
<a href="#">france</a>
<a href="#">canada</a>
</div>
<div class="box">
<a href="#">home</a>
<a href="#">about</a>
<a href="#">menu</a>
<a href="#">popular</a>
<a href="#">gallery</a>
<a href="#">order</a>
</div>
<div class="box">
<h3>follow us</h3>
<a href="#">instagram</a>
<a href="#">facebook</a>
<a href="#">twitter</a>
16
<a href="#">linkedin</a>
</div>
</div>
</div>
<script src="https://cdnjs.cloudflare.com/ajax/libs/aos/2.3.4/aos.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
<script src="script.js"></script>
<script>
AOS.init({
delay: 400,
duration: 1000
})
</script>
</body>
</html>
CSS
17
:root{
--yellow:#F7CA3E;
*{
margin:0; padding:0;
box-sizing: border-box;
text-decoration: none;
text-transform: capitalize;
h2, h3{
*::selection{
background:var(--yellow);
color:#fff; }
html{
font-size: 62.5%;
overflow-x: hidden; }
body{
overflow-x: hidden;
/* height:200rem; */}
html::-webkit-scrollbar{
width:1.4rem; }
18
html::-webkit-scrollbar-track{
background:#333; }
html::-webkit-scrollbar-thumb{
background:var(--yellow); }
section{
min-height: 100vh;
padding:1rem 10%;
padding-top: 8.5rem; }
.btn{
font-size: 1.7rem;
padding:.7rem 4rem;
border-radius: 5rem;
margin-top: 1rem;
background:none;
color:#333;
cursor: pointer;
.btn:hover{
background:var(--yellow); }
.heading{
text-align: center;
font-size: 4rem;
padding:0 .5rem;
color:#333; }
19
.heading span{
color:var(--yellow); }
header{
position: fixed;
top:0; left:0;
z-index: 1000;
width:100%;
background:#fff;
padding:1.5rem 10%;
display: flex;
align-items: center;
justify-content: space-between; }
height:5rem; }
display: flex;
align-items: center;
justify-content: center;
list-style: none; }
margin-left: 3rem; }
header .navbar ul li a{
font-size: 1.7rem;
20
color:#666; }
color:var(--yellow); }
header #menu-bar{
font-size: 3rem;
color:#666;
cursor: pointer;
display: none; }
.home{
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
position: relative;
z-index: 0;
overflow: hidden; }
.home::before,
.home::after{
content:'';
position: absolute;
top:5rem; right:-6rem;
background:var(--yellow);
border-radius: 3rem;
21
transform:rotate(-45deg);
height:40rem;
width:70rem;
z-index: -2;
@keyframes animte{
0%{
transform:rotate(45deg) translateY(-40rem); }}
.home::before{
top:-7rem;
background:#fff;
z-index: -1; }
.home .image{
flex:1 1 39rem; }
width:100%; }
.home .content{
flex:1 1 39rem; }
color:#333;
font-size: 6rem; }
.home .content p{
color:#666;
22
font-size: 2rem;
padding:1rem 0; }
.about{
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap; }
.about .image{
flex:1 1 40rem;
height:50rem;
background-size: cover;
background-position: center;
background-blend-mode: screen;}
.about .content{
flex:1 1 40rem;
padding:2rem; }
font-size: 4rem;
color:#333; }
.about .content p{
font-size: 1.6rem;
color:#666;
padding:1rem 0;}
23
.menu .list{
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap;
list-style: none;
padding:1rem 0;
margin:2rem 0;
margin:1rem;}
background:var(--yellow);
color:#fff; }
.menu .row{
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap; }
margin:2rem;
padding:2rem;
24
flex:1 1 40rem;
border-radius: 1rem;
width:100%;
object-fit: cover;
border-radius: 1rem; }
flex:1 1 40rem; }
padding:1rem 0; }
display: flex;
align-items: center;
font-size: 2.4rem;
color:#333; }
padding-right: 1rem;
color:var(--yellow); }
padding:1rem 0;
padding-left: 4.5rem;
font-size: 1.5rem;
color:#666; }
25
.popular{
background:linear-gradient(rgba(255,255,255,.7),rgba(255,255,255,.7)),
url(/images/popular-bg.jpg) no-repeat;
background-size: cover;
background-position: center;
background-attachment: fixed; }
.popular .box-container{
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap; }
background:#fff;
width:35rem;
padding:2rem;
margin:2rem;
border-radius: 1rem;
text-align: center; }
height:20rem;
width:100%;
object-fit: cover; }
26
color:#333;
font-size: 3rem;
font-weight: normal; }
color:var(--yellow);
font-size: 2rem;
padding:1rem .1rem; }
color:#666;
font-size: 2.5rem; }
transform: scale(1.02);
.gallery .box-container{
display: flex;
align-items: center;
justify-content: center;
flex-wrap: wrap; }
height:20rem;
width:30rem;
margin:2rem;
cursor: pointer;
overflow: hidden;
27
position: relative; }
height:100%;
width:100%;
object-fit: cover; }
position: absolute;
top:100%; left:50%;
color:#fff;
text-align: center;
font-size: 3rem;
opacity: 0; }
top:50%;
opacity: 1;
transition-delay: .2s; }
content: '';
position: absolute;
top:-100%; left:0;
height:100%;
width: 100%;
background:rgba(0,0,0,.7);
28
transition:.2s linear; }
top:0; }
.order{
background:url(../images/contact-bg.jpg) no-repeat;
background-size: cover;
background-position: center; }
.order .row{
display: flex;
background:#fff;
margin:2rem 0;
overflow: hidden;
border-radius: 1rem;}
flex:1 1 40%; }
height:100%;
width:100%;
object-fit: cover; }
flex:1 1 60%;
background:#fff;
padding:2rem; }
29
.order .row form .box{
padding:1rem;
margin:1rem 0;
font-size: 1.5rem;
color:#333;
text-transform: none;
background:#f0f0f0;
width:100%; }
text-transform: capitalize; }
resize: none;
height:15rem; }
.footer{
background:#282727;
padding:1rem 7%; }
.footer .box-container{
display: flex;
flex-wrap: wrap;}
flex:1 1 25rem;
margin:2rem;}
font-size: 2.5rem;
30
color:#fff;
padding:1rem 0;
font-weight: normal; }
font-size: 1.7rem;
color:#eee;
padding:1rem 0; }
font-size: 1.7rem;
color:#eee;
padding:1rem 0;
display: block; }
color:var(--yellow);}
padding-right: .5rem;
color:var(--yellow);}
.footer .credit{
font-size: 2rem;
text-align: center;
padding:2rem 1rem;
font-weight: normal;
letter-spacing: .1rem;
31
color:#fff;}
.footer .credit a{
color:var(--yellow);}
/* media queries */
@media (max-width:991px){
html{
font-size: 55%; }
.home::before,
.home::after{
display: none;}
@media (max-width:768px){
header #menu-bar{
display: block; }
header .navbar{
position: fixed;
top:8rem; left:0;
width:100%;
background:var(--yellow);
transform:scaleY(0);
transform-origin: top;
opacity: 0;}
32
flex-flow: column;
padding:2rem;}
margin:1.5rem;
width: 100%;}
header .navbar ul li a{
display: block;
color:#fff;
padding-left: 2rem;
font-size: 2rem;}
color:#333;
border-color: #333;}
.fa-times{
transform:rotate(180deg);}
header .navbar.nav-toggle{
transform:scaleY(1);
opacity: 1;}
.home .content{
text-align: center;}
font-size: 4.5rem;}
33
.order .row .image{
display: none;}}
@media (max-width:500px){
html{
font-size: 50%;}
section{
padding:1rem 5%;
padding-top: 8.5rem;}}
/*Add to cart*/
@import url('https://stackpath.bootstrapcdn.com/font-awesome/4.7.0/css/font-
awesome.min.css');
h1{
width: 3%;
position:relative;
font-size: 20px;
left: 90%;
cursor: pointer;
top:-8px;
h1:before{
content: attr(data-count);
position: absolute;
color: white;
right: 16px;
34
font-size: 15px;
text-align: center;
top: -15px;
width: 20px;
height: 20px;
background: red;
border-radius: 50%;
opacity: 0;}
h1.zero:before{
opacity: 1;}
button{
padding: 5px;
background: red;
border: none;
outline: none;
font-weight: bold;
color: #fafafa;
cursor: pointer;}
position: absolute;
top: 14px;
left: 13px;
width: 300px;
height: 186px;
35
display: none;}
width: 100%;
height: 100%;}
section div:nth-child(1)>span.active{
z-index: 2;
display: block;}
section div:nth-child(2)>span.active{
z-index: 2;
display: block;}
section div:nth-child(3)>span.active{
z-index: 2;
display: block;}
section div:nth-child(4)>span.active{
z-index: 2;
display: block;}
@keyframes first{
to{
width: 30px;
height: 20px;
36
left: 1290px;
top:-70px;}}
@keyframes second{
to{
width: 30px;
height: 20px;
left: 948px;
top:-70px;}}
@keyframes third{
to{
width: 30px;
height: 20px;
left: 645px;
top:-70px;}}
@keyframes four{
to{
width: 30px;
height: 20px;
left: 265px;
top:-70px;}}
.select{
width: 60%;
height: 580px;
background: #222;
37
position: absolute;
top: -1000px;
left: 20%;
transition: 0.5s;
overflow-y: auto;
margin: auto;}
.select.display{
top: 2850px;
z-index:1000;}
.select div{
width: 100%;
height: 200px;
display: flex;
padding: 0px;
position: relative;
margin: auto;}
width: 300px;
height: 100%;}
.select div p{
padding: 10px;
color: white;
38
font-size: 20px;}
.select h3{
position: relative;
top:50%;
left:40%;
color: white;
font-size: 15px;}
.select .price{
position: relative;
top:50%;
right: 50%;
font-size: 20px;
color: white;}
position: absolute;
top: 0px;
left:0px;
color: white;}
position: relative;
top:70%;
left:90%;}
39
position: absolute;
color: white;}
top: 45%;
left: 80%;}
display: none;}
@media (min-width:888px){
.select div{
width: 100%;
height: 200px;
display: flex;
padding: 0px;
position: relative;
margin: auto;}
width: 300px;
height: 100%;}
.select div p{
padding: 10px;
color: white;
font-size: 15px;}
.select .price{
40
position: relative;
top:50%;
right: 25%;
font-size: 15x;
color: white;}
position: absolute;
color: white;}
position: relative;
top:75%;
left:66%;}
position: absolute;
color: white;}
top: 45%;
left: 80%;}
display: none;}}
.select.display{
top: 2500px;
41
z-index:1000;}
.select div{
width: 100%;
height: 150px;
display: flex;
padding: 0px;
position: relative;
margin: auto;}
width: 120px;
height: 100%;}
.select div p{
font-size: 8px;
float: left;
margin-right: 51px;
padding: 12px;
position: relative;}
.select h3{
position: relative;
top: 3%;
left: 2%;
font-size: 9px;}
.select .price{
42
position: relative;
top: 68%;
left: -132px;
font-size: 14px;}
display: none;}
top: 84%;
left: 65%;
font-size: 8px;}
@media (min-width:400px){
.select .price{
position: relative;
left: -47%;}}
@media (min-width:460px){
.select h3{
font-size: 15px;}
.select div p{
font-size: 13px;
margin-left: 10px;}
.select .price{
position: relative;
left: -71%;
top: 83%;
43
font-size: 5px;}
display: none;}
left: 75%;
font-size: 9px;}}
@media (min-width:550px){
.select h3{
font-size: 15px;}
.select div p{
font-size: 13px;
margin-left: 10px;}
.select .price{
position: relative;
left: -45%;
top: 83%;}}
@media (min-width:670px){
.select div{
width: 100%;
height: 200px;
display: flex;
padding: 0px;
position: relative;
44
margin: auto;}
.select h3{
font-size: 21px;}
width: 200px;
height: 100%;}
.select div p{
padding: 10px;
color: white;
font-size: 15px;
margin-left: 10px;}
.select .price{
position: relative;
top:77%;
left: -186px;
font-size: 15x;
color: white;}
position: absolute;
color: white;}
top: 72%;
left: 80%;}}
45
@media (min-width:800px){
.select div p{
padding: 15px;
margin-left: 14px;
font-size: 17px; }
.select h3{
font-size: 21px;}}
.select .price{
font-size: 17px; }
font-size: 11px;}}
@media (min-width:1000px){
.select.display{
top: 3300px;
z-index:1000;}
.select div{
width: 100%;
height: 200px;
display: flex;
padding: 0px;
position: relative;
margin: auto;}
46
width: 300px;
height: 100%;}
.select div p{
padding: 2px;
font-size: 15px;
margin-top: 20px;
left: 28px;}
.select h3{
position: relative;
top: 6%;
left: 3%;
font-size: 18px;}
.select .price{
top:73%;
font-size: 17px;}
top: 67%;
left: 80%;
font-size: 17px;}}
@media (min-width:1100px){
.select div p{
font-size: 20px;}}
@media (min-width:1400px){
.select .price{
47
left: -44%;}}
JAVASCRIPT
$(document).ready(function(){
$('#menu-bar').click(function(){
$(this).toggleClass('fa-times');
$('.navbar').toggleClass('nav-toggle');});
$(window).on('load scroll',function(){
$('#menu-bar').removeClass('fa-times');
$('.navbar').removeClass('nav-toggle');
$('section').each(function(){
let id = $(this).attr('id');
$('.navbar ul li a').removeClass('active');
$('.navbar').find(`[href="#${id}"]`).addClass('active');
});});
$('.list .btn').click(function(){
$(this).addClass('active').siblings().removeClass('active');
});
48
});
for(but of button){
but.addEventListener('click',(e)=>{
noti.setAttribute('data-count',add+1);
noti.classList.add('zero');
select.appendChild(clone);
clone.lastElementChild.innerText="Buy-now";
if(clone){
noti.onclick=()=>{
select.classList.toggle('display');}}
//image to cart//
var image=e.target.parentNode.querySelector('img');
var span=e.target.parentNode.querySelector('span');
span.appendChild(s_image);
span.classList.add('active');
setTimeout(()=>{
49
span.removeChild(s_image);
span.classList.remove('active');
},500);
})}
50
Conclusion:
package in satisfying all the requirements of the school. The objective of
software planning is to provide a frame work that enables the manger to make
reasonable estimates made within a limited time frame at the beginning of the
51
software project and should be updated regularly as the project progresses.At
the end it is concluded that we have made effort on following points..
.• A description of the background and context of the project and its relation to
workalready done in the area.
• Made statement of the aims and objectives of the project.
• The description of Purpose. Scope, and applicability
• We define the problem on which we are working in the project
. • We describe the requirement Specifications of the system and the actions thatcan be
done on these things.
• We understand the problem domain and produce a model of the system,
whichdescribes operations that can be performed on the system.
• We included features and operations in detail, including screen layouts
• We designed user interface and security issues related to system . Finally the system is
implemented and tested according to test cases
52