Project 222 a Ecommerce Website Using HTML Css and Javascript
Project 222 a Ecommerce Website Using HTML Css and Javascript
A PROJECT REPORT
ON
E-COMMERCE MGMT.SYSTEM
Submi琀琀ed in par琀椀al ful昀椀llment of the requirement
For the award of the degree of
Roll No.
2100925011014
AFFLIATED TO
A PROJECT REPORT
ON
E-COMMERCE MGMT.SYSTEM
Submi琀琀ed in par琀椀al ful昀椀llment of the requirement
For the award of the degree of
BY
MADHUR GUPTA
ROLL.NO-2100925011014
AFFLIATED TO
Acknowledgement
With regards
Signature of Student :- Madhur Gupta
Introduction
3. Project Design
In order to design a web site, the rela琀椀onal database must be designed
昀椀rst. Conceptual design can be divided into two parts: The data model and
the process model. The data model focuses on what data should be stored
in the database while the process model deals with how the data is
processed. To put this in the context of the rela琀椀onal database, the data
model is used to design the rela琀椀onal tables. The process model is used to
design the queries that will access and perform opera琀椀ons on those tables.
Customers can’t always see and touch the product in real life before
purchasing.
Potential customers must be somewhat tech-savvy, potentially limiting
market reach.
Less ‘personal’ shopping experiences.
Potential for fraud, data privacy issues, etc.
The majority of eCommerce websites on the internet are B2C retailers. However, there
are many types of eCommerce websites:
Amazon.com
Walmart.com
Target.com
eBay.com
Alibaba
Flipkart.com
Fast Purchase
Customer Data Insights
Reduced Cost
Product Comparison
Multiple Payments
Data Model
A data model is a conceptual representa琀椀on of the data structures
that are required by a database. The 昀椀rst step in designing a database is to
develop an En琀椀ty-Rela琀椀on Diagram (ERD). The ERD serves as a blue print
from which a rela琀椀onal database maybe deduced. Figure 1 shows the ERD
for the project and later we will show the transforma琀椀on from ERD to the
Re la琀椀onal model
What is eCommerce
implementation?
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width,
initial-scale=1.0">
<title>Document</title>
<link rel="stylesheet" href="web.css">
<script src="https://kit.fontawesome.com/f30fac2c61.js"
crossorigin="anonymous"></script>
<link
href="https://fonts.googleapis.com/css2?
family=Abril+Fatface&family=Catamaran:wght@200&family=Courg
ette&family=Edu+TAS+Beginner:wght@700&family=Lato:wght@300;
900&family=Mukta:wght@700&family=Mulish:wght@300&family=Ope
n+Sans&family=PT+Sans:ital,wght@1,700&family=Poppins:wght@3
00&family=Raleway:wght@100&family=Roboto&family=Roboto+Cond
ensed:wght@700&family=Roboto+Slab&display=swap"
rel="stylesheet">
</head>
<body>
<div class="container">
<nav>
<div class="logo">
<h1>Trends</h1>
</div>
<ul>
<li>
<a id="home" onclick="homes()">Home</a>
<a id="shop"
onclick="shops()">Shops</a>
<a id="blog" onclick="blogs()">Blog</a>
<a id="about"
onclick="abouts()">About</a>
<a id="contact"
onclick="contacts()">Contact</a>
<i class="fa-sharp fa-solid fa-cart-
shopping"></i>
</li>
</ul>
</nav>
<div class="main">
<div class="mainText">
<h2>Trends</h2>
<h1 class="top">Super Value Deals</h1>
<h1>On All Products</h1>
<p>Lorem ipsum dolor, sit amet consectetur
adipisicing elit. Nisi</p>
<button>Explore</button>
</div>
<img src="images.jpg" alt="">
</div>
<!--card -->
<div class="trend">
<div class="head">
<h1>Trends <span>Men's Wear</span></h1>
</div>
<div class="card">
<div class="crd">
<img src="shrt.jpg" alt=""
onclick="show(this)">
<div class="crdText">
<h2>Cutton Trending Shirt's</h2>
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star-half-
stroke"></i> <br>
<button>Add to Cart</button>
</div>
</div>
<div class="crd">
<img src="shirt6.jpg" alt=""
onclick="show(this)">
<div class="crdText">
<h2>Cutton Trending Shirt's</h2>
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star-half-
stroke"></i> <br>
<button>Add to Cart</button>
</div>
</div>
<div class="crd">
<img src="shrt3.jpg" alt=""
onclick="show(this)">
<div class="crdText">
<h2>Cutton Trending
Shirt's</h2>
<i class="fa-solid fa-
star"></i>
<i class="fa-solid fa-
star"></i>
<i class="fa-solid fa-
star"></i>
<i class="fa-solid fa-
star"></i>
<i class="fa-solid fa-star-
half-stroke"></i> <br>
<button>Add to Cart</button>
</div>
</div>
</div>
</div>
<div class="crd">
<img src="w5.jpg" alt=""
onclick="show(this)">
<div class="crdText">
<h2>Trending Girl Top's</h2>
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star-half-
stroke"></i> <br>
<button>Add to Cart</button>
</div>
</div>
<div class="crd">
<img src="w6.webp" alt=""
onclick="show(this)">
<div class="crdText">
<h2>Trending Girl Top's</h2>
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star"></i>
<i class="fa-solid fa-star-half-
stroke"></i> <br>
<button>Add to Cart</button>
</div>
</div>
</div>
</div>
<div class="about">
<div class="aboutus">
<h1>#KnowUs</h1>
<p>Lorem ipsum dolor sit amet
consectetur adipisicing elit.</p>
</div>
<div class="me">
<img src="gg.jpg" alt="">
<div class="aboutText">
<h1>Who we are ?</h1>
<div class="contact">
<div class="contactus">
<h1>#Let's Connect</h1>
<p>Lorem ipsum dolor sit amet
consectetur adipisicing elit.</p>
</div>
<div class="contactMe">
<div class="contactText">
<h1>Visit Our Office or Contact
<br>
Us Today</h1>
<p>Address : Dablin Park, England,
New york.</p>
<p>Contact :
[email protected]</p>
<p>Number : 999999000011</p>
</div>
<img src="map1.jpg" alt="">
</div>
<div class="form">
<h1>Connect with Us. Fill Form</h1>
<input type="text" placeholder="Enter
Email"> <br>
<input type="text" placeholder="Enter
Email"> <br>
<input type="text" placeholder="Enter
Email"> <br>
<input type="text" placeholder="Enter
Email"> <br>
<input type="text" placeholder="Enter
Email"> <br>
<button>Submit</button>
</div>
</div>
<div class="cart">
<img id="newImg" src="" alt="">
<div class="cartText">
<h1>Trends Offer : Trending Shop <br>
Now</h1>
<h2>Special Price</h2>
<h2>$11</h2>
<p>Trending boys and girls Cloths
Trending Boys Cloths
Mens regular fit shirt
$44
Size:- L,M XL,xxl
Free delivery </p>
<p>Best price and Best Deal and
Best cloths</p>
</div>
</div>
<div class="blog">
<div class="letter">
<div class="letterText">
<h1>Sign Up for NewsLetter</h1>
<p>Lorem ipsum, dolor sit amet consectetur
adipisicing elit.</p>
</div>
<div class="inp">
<input type="text" placeholder="Enter
Email">
<button>Sign Up</button>
</div>
</div>
<div class="footer">
<div class="footerText">
<h2>Trends</h2>
<p>Service </p>
<p>Customer</p>
<p>Satisfaction</p>
<p></p>
</div>
<div class="footerText">
<h2>About US</h2>
<p>Adrress : Near Raja ki mandi Agra <br>
consectetur adipisicing <br>
Perferendis, excepturi alias.</p>
<p>Service</p>
<p>Customer</p>
<p>Satisfation</p>
</div>
<div class="footerText">
<h2>Contect</h2>
<p>9989003229</p>
<p>Customer</p>
<p>Comming up</p>
<p>New Arrival</p>
</div>
<div class="footerText">
<h2>Trending</h2>
<p>Service</p>
<p>Customer</p>
<p>Shops</p>
<p></p>
</div>
</div>
<!--Qr code image-->
<img src="qr_code_barcode.jpg" alt="">
</div>
<script src="web.js"></script>
</body>
</html>
*{
margin: 0%;
padding: 0%;
font-family: 'Roboto', sans-serif;
}
body{
background-color: #eeee;
}
nav{
display: flex;
justify-content: space-between;
background-color: #eeee;
padding: 17px;
box-shadow: 0px 2px 2px 2px rgb(162, 162, 162);
}
nav .logo{
margin-left: 22px;
font-size: 24px;
}
ul{
margin-right: 45px;
margin-top: 7px;
}
nav ul li{
list-style: none;
}
ul li a{
margin-inline: 22px;
font-size: 20px;
}
ul li i{
font-size: 22px;
}
ul li #home{
color: rgb(5, 167, 167);
}
ul li a:hover{
border-bottom: 2px solid black;
cursor: pointer;
}
ul li i:hover{
color: gray;
cursor: pointer;
}
.main{
display: flex;
justify-content: space-around;
}
.main .mainText{
margin-top: 144px;
}
.mainText h1{
font-size: 50px;
.mainText .top{
color: rgb(4, 138, 138);
}
.mainText button{
width: 145px;
height: 40px;
background-color: rgb(4, 140, 140);
border: none;
font-size: 22px;
color: white;
margin-top: 24px;
}
.mainText p{
margin-top: 12px;
}
.mainText button:hover{
border: 3px solid rgb(3, 128, 128);
background-color: transparent;
color: rgb(2, 121, 121);
}
.head h1{
text-align: center;
padding: 33px;
margin-top: 32px;
}
.head span{
color: rgb(2, 164, 164);
}
.card{
display: flex;
justify-content: center;
}
.card .crd{
width: 300px;
height: 500px;
background-color: #fff;
margin-inline: 11px;
}
.crd img{
width: 85%;
padding: 22px;
border-radius: 31px;
}
.crdText{
margin-left: 16px;
padding: 8px;
}
.crdText button{
width: 110px;
height: 33px;
border: none;
background-color: rgb(5, 141, 141);
color: white;
font-size: 19px;
margin-top: 11px;
}
.crdText i{
color: rgb(255, 149, 0);
}
.blog{
display: flex;
justify-content: center;
width: 500px;
height: 300px;
background-color: #fff;
margin-inline: 22px;
border-radius: 11px;
}
.blog:hover{
outline: none;
font-size: 18px;
border: none;
}
.inp button{
width: 100px;
height: 33px;
background-color: rgb(2, 173, 173);
color: white;
border: none;
}
.footer{
display: flex;
justify-content: center;
padding: 53px;
}
.footer .footerText{
margin-inline: 85px;
}
.footerText p{
margin-top: 11px;
}
.about{
display: none;
}
.aboutus{
background-color: rgb(1, 1, 42);
color: white;
padding: 56px;
font-size: 19px;
}
.me{
display: flex;
justify-content: center;
width: 700px;
background-color: #fff;
padding: 33px;
margin-left: 18%;
margin-top: 7%;
}
.me img{
width: 50%;
}
.contact{
display: none;
}
.contactus{
background-color: rgb(1, 1, 42);
color: white;
padding: 56px;
font-size: 19px;
}
.contactMe{
display: flex;
justify-content: center;
width: 1000px;
margin-top: 5%;
background-color: #fff;
margin-left: 10%;
}
.contactMe img{
width: 55%;
}
.contactText{
padding: 22px;
width: 600px;
}
.contactText p{
margin-top: 12px;
}
.form{
text-align: center;
margin-top: 5%;
padding: 22px;
}
.form input{
width: 300px;
padding: 5px;
height: 27px;
margin-top: 11px;
}
.form button{
width: 300px;
height: 36px;
background-color: rgb(2, 54, 54);
color: white;
font-size: 22px;
border: none;
margin-top: 22px;
}
.fullPage{
display: flex;
justify-content: center;
display: none;
margin-top: 22px;
}
.fullPage .cartText{
padding: 22px;
margin-top: 33px;
}
.cartText p{
margin-top: 11px;
}
console.log(card)
let blog = document.querySelector(".trends");
let mainPage = document.querySelector(".main");
function homes(){
mainPage.style.display="flex";
card.style.display="block";
card2.style.display="block";
blog.style.display="block";
document.getElementById("blog").style.color="black"
document.getElementById("home").style.color="black"
document.getElementById("shop").style.color="rgb(2, 173,
173)"
document.getElementById("contact").style.color="black"
}
function shops(){
mainPage.style.display="none";
blog.style.display="none";
about.style.display="none";
card.style.display="block";
card2.style.display="block";
document.getElementById("blog").style.color="black"
document.getElementById("home").style.color="rgb(2, 173,
173)"
document.getElementById("shop").style.color="black"
document.getElementById("contact").style.color="black"
}
function blogs(){
mainPage.style.display="none";
card.style.display="none";
card2.style.display="none";
blog.style.display="block";
document.getElementById("blog").style.color="rgb(2,
173, 173)"
document.getElementById("home").style.color="black"
document.getElementById("shop").style.color="black"
document.getElementById("contact").style.color="black"
}
function abouts(){
mainPage.style.display="none";
card.style.display="none";
card2.style.display="none";
blog.style.display="none";
about.style.display="block";
document.getElementById("blog").style.color="black"
document.getElementById("home").style.color="black"
document.getElementById("shop").style.color="black"
document.getElementById("contact").style.color="black"
document.getElementById("about").style.color="rgb(2,
173, 173)"
}
function contacts(){
mainPage.style.display="none";
card.style.display="none";
card2.style.display="none";
blog.style.display="none";
about.style.display="none";
contact.style.display="block"
document.getElementById("blog").style.color="black"
document.getElementById("home").style.color="black"
document.getElementById("shop").style.color="black"
document.getElementById("contact").style.color="black"
document.getElementById("about").style.color="black"
document.getElementById("contact").style.color="rgb(2,
173, 173)"
function show(img){
let newImg = document.getElementById("newImg");
console.log(img);
newImg.src=img.src;
mainPage.style.display="none";
card.style.display="none";
card2.style.display="none";
blog.style.display="none";
about.style.display="none";
contact.style.display="none"
document.querySelector(".cart").style.display="flex"
}
function addCart(){
alert("Added To Cart");
location.reload()
}