From f0ab5373df92f7b75c73f18d581c7764186d1048 Mon Sep 17 00:00:00 2001 From: moepoi <moepoi@protonmail.com> Date: Sun, 26 Sep 2021 23:20:11 +0700 Subject: [PATCH] Beautify code on Checkout Page --- checkout.html | 467 +++++++++++++++++++++++++------------------------- 1 file changed, 232 insertions(+), 235 deletions(-) diff --git a/checkout.html b/checkout.html index a0cd975..4c72f1d 100644 --- a/checkout.html +++ b/checkout.html @@ -1,5 +1,6 @@ <!DOCTYPE html> <html lang="en"> + <head> <meta charset="UTF-8"> <meta content="IE=edge" http-equiv="X-UA-Compatible"> @@ -7,8 +8,8 @@ <meta name="theme-color" content="#2f0001"> <title>Checkout</title> <link crossorigin="anonymous" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/css/bootstrap.min.css" - integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" rel="stylesheet"> - <link href="assets/favicon.webp" rel="shortcut icon" type="image/png"/> + integrity="sha384-B0vP5xmATw1+K9KRQjQERJvTumQW0nPEzvF6L/Z6nronJ3oUOFUFpCjEUQouq2+l" rel="stylesheet"> + <link href="assets/favicon.webp" rel="shortcut icon" type="image/png" /> <link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.4/css/all.min.css" rel="stylesheet"> <link href="https://fonts.googleapis.com" rel="preconnect"> <link crossorigin href="https://fonts.gstatic.com" rel="preconnect"> @@ -276,271 +277,267 @@ </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="#">Checkout Page</a> - <button aria-controls="navbarTogglerDemo01" aria-expanded="false" aria-label="Toggle navigation" - class="navbar-toggler" - data-target="#navbarTogglerDemo01" data-toggle="collapse" type="button"> - <span class="navbar-toggler-icon"></span> - </button> - <div class="collapse navbar-collapse" id="navbarTogglerDemo01"> - <ul class="navbar-nav mx-auto"> - <li class="nav-item"> - <a class="nav-link" href="/">Home</a> - </li> - <li class="nav-item active"> - <a aria-disabled="true" class="nav-link disabled" href="product-list.html">Products</a> - </li> - <li class="nav-item"> - <a class="nav-link" href="about-us.html">About Us</a> - </li> - <li class="nav-item"> - <a class="nav-link" href="faq.html">FAQ</a> - </li> - </ul> - <span class="navbar-nav my-2 my-lg-0 text-white"> - <div class="my-4"> - <a href="login.html"><button class="btn btn-outline-success mt-auto mb-auto mr-3" type="button">Login</button></a> - </div> - <a href="bag.html" class="mt-auto mb-auto" style="color: inherit;"><i - class="fas fa-shopping-cart"><span class="ml-2 mt-auto mb-auto">Rp 999.999</span></i></a> - </span> - </div> -</nav> - -<br> -<br> - -<div class="full-body justify-content-center"> - <div class="body-left"> - <table class="table" style="color: white; margin-right: 48px;"> - <thead> - <tr class="titletr"> - <th scope="col">Item</th> - <th scope="col">Item Price</th> - <th scope="col">Sub Total</th> - </tr> - </thead> - <tbody> - <tr class="titletrdes"> - <th scope="row" style="display: flex;"><img alt="placeholder image" class="img lazyload" height="80px" - src="assets/Product_1.webp" width="80px"> - <div class="info"> - <p>Fashione Shoes</p> - <p>Size : 44</p> - <p>Qty : 1</p> - </div> - </th> - <td>Rp 1.999.999,00</td> - <td>Rp 1.999.999,00</td> - </tr> - <tr> - <th scope="row" style="display: flex;"><img alt="placeholder image" class="img lazyload" height="80px" - src="assets/Product_1.webp" width="80px"> - <div class="info"> - <p>Fashione Shoes</p> - <p>Size : 44</p> - <p>Qty : 1</p> - </div> - </th> - <td>Rp 1.999.999,00</td> - <td>Rp 1.999.999,00</td> - </tr> - <tr> - <th scope="row" style="display: flex;"><img alt="placeholder image" class="img lazyload" height="80px" - src="assets/Product_1.webp" width="80px"> - <div class="info"> - <p>Fashione Shoes</p> - <p>Size : 44</p> - <p>Qty : 1</p> - </div> - </th> - <td>Rp 1.999.999,00</td> - <td>Rp 1.999.999,00</td> - </tr> - <tr style="border-bottom: 1px solid white;"> - <th>Total Price</th> - <td></td> - <td>Rp 5.999.997,00</td> - </tr> - </tbody> - </table> - </div> - - <div class="body-right" style="margin-left: 48px;"> - <div class="card" style="background-color: #212226 ; border-radius: 20px; padding: 20px;"> - <h3>SHIPPING DETAILS</h3> - <p>Please enter your delivery address</p> - <form style="border-top: 1px solid white;"> - <div class="form-group"> - <label for="contactInformation"><b>CONTACT INFORMATION</b></label> - <div style="display: flex;"> - <input aria-describedby="fnamehelp" class="form-control" id="exampleInputFName" - placeholder="First Name" - type="FName"> - <input aria-describedby="lnamehelp" class="form-control" id="exampleInputLName" - placeholder="Last Name" - type="Lname"> - </div> - <input aria-describedby="PhoneNumber" class="form-control" id="exampleInputPhoneNum" - placeholder="Phone Number" - type="PhoneNum"> - <small class="form-text text-muted" id="phoneHelp">We'll never share your Phone Number with anyone - else.</small> + <nav class="navbar navbar-expand-lg navbar-dark comp-color ml-5 mr-5 nav-radius"> + <a class="navbar-brand" href="#">Checkout Page</a> + <button aria-controls="navbarTogglerDemo01" aria-expanded="false" aria-label="Toggle navigation" + class="navbar-toggler" data-target="#navbarTogglerDemo01" data-toggle="collapse" type="button"> + <span class="navbar-toggler-icon"></span> + </button> + <div class="collapse navbar-collapse" id="navbarTogglerDemo01"> + <ul class="navbar-nav mx-auto"> + <li class="nav-item"> + <a class="nav-link" href="/">Home</a> + </li> + <li class="nav-item active"> + <a aria-disabled="true" class="nav-link disabled" href="product-list.html">Products</a> + </li> + <li class="nav-item"> + <a class="nav-link" href="about-us.html">About Us</a> + </li> + <li class="nav-item"> + <a class="nav-link" href="faq.html">FAQ</a> + </li> + </ul> + <span class="navbar-nav my-2 my-lg-0 text-white"> + <div class="my-4"> + <a href="login.html"><button class="btn btn-outline-success mt-auto mb-auto mr-3" + type="button">Login</button></a> </div> + <a href="bag.html" class="mt-auto mb-auto" style="color: inherit;"><i class="fas fa-shopping-cart"><span + class="ml-2 mt-auto mb-auto">Rp 999.999</span></i></a> + </span> + </div> + </nav> - <div class="form-group"> - <label for="contactInformation"><b>ADDRESS</b></label> - <input aria-describedby="Address1" class="form-control" id="exampleInputAddress1" - placeholder="Street Address " - type="Address1"> - <input aria-describedby="Address2" class="form-control" id="exampleInputAddress2" - placeholder="Street Address 2 " - type="Address2"> - </div> + <br> + <br> + <div class="full-body justify-content-center"> + <div class="body-left"> + <table class="table" style="color: white; margin-right: 48px;"> + <thead> + <tr class="titletr"> + <th scope="col">Item</th> + <th scope="col">Item Price</th> + <th scope="col">Sub Total</th> + </tr> + </thead> + <tbody> + <tr class="titletrdes"> + <th scope="row" style="display: flex;"><img alt="placeholder image" class="img lazyload" + height="80px" src="assets/Product_1.webp" width="80px"> + <div class="info"> + <p>Fashione Shoes</p> + <p>Size : 44</p> + <p>Qty : 1</p> + </div> + </th> + <td>Rp 1.999.999,00</td> + <td>Rp 1.999.999,00</td> + </tr> + <tr> + <th scope="row" style="display: flex;"><img alt="placeholder image" class="img lazyload" + height="80px" src="assets/Product_1.webp" width="80px"> + <div class="info"> + <p>Fashione Shoes</p> + <p>Size : 44</p> + <p>Qty : 1</p> + </div> + </th> + <td>Rp 1.999.999,00</td> + <td>Rp 1.999.999,00</td> + </tr> + <tr> + <th scope="row" style="display: flex;"><img alt="placeholder image" class="img lazyload" + height="80px" src="assets/Product_1.webp" width="80px"> + <div class="info"> + <p>Fashione Shoes</p> + <p>Size : 44</p> + <p>Qty : 1</p> + </div> + </th> + <td>Rp 1.999.999,00</td> + <td>Rp 1.999.999,00</td> + </tr> + <tr style="border-bottom: 1px solid white;"> + <th>Total Price</th> + <td></td> + <td>Rp 5.999.997,00</td> + </tr> + </tbody> + </table> + </div> - <div class="input-group mb-3"> - <div class="input-group-prepend"> - <label class="input-group-text" for="inputGroupSelect01">Region</label> + <div class="body-right" style="margin-left: 48px;"> + <div class="card" style="background-color: #212226 ; border-radius: 20px; padding: 20px;"> + <h3>SHIPPING DETAILS</h3> + <p>Please enter your delivery address</p> + <form style="border-top: 1px solid white;"> + <div class="form-group"> + <label for="contactInformation"><b>CONTACT INFORMATION</b></label> + <div style="display: flex;"> + <input aria-describedby="fnamehelp" class="form-control" id="exampleInputFName" + placeholder="First Name" type="FName"> + <input aria-describedby="lnamehelp" class="form-control" id="exampleInputLName" + placeholder="Last Name" type="Lname"> + </div> + <input aria-describedby="PhoneNumber" class="form-control" id="exampleInputPhoneNum" + placeholder="Phone Number" type="PhoneNum"> + <small class="form-text text-muted" id="phoneHelp">We'll never share your Phone Number with + anyone + else.</small> </div> - <select class="custom-select" id="inputGroupSelect01"> - <option selected>Choose...</option> - <option value="1">Indonesia</option> - <option value="2">Japan</option> - <option value="3">United Kingdom</option> - </select> - </div> - <div class="input-group mb-3"> - <div class="input-group-prepend"> - <label class="input-group-text" for="inputGroupSelect02">State/Province</label> + <div class="form-group"> + <label for="contactInformation"><b>ADDRESS</b></label> + <input aria-describedby="Address1" class="form-control" id="exampleInputAddress1" + placeholder="Street Address " type="Address1"> + <input aria-describedby="Address2" class="form-control" id="exampleInputAddress2" + placeholder="Street Address 2 " type="Address2"> </div> - <select class="custom-select" id="inputGroupSelect02"> - <option selected>Choose...</option> - <option value="1">DKI Jakarta</option> - <option value="2">Kalimantan Barat</option> - <option value="3">Jawab Barat</option> - </select> - </div> - <div class="input-group mb-3"> - <div class="input-group-prepend"> - <label class="input-group-text" for="inputGroupSelect03">City</label> + + <div class="input-group mb-3"> + <div class="input-group-prepend"> + <label class="input-group-text" for="inputGroupSelect01">Region</label> + </div> + <select class="custom-select" id="inputGroupSelect01"> + <option selected>Choose...</option> + <option value="1">Indonesia</option> + <option value="2">Japan</option> + <option value="3">United Kingdom</option> + </select> </div> - <select class="custom-select" id="inputGroupSelect03"> - <option selected>Choose...</option> - <option value="1">Jakarta</option> - <option value="2">Singkawang</option> - <option value="3">Bogor</option> - </select> - </div> - <div class="input-group mb-3"> - <div class="input-group-prepend"> - <label class="input-group-text" for="inputGroupSelect04">District</label> + <div class="input-group mb-3"> + <div class="input-group-prepend"> + <label class="input-group-text" for="inputGroupSelect02">State/Province</label> + </div> + <select class="custom-select" id="inputGroupSelect02"> + <option selected>Choose...</option> + <option value="1">DKI Jakarta</option> + <option value="2">Kalimantan Barat</option> + <option value="3">Jawab Barat</option> + </select> </div> - <select class="custom-select" id="inputGroupSelect04"> - <option selected>Choose...</option> - <option value="1">Grogol</option> - <option value="2">Sei-Wei</option> - <option value="3">Puncak</option> - </select> - </div> - <div class="input-group mb-3"> - <div class="input-group-prepend"> - <label class="input-group-text" for="inputGroupSelect05">Sub District</label> + <div class="input-group mb-3"> + <div class="input-group-prepend"> + <label class="input-group-text" for="inputGroupSelect03">City</label> + </div> + <select class="custom-select" id="inputGroupSelect03"> + <option selected>Choose...</option> + <option value="1">Jakarta</option> + <option value="2">Singkawang</option> + <option value="3">Bogor</option> + </select> </div> - <select class="custom-select" id="inputGroupSelect05"> - <option selected>Choose...</option> - <option value="1">...</option> - <option value="2">...</option> - <option value="3">...</option> - </select> - </div> - <div class="input-group mb-3"> - <div class="input-group-prepend"> - <label class="input-group-text" for="inputGroupSelect06">Portal Code</label> + <div class="input-group mb-3"> + <div class="input-group-prepend"> + <label class="input-group-text" for="inputGroupSelect04">District</label> + </div> + <select class="custom-select" id="inputGroupSelect04"> + <option selected>Choose...</option> + <option value="1">Grogol</option> + <option value="2">Sei-Wei</option> + <option value="3">Puncak</option> + </select> </div> - <select class="custom-select" id="inputGroupSelect06"> - <option selected>Choose...</option> - <option value="1">11450</option> - <option value="2">79115</option> - <option value="3">16111</option> - </select> - </div> - <small class="form-text text-muted" id="phoneHelp">Email : budi45@gmail.com</small> - <div class="form-check"> - <input class="form-check-input" id="defaultCheck1" type="checkbox" value=""> - <label class="form-check-label" for="defaultCheck1"> - My Billing and Shipping information are the same - </label> - </div> - </form> - - <h3 style="margin-top: 20px;">SHIPPING METHODS</h3> - - <form style="border-top: 1px solid white;"> - <div class="input-group mb-3"> - <div class="input-group-prepend"> - <label class="input-group-text" for="inputGroupSelect07">Shipping Methods</label> + <div class="input-group mb-3"> + <div class="input-group-prepend"> + <label class="input-group-text" for="inputGroupSelect05">Sub District</label> + </div> + <select class="custom-select" id="inputGroupSelect05"> + <option selected>Choose...</option> + <option value="1">...</option> + <option value="2">...</option> + <option value="3">...</option> + </select> </div> - <select class="custom-select" id="inputGroupSelect07"> - <option selected>Choose...</option> - <option value="1">JNT</option> - <option value="2">JNE</option> - <option value="3">SICEPAT</option> - </select> - </div> - </form> - <div style="display: flex; color: black;"> - <a class="btn btn-primary btn-pay" id="myBtn">Pay</a> - <div class="modal" id="myModal"> - <div class="modal-content" style="background-color: #212226; border-color: #212226"> - <span class="close">×</span> - <div class="konten"> - <h3 style="text-align: center;color: white"><b>Your Order has been successfully added !!</b> - </h3> - <br> - <a href="payment.html" class="btn btn-primary btn-pay">How to Pay</a> + + <div class="input-group mb-3"> + <div class="input-group-prepend"> + <label class="input-group-text" for="inputGroupSelect06">Portal Code</label> + </div> + <select class="custom-select" id="inputGroupSelect06"> + <option selected>Choose...</option> + <option value="1">11450</option> + <option value="2">79115</option> + <option value="3">16111</option> + </select> + </div> + + <small class="form-text text-muted" id="phoneHelp">Email : budi45@gmail.com</small> + <div class="form-check"> + <input class="form-check-input" id="defaultCheck1" type="checkbox" value=""> + <label class="form-check-label" for="defaultCheck1"> + My Billing and Shipping information are the same + </label> + </div> + </form> + + <h3 style="margin-top: 20px;">SHIPPING METHODS</h3> + + <form style="border-top: 1px solid white;"> + <div class="input-group mb-3"> + <div class="input-group-prepend"> + <label class="input-group-text" for="inputGroupSelect07">Shipping Methods</label> + </div> + <select class="custom-select" id="inputGroupSelect07"> + <option selected>Choose...</option> + <option value="1">JNT</option> + <option value="2">JNE</option> + <option value="3">SICEPAT</option> + </select> + </div> + </form> + <div style="display: flex; color: black;"> + <a class="btn btn-primary btn-pay" id="myBtn">Pay</a> + <div class="modal" id="myModal"> + <div class="modal-content" style="background-color: #212226; border-color: #212226"> + <span class="close">×</span> + <div class="konten"> + <h3 style="text-align: center;color: white"><b>Your Order has been successfully added + !!</b> + </h3> + <br> + <a href="payment.html" class="btn btn-primary btn-pay">How to Pay</a> + </div> </div> </div> </div> </div> </div> </div> -</div> -<script crossorigin="anonymous" - integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" + <script crossorigin="anonymous" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" src="https://code.jquery.com/jquery-3.5.1.slim.min.js"></script> -<script crossorigin="anonymous" - integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns" + <script crossorigin="anonymous" integrity="sha384-Piv4xVNRyMGpqkS2by6br4gNJ7DXjqk09RmUpJ8jgGtD7zP9yug3goQfGII0yAns" src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.0/dist/js/bootstrap.bundle.min.js"></script> -<script> - var modal = document.getElementById("myModal"); + <script> + var modal = document.getElementById("myModal"); - var btn = document.getElementById("myBtn"); + var btn = document.getElementById("myBtn"); - var span = document.getElementsByClassName("close")[0]; + var span = document.getElementsByClassName("close")[0]; - btn.onclick = function () { - modal.style.display = "block"; - } + btn.onclick = function () { + modal.style.display = "block"; + } - span.onclick = function () { - modal.style.display = "none"; - } - - window.onclick = function (event) { - if (event.target == modal) { + span.onclick = function () { modal.style.display = "none"; } - } -</script> + + window.onclick = function (event) { + if (event.target == modal) { + modal.style.display = "none"; + } + } + </script> </body> + </html> \ No newline at end of file