modif checkout; add paymentpage with css and add img bca, bni, bri, dana, gopay, mastercard, ovo and visa

This commit is contained in:
dshrat 2021-09-17 11:15:03 +07:00
parent b2579a25e1
commit ee47d2a0cd
11 changed files with 384 additions and 6 deletions

BIN
assets/Gopay.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 17 KiB

BIN
assets/bca.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 144 KiB

BIN
assets/bni.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

BIN
assets/bri.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 29 KiB

BIN
assets/dana.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 31 KiB

BIN
assets/mastercard.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 51 KiB

BIN
assets/ovo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

BIN
assets/visa.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 83 KiB

View file

@ -211,14 +211,10 @@
<option value="3">SICEPAT</option>
</select>
</div>
<button type="submit" class="btn btn-primary">Review & Pay</button>
</form>
<a href="payment.html"> <button class="button" style="background-color: green; color: white" >Review & Pay</button></a>
</div>
</div>
</div>
</div>

150
payment.html Normal file
View file

@ -0,0 +1,150 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>payment</title>
<link rel="stylesheet" href="stylepayment.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" crossorigin="anonymous">
<link rel="shortcut icon" type="image/png" href="assets/favicon.png"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css">
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins&display=swap" rel="stylesheet">
</head>
<body class="bg-color">
<nav class="navbar navbar-expand-lg navbar-dark comp-color ml-5 mr-5 nav-radius">
<a class="navbar-brand" href="#">Payments</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarTogglerDemo01"
aria-controls="navbarTogglerDemo01" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarTogglerDemo01">
<ul class="navbar-nav mx-auto">
<li class="nav-item active">
<a class="nav-link" href="/">Home</a>
</li>
<li class="nav-item">
<a class="nav-link disabled" href="/products-page.html" aria-disabled="true">Products</a>
</li>
<li class="nav-item">
<a class="nav-link" href="/aboutus.html">About Us</a>
</li>
</ul>
<span class="navbar-nav my-2 my-lg-0 text-white">
<a href="/loginPage.html"><button type="button" class="btn btn-outline-success mt-auto mb-auto mr-3">Login</button></a>
<i class="fas fa-shopping-cart mt-auto mb-auto"><span class="ml-2 mt-auto mb-auto">$999</span></i>
</span>
</div>
</nav>
<div class="full-body">
<div class="body-left" >
<form class="formpayment" style="border-top: 1px solid white ; color: white;">
<h3><b>PAYMENTS METHODS</b></h3>
<P>Please select your payment method carefully</P>
<div class="form-check">
<input class="form-check-input" type="radio" name="payment" value="" id="defaultCheck1">
<label class="form-check-label" for="defaultCheck1">
ONLINE PAYMENT
</label>
<div style="display: flex;">
<img src="assets/Gopay.png" alt="placeholder image" class="img-fluid" style="width: 50px; height: 50px; margin-right: 10px;"/>
<img src="assets/ovo.png" alt="placeholder image" class="img-fluid" style="width: 50px; height: 50px; margin-right: 10px;"/>
<img src="assets/dana.png" alt="placeholder image" class="img-fluid" style="width: 50px; height: 50px; margin-right: 10px;"/>
</div>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="payment" value="" id="defaultCheck1">
<label class="form-check-label" for="defaultCheck1">
CREDIT CARD / DEBIT CARD*
</label>
<div style="display: flex;">
<img src="assets/visa.png" alt="placeholder image" class="img-fluid" style="width: 50px; height: 50px; margin-right: 10px;"/>
<img src="assets/mastercard.png" alt="placeholder image" class="img-fluid" style="width: 50px; height: 50px; margin-right: 10px;"/>
</div>
<p>* make sure your credit card is activated for online shopping</p>
</div>
<div class="form-check">
<input class="form-check-input" type="radio" name="payment" value="" id="defaultCheck1">
<label class="form-check-label" for="defaultCheck1">
VIRTUAL ACCOUNT
</label>
<div style="display: flex;">
<img src="assets/bca.png" alt="placeholder image" class="img-fluid" style="width: 50px; margin-right: 10px;"/>
<img src="assets/bni.png" alt="placeholder image" class="img-fluid" style="width: 50px; height: 20px; margin-right: 10px;"/>
<img src="assets/bri.png" alt="placeholder image" class="img-fluid" style="width: 50px; height: 20px; margin-right: 10px;"/>
</div>
</div>
</form>
</div>
<div class="body-right" style="margin-left: 48px;">
<div class="border">
<h5 class="titlesummary"><b>Order Summary</b></h5>
<div class="container">
<div class="row justify-content-between" style="display: flex; margin: 10px">
<p>Sub Total</p>
<p>1.999.999,00</p>
</div>
</div>
<div class="container">
<div class="row justify-content-between" style="display: flex; border-bottom: 1px solid white; margin: 10px">
<p>Shipping</p>
<p>-</p>
</div>
</div>
<div class="container">
<div class="row justify-content-between" style="display: flex; margin: 10px">
<p>Estimate</p>
<p>1.999.999,00</p>
</div>
</div>
</div>
</div>
</div>
<div style="display: flex; color: black;">
<button id="myBtn" class="button" style="margin-left: 48px;">Order Now</button>
<div id="myModal" class="modal">
<div class="modal-content">
<span class="close">&times;</span>
<div class="konten">
<h4><b>YOUR ORDER SUCCESSFULLY</b></h4>
<a href="transaction.html"> <button class="button" style="background-color: yellow; color: black;">Transaction</button></a>
</div>
</div>
</div>
</div>
<script src="https://code.jquery.com/jquery-3.5.1.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js" integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns" crossorigin="anonymous"></script>
<script>
var modal = document.getElementById("myModal");
var btn = document.getElementById("myBtn");
var span = document.getElementsByClassName("close")[0];
btn.onclick = function() {
modal.style.display = "block";
}
span.onclick = function() {
modal.style.display = "none";
}
window.onclick = function(event) {
if (event.target == modal) {
modal.style.display = "none";
}
}
</script>
</body>
</html>

232
stylepayment.css Normal file
View file

@ -0,0 +1,232 @@
.bg-color {
background-color: #1b1c1e;
}
.comp-color {
background-color: #212226;
}
.nav-radius {
border-bottom-left-radius: 20px;
border-bottom-right-radius: 20px;
}
.title{
color: white;
font-family: 'Poppins', sans-serif;
display: flex;
margin-top: 15px;
margin-left: 48px;
justify-content: left;
text-align: left;
background-color: 1b1c1e;
}
.bag-list{
display: flex;
color: white;
border-bottom: 1px solid white;
background-color: 1b1c1e;
font-family: 'Poppins', sans-serif;
margin-bottom: 1%;
justify-content: left;
text-align: left;
}
.body-right{
margin-right: 48px;
color: white;
width: 30%;
height: 100%;
}
.modal {
display: none;
position: fixed;
z-index: 1;
padding-top: 100px;
left: 0;
top: 0;
width: 100%;
height: 100%;
overflow: auto;
background-color: rgb(0,0,0);
background-color: rgba(0,0,0,0.4);
}
.form-check{
margin-top: 10px;
}
.modal-content {
background-color: #fefefe;
margin: auto;
padding: 20px;
border: 1px solid #888;
width: 80%;
}
.close {
color: #aaaaaa;
float: right;
font-size: 28px;
font-weight: bold;
}
.close:hover,
.close:focus {
color: #000;
text-decoration: none;
cursor: pointer;
}
.body-left{
margin-left: 48px;
margin-right: 48px;
border-top: none !important;
}
.button{
color: white;
background-color: green;
margin-top: 15px;
}
.full-body{
display: flex;
}
.info{
margin-left: 30px;
}
.titlesummary{
text-align: center;
border-bottom: 1px solid white;
margin: 10px;
}
.container{
margin-left: 0px;
align-items: left;
justify-content: left;
}
.container input{
align-items: left;
justify-content: left;
width: 40px;
}
@media only screen and (max-width: 1000px){
.full-body{
display: grid !important;
}
.body-right{
margin-left: 48px;
margin-top: 30px;
}
}
@media (max-width: 600px){
.full-body{
font-size: 7px ;
}
.img{
width: 30px;
height: 30px;
}
.info{
margin-left: 5px;
}
.titletr{
word-break: keep-all;
}
.titletrdes{
word-break: break-all;
}
.titlesummary{
font-size: 20px;
}
.body-right{
width: 300px;
}
.body-left{
width: 300px;
}
}
@media (max-width : 541px){
.body-right{
width: 444px;
}
.body-left{
width: 444px;
}
}
@media (max-width : 412px){
.body-right{
width: 315px;
}
.body-left{
width: 315px;
}
}
@media (max-width : 415px){
.body-right{
width: 318px;
}
.body-left{
width: 318px;
}
}
@media (max-width : 376px){
.body-right{
width: 280px;
}
.body-left{
width: 280px;
}
}
@media (max-width : 361px){
.body-right{
width: 264px;
}
.body-left{
width: 264px;
}
}
@media (max-width : 321px){
.body-right{
width: 224px;
}
.body-left{
width: 224px;
}
}
@media (max-width : 281px){
.body-right{
width: 184px;
}
.body-left{
width: 184px;
}
}