Ritesh and Jyoti-Progress Report
Ritesh and Jyoti-Progress Report
TECHNOLOGY
SESSION: -2022-24
Project Report
1. Introduction(Organization)-
1.1 Apptunix started its journey as a small mobile app development company.
1.2 Initially exploiting the art of impressive iOS app development, it soon spread its
wings and started offering Android and Hybrid App development services.
1.3 Now fully established as an expert mobile app development firm, Apptunix is
catering to the mobile needs of businesses around the world.
1.4 We offer top-notch services to build healthy and lasting client-relations.
1.5 Our ultimate goal is to become the most innovative and trend-setting mobile app
development company.
A food delivery website is an online platform that allows users to browse a variety of
food options, place orders, and have meals delivered to their desired location. These
websites typically feature:
At that time, it was only a one day since we joined the company. We were just revising
the basics which we had done in the university. We were revising the concepts of HTML
and CSS during a week and also get brief knowledge about JavaScript.
4. Hardware/Software Requirements
● Laptop
● Internet
● VS Code
● RAM :- 4GB
5. Design
6. Detailed Description of New Functionality(ies) added
or activity(ies) underwent
To provide a detailed description of the new functionalities or activities undergone in
developing a food delivery website using the provided React application structure, we'll outline
specific features and improvements that enhance the functionality and user experience of the
website.
Page Components:
Created separate page components (Home, Cart, PlaceOrder) to encapsulate
specific functionalities and content for each section of the website.
Each page component is responsible for rendering relevant UI elements and interacting
with data specific to its functionality (e.g., displaying food items, managing cart,
processing orders).
Footer Component:
Added a footer component (Footer) at the bottom of the website to provide additional
information, links, and contact details.
Enhances website usability by offering supplementary content and navigation options.
7. Code or Algorithm
Home:-
import React, { useState } from 'react'
import './Home.css'
import Header from '../../Components/Navbar/Header/Header'
import ExploreMenu from '../../Components/ExploreMenu/ExploreMenu'
import FoodDisplay from '../../Components/FoodDisplay/FoodDisplay'
import AppDownload from '../../Components/AppDownload/AppDownload'
const Home = () => {
const [category, setCategory] = useState('All')
return (
<div>
<Header />
<ExploreMenu category={category} setCategory={setCategory} />
<FoodDisplay category={category} />
<AppDownload />
</div>
)
}
Cart:-
import React, { useContext } from 'react'
import './Cart.css'
import { StoreContext } from '../../context/StoreContext'
import { useNavigate } from 'react-router-dom'
const Cart = () => {
const { cartItems, food_list, removeFromCart, getTotalCartAmount } =
useContext(StoreContext)
return (
<>
<div className='cart'>
<div className='cart-items'>
<div className='cart-items-title'>
<p>Items</p>
<p>Title</p>
<p>Price</p>
<p>Quantity</p>
<p>Total</p>
<p>Remove</p>
</div>
<br />
<hr />
{food_list.map(item => {
if (cartItems[item._id] > 0)
{ return (
<>
<div className='cart-items-title cart-items-item'>
<img src={item.image} alt='' />
<p>{item.name}</p>
<p>${item.price}</p>
<p>{cartItems[item._id]}</p>
<p>${item.price * cartItems[item._id]}</p>
<p
onClick={() => removeFromCart(item._id)}
className='cross'
>
x
</p>
</div>
<hr />
</>
)
}
})}
</div>
<div className='cart-bottom'>
<div className='cart-total'>
<h2>Cart Totals</h2>
<div>
<div className='cart-total-details'>
<p>SubTotal</p>
<p>${getTotalCartAmount()}</p>
</div>
<hr />
<div className='cart-total-details'>
<p>Delivery Fee</p>
<p>${2}</p>
</div>
<hr />
<div className='cart-total-details'>
<b>Total</b>
<b>${getTotalCartAmount() + 2}</b>
</div>
<hr />
</div>
<button onClick={() => navigate('/order')}>
Proceed To Checkout
</button>
</div>
<div className='cart-promocode'>
<div>
<p>if You Have A promo code ,Enter It here</p>
<div className='cart-promocode-input'>
<input type='text' placeholder='promo code' />
<button>Submit</button>
</div>
</div>
</div>
</div>
</div>
</>
)
}
8. References
https://www.w3schools.com/
https://www.simform.com/blog/react-libraries/
https://legacy.reactjs.org/
https://react.dev/