Remove unused codes & files

This commit is contained in:
Moe Poi ~ 2021-11-21 00:24:24 +07:00
parent 6251196957
commit c8b9d4d663
6 changed files with 0 additions and 275 deletions

View file

@ -1,97 +0,0 @@
body {
font-family: 'Poppins', sans-serif;
background-color: #1b1c1e;
}
.card {
position: center;
margin: auto;
text-align: center;
border-radius: 20px;
background-color: #212226;
}
.icon {
position: center;
margin: auto;
width: 70%;
height: 70%;
}
.btn-pay {
width: 100%;
background-color: darkred;
border-color: darkred;
border-radius: 100px;
position: center;
margin: auto;
text-align: center;
}
.btn-pay:hover {
background-color: red;
border-color: red;
}
@media screen and (max-width: 766px) {
.card h2 {
font-size: 7vw;
}
.card h5 {
font-size: 5vw;
}
.navbar-brand {
width: 11vw;
height: 11vw;
}
}
@media screen and (min-width: 767px) {
.card h2 {
font-size: 4vw;
}
.card h5 {
font-size: 2vw;
}
.navbar-brand {
width: 8vw;
height: 8vw;
}
}
@media screen and (min-width: 993px) {
.card h2 {
font-size: 3vw;
}
.card h5 {
font-size: 1.3vw;
}
.navbar-brand {
width: 6vw;
height: 6vw;
}
}
@media screen and (min-width: 1400px) {
.card h2 {
font-size: 4vw;
}
.card h5 {
font-size: 2vw;
}
.navbar-brand {
width: 6vw;
height: 6vw;
}
}

View file

@ -1,106 +0,0 @@
body {
font-family: 'Poppins', sans-serif;
background-color: #1b1c1e;
}
.nav-color {
background-color: #212226;
}
.card {
position: center;
margin: auto;
text-align: center;
border-radius: 20px;
background-color: #212226;
}
.icon {
position: center;
margin: auto;
width: 70%;
height: 70%;
}
.btn-pay {
width: 100%;
background-color: darkred;
border-color: darkred;
border-radius: 100px;
position: center;
margin: auto;
text-align: center;
}
.btn-pay:hover {
background-color: red;
border-color: red;
}
:focus {
outline: 0 !important;
box-shadow: 0 0 0 0 rgba(0, 0, 0, 0) !important;
}
@media screen and (max-width: 766px) {
.card h2 {
font-size: 7vw;
}
.card h5 {
font-size: 5vw;
}
.navbar-brand {
width: 11vw;
height: 11vw;
}
}
@media screen and (min-width: 767px) {
.card h2 {
font-size: 4vw;
}
.card h5 {
font-size: 2vw;
}
.navbar-brand {
width: 8vw;
height: 8vw;
}
}
@media screen and (min-width: 993px) {
.card h2 {
font-size: 3vw;
}
.card h5 {
font-size: 1.3vw;
}
.navbar-brand {
width: 6vw;
height: 6vw;
}
}
@media screen and (min-width: 1400px) {
.card h2 {
font-size: 4vw;
}
.card h5 {
font-size: 2vw;
}
.navbar-brand {
width: 6vw;
height: 6vw;
}
}

View file

@ -147,10 +147,6 @@ router.get("/product/:id", (req, res) => {
}); });
}); });
router.get("/successadd", (_req, res) => {
res.render("pages/success-add");
});
router.get("/bag", (_req, res) => { router.get("/bag", (_req, res) => {
res.render("pages/bag"); res.render("pages/bag");
}); });
@ -159,10 +155,6 @@ router.get("/checkout", (_req, res) => {
res.render("pages/checkout"); res.render("pages/checkout");
}); });
router.get("/notifpay", (_req, res) => {
res.render("pages/notif-pay");
});
router.get("/payment", (_req, res) => { router.get("/payment", (_req, res) => {
res.render("pages/login-error"); res.render("pages/login-error");
}); });

View file

@ -25,8 +25,6 @@
<link href="/css/checkout.css" rel="stylesheet"> <link href="/css/checkout.css" rel="stylesheet">
<% } else if(state == "about-us") { %> <% } else if(state == "about-us") { %>
<link href="/css/about-us.css" rel="stylesheet"> <link href="/css/about-us.css" rel="stylesheet">
<% } else if(state == "notif-pay") { %>
<link href="/css/notif-pay.css" rel="stylesheet">
<% } else if(state == "payment") { %> <% } else if(state == "payment") { %>
<link href="/css/payment.css" rel="stylesheet"> <link href="/css/payment.css" rel="stylesheet">
<% } else if(state == "products") { %> <% } else if(state == "products") { %>
@ -51,7 +49,5 @@
<link href="/css/change-password.css" rel="stylesheet"> <link href="/css/change-password.css" rel="stylesheet">
<% } else if(state == "otp") { %> <% } else if(state == "otp") { %>
<link href="/css/otp.css" rel="stylesheet"> <link href="/css/otp.css" rel="stylesheet">
<% } else if(state == "success-add") { %>
<link href="/css/success-add.css" rel="stylesheet">
<% } %> <% } %>
</head> </head>

View file

@ -1,29 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<%- include('../layouts/header.ejs', {title: 'Notification Payment', state: 'notif-pay'}); %>
<body>
<%- include('../layouts/navbar.ejs', {types: 'v2', title: 'Notification'}); %>
<br>
<div data-aos="fade-in" data-aos-delay="500" class="container">
<div class="row">
<div class="col">
<div class="card col-md-6 col-lg-6 col-xl-8">
<div class="card-header" style="color: white;">
</div>
<div class="card-body">
<h5 class="card-text" style="color: #dedede;">Your order has been received.
Wanna see how to pay?</h5>
<a href="payment" class="btn btn-primary btn-pay">How to Pay</a>
</div>
</div>
</div>
</div>
</div>
<%- include('../layouts/footer.ejs', {state: 'notif-pay'}); %>
</body>
</html>

View file

@ -1,31 +0,0 @@
<!DOCTYPE html>
<html lang="en">
<%- include('../layouts/header.ejs', {title: 'Successful Notification', state: 'success-add'}); %>
<body>
<%- include('../layouts/navbar.ejs', {types: 'v2', title: 'Notification'}); %>
<br>
<div data-aos="fade-in" data-aos-delay="500" class="container">
<div class="row">
<div class="col">
<div class="card col-md-6 col-lg-6 col-xl-8">
<div class="card-header" style="color: white;">
</div>
<div class="card-body">
<h5 class="card-text" style="color: #dedede;">Added to your shopping bag !</h5>
<div style="display: flex;">
<a href="bag" class="btn btn-primary btn-pay">Bag</a>
<a href="checkout" class="btn btn-primary btn-pay">Checkout</a>
</div>
</div>
</div>
</div>
</div>
</div>
<%- include('../layouts/footer.ejs', {state: 'success-add'}); %>
</body>
</html>