add bagcard in layouts

This commit is contained in:
D Shrat 2021-11-12 10:53:15 +07:00
parent b63ffbdae1
commit 70d37b6edf
2 changed files with 46 additions and 93 deletions

43
views/layouts/bagcard.ejs Normal file
View file

@ -0,0 +1,43 @@
<!DOCTYPE html>
<html lang="en">
<%- include('../layouts/header.ejs', {title: 'Shopping Bag', state: 'bag'}); %>
<body style="background-color: #1b1c1e;;">
<div class="card">
<div class="card-body">
<div class="row">
<div class="col-sm-7 col-md-6 col-lg-4">
<img alt="placeholder image" class="img-fluid lazyload" src="img/Product_1.webp"
width="180px" height="180px" />
</div>
<div class="col-sm-5 col-md-6 col-lg-8">
<h2>Fashione Shoes</h2>
<h4>Size : 44</h4>
<h6>Qty</h6>
<div style="display: flex;">
<span class="input-group-btn">
<button type="button" class="btn btn-default btn-number" style="color: white;"
onclick="minus('inputNum')"><i data-feather="minus-square"></i></button>
</span>
<input class="box" type="text" disabled="disabled" value="1"
class="form-control input-number" id="inputNum" />
<span class="input-group-btn">
<button type="button" class="btn btn-default btn-number" style="color: white;"
onclick='add("inputNum")'><i data-feather="plus-square"></i></button>
</span>
</div>
<br>
<p>Rp 1.999.999,00</p>
<a href="" style="color:red;"><i data-feather="trash" color="red"></i> <u>Remove</u></a>
<br><br>
</div>
</div>
</div>
</div>
<%- include('../layouts/footer.ejs', {state: 'bag'}); %>
</body>
</html>

View file

@ -9,99 +9,9 @@
<div class="bag">
<div class="row">
<div class="col-lg-8">
<div class="card">
<div class="card-body">
<div class="row">
<div class="col-sm-7 col-md-6 col-lg-4">
<img alt="placeholder image" class="img-fluid lazyload" src="img/Product_1.webp"
width="180px" height="180px" />
</div>
<div class="col-sm-5 col-md-6 col-lg-8">
<h2>Fashione Shoes</h2>
<h4>Size : 44</h4>
<h6>Qty</h6>
<div style="display: flex;">
<span class="input-group-btn">
<button type="button" class="btn btn-default btn-number" style="color: white;"
onclick="minus('inputNum')"><i data-feather="minus-square"></i></button>
</span>
<input class="box" type="text" disabled="disabled" value="1"
class="form-control input-number" id="inputNum" />
<span class="input-group-btn">
<button type="button" class="btn btn-default btn-number" style="color: white;"
onclick='add("inputNum")'><i data-feather="plus-square"></i></button>
</span>
</div>
<br>
<p>Rp 1.999.999,00</p>
<a href="" style="color:red;"><i data-feather="trash" color="red"></i> <u>Remove</u></a>
<br><br>
</div>
</div>
</div>
</div>
<div class="card">
<div class="card-body">
<div class="row">
<div class="col-sm-7 col-md-6 col-lg-4">
<img alt="placeholder image" class="img-fluid lazyload" src="img/Product_1.webp"
width="180px" height="180px" />
</div>
<div class="col-sm-5 col-md-6 col-lg-8">
<h2>Fashione Shoes</h2>
<h4>Size : 44</h4>
<h6>Qty</h6>
<div style="display: flex;">
<span class="input-group-btn">
<button type="button" class="btn btn-default btn-number" style="color: white;"
onclick="minus('inputNum1')"><i data-feather="minus-square"></i></button>
</span>
<input class="box" type="text" disabled="disabled" value="1"
class="form-control input-number" id="inputNum1" />
<span class="input-group-btn">
<button type="button" class="btn btn-default btn-number" style="color: white;"
onclick='add("inputNum1")'><i data-feather="plus-square"></i></button>
</span>
</div>
<br>
<p>Rp 1.999.999,00</p>
<a href="" style="color:red;"><i data-feather="trash" color="red"></i> <u>Remove</u></a>
<br><br>
</div>
</div>
</div>
</div>
<div class="card">
<div class="card-body">
<div class="row">
<div class="col-sm-7 col-md-6 col-lg-4">
<img alt="placeholder image" class="img-fluid lazyload" src="img/Product_1.webp"
width="180px" height="180px" />
</div>
<div class="col-sm-5 col-md-6 col-lg-8">
<h2>Fashione Shoes</h2>
<h4>Size : 44</h4>
<h6>Qty</h6>
<div style="display: flex;">
<span class="input-group-btn">
<button type="button" class="btn btn-default btn-number" style="color: white;"
onclick="minus('inputNum2')"><i data-feather="minus-square"></i></button>
</span>
<input class="box" type="text" disabled="disabled" value="1"
class="form-control input-number" id="inputNum2" />
<span class="input-group-btn">
<button type="button" class="btn btn-default btn-number" style="color: white;"
onclick='add("inputNum2")'><i data-feather="plus-square"></i></button>
</span>
</div>
<br>
<p>Rp 1.999.999,00</p>
<a href="" style="color:red;"><i data-feather="trash" color="red"></i> <u>Remove</u></a>
<br><br>
</div>
</div>
</div>
</div>
<%- include('../layouts/bagcard.ejs') %>
<%- include('../layouts/bagcard.ejs') %>
<%- include('../layouts/bagcard.ejs') %>
</div>
<div class="col-lg-4">