mirror of
https://github.com/FranP-code/API-and-CRUD-for-Ecommerce-with-Node.js-FRONTEND.git
synced 2025-10-12 23:52:33 +00:00
Payment page style and structure done
This commit is contained in:
101
payment/css/styles.css
Normal file
101
payment/css/styles.css
Normal file
@@ -0,0 +1,101 @@
|
|||||||
|
html {
|
||||||
|
height: 100%;
|
||||||
|
overflow-y: overlay;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
height: 100%;
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
font-family: Roboto, helveltica;
|
||||||
|
background-color: #d6d6d6;
|
||||||
|
}
|
||||||
|
|
||||||
|
header {
|
||||||
|
width: 100vw;
|
||||||
|
height: fit-content;
|
||||||
|
box-sizing: border-box;
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
background-color: #7ba9ff;
|
||||||
|
color: #fff;
|
||||||
|
padding: 0.5vh 0px;
|
||||||
|
}
|
||||||
|
header .logo {
|
||||||
|
font-family: Dancing Script, helveltica;
|
||||||
|
display: flex;
|
||||||
|
user-select: none;
|
||||||
|
margin-left: 1vw;
|
||||||
|
}
|
||||||
|
header .logo h3 {
|
||||||
|
font-weight: normal;
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
margin-left: 1vw;
|
||||||
|
}
|
||||||
|
header.sub-header {
|
||||||
|
background-color: #506ea7;
|
||||||
|
padding: 6vh 0px;
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.payment-container {
|
||||||
|
height: calc(100% - 2vw);
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
margin-top: 1vw;
|
||||||
|
padding-bottom: 1vw;
|
||||||
|
}
|
||||||
|
.payment-container .column {
|
||||||
|
background-color: #fff;
|
||||||
|
border-radius: 5px;
|
||||||
|
padding: 0 2vw;
|
||||||
|
}
|
||||||
|
.payment-container .column.frist-column {
|
||||||
|
width: calc(60vw - 1vw);
|
||||||
|
margin: 0 1vw 0 1vw;
|
||||||
|
}
|
||||||
|
.payment-container .column.frist-column form {
|
||||||
|
width: 100%;
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
}
|
||||||
|
.payment-container .column.frist-column form input[type=text] {
|
||||||
|
border: none;
|
||||||
|
border-bottom: 1px solid #858585;
|
||||||
|
padding: 2vh 0px 1vh 0px;
|
||||||
|
opacity: 50%;
|
||||||
|
}
|
||||||
|
.payment-container .column.frist-column form select {
|
||||||
|
height: 5vh;
|
||||||
|
margin-top: 1vh;
|
||||||
|
}
|
||||||
|
.payment-container .column.second-column {
|
||||||
|
width: calc(40vw - 1vw);
|
||||||
|
margin-right: calc(1vw * 2);
|
||||||
|
}
|
||||||
|
.payment-container .column.second-column table thead {
|
||||||
|
border-bottom: 1px solid #858585;
|
||||||
|
}
|
||||||
|
.payment-container .column.second-column .message {
|
||||||
|
border: 1px solid #ff5858;
|
||||||
|
background-color: #0008;
|
||||||
|
color: #fff;
|
||||||
|
padding: 1vh 2vw;
|
||||||
|
}
|
||||||
|
.payment-container .column.second-column button {
|
||||||
|
margin-top: 1vh;
|
||||||
|
height: 8vh;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
.payment-container .column h2 {
|
||||||
|
border-bottom: 1px solid #000;
|
||||||
|
padding-bottom: 1vh;
|
||||||
|
}
|
||||||
|
.payment-container .column table {
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
/*# sourceMappingURL=styles.css.map */
|
||||||
1
payment/css/styles.css.map
Normal file
1
payment/css/styles.css.map
Normal file
@@ -0,0 +1 @@
|
|||||||
|
{"version":3,"sourceRoot":"","sources":["../sass/styles.scss"],"names":[],"mappings":"AAOA;EAEI;EAEA;;;AAGJ;EAEI;EAEA;EACA;EAEA;EAEA;;;AAGJ;EAEI;EACA;EAEA;EAEA;EACA;EAEA;EACA;EAEA;;AAEA;EAEI;EAEA;EACA;EAEA;;AAGA;EAEI;EAEA;EACA;EAEA;;AAIR;EAEI;EAEA;EAEA;EACA;EAEA;;;AAIR;EAEI;EAEA;EACA;EAEA,YAlFkB;EAmFlB,gBAnFkB;;AAqFlB;EAEI;EAEA;EACA;;AAEA;EAxFJ;EA4FQ;;AAEA;EAEI;EAEA;EACA;;AAEA;EAEI;EACA;EAEA;EAEA;;AAGJ;EAEI;EAEA;;AAMZ;EAzHJ;EA6HQ;;AAII;EAEI;;AAIR;EAEI;EACA;EAEA;EAEA;;AAGJ;EAEI;EAEA;EACA;;AAMR;EAEI;EACA;;AAGJ;EAEI","file":"styles.css"}
|
||||||
67
payment/index.html
Normal file
67
payment/index.html
Normal file
@@ -0,0 +1,67 @@
|
|||||||
|
<!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">
|
||||||
|
<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=Dancing+Script:wght@500&family=Roboto:wght@400;700&display=swap" rel="stylesheet">
|
||||||
|
<title>Checkout</title>
|
||||||
|
<link rel="stylesheet" href="./css/styles.css">
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<header>
|
||||||
|
<div class="logo">
|
||||||
|
<h1>Columbus</h1>
|
||||||
|
<h3>Bakery Wholesale</h3>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<header class="sub-header">
|
||||||
|
<h1>Checkout</h1>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="payment-container">
|
||||||
|
<div class="column frist-column">
|
||||||
|
<h2>Billing details</h2>
|
||||||
|
<form>
|
||||||
|
<input type="text" placeholder="Frist name" disabled="disabled" required>
|
||||||
|
<input type="text" placeholder="Last name" disabled="disabled" required>
|
||||||
|
<select disabled="disabled">
|
||||||
|
<option value="eeuu">United States</option>
|
||||||
|
</select>
|
||||||
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="column second-column">
|
||||||
|
<h2>Your order</h2>
|
||||||
|
<table>
|
||||||
|
<thead>
|
||||||
|
<th>
|
||||||
|
Product
|
||||||
|
</th>
|
||||||
|
<th>
|
||||||
|
Quantity
|
||||||
|
</th>
|
||||||
|
<th>
|
||||||
|
Total
|
||||||
|
</th>
|
||||||
|
</thead>
|
||||||
|
<tbody>
|
||||||
|
|
||||||
|
</tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
|
<h3>Total: <span>00</span></h3>
|
||||||
|
|
||||||
|
<div class="message">
|
||||||
|
<p>Thanks for the interest, but this is not a real e-commerce. This is just a project to develop one. Thank you for your interest, I hope you liked it. Francisco Pessano.</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<button disabled>Place order</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</body>
|
||||||
|
</html>
|
||||||
172
payment/sass/styles.scss
Normal file
172
payment/sass/styles.scss
Normal file
@@ -0,0 +1,172 @@
|
|||||||
|
$spaceBetweenColumns: 1vw;
|
||||||
|
|
||||||
|
@mixin columnSize($width) {
|
||||||
|
|
||||||
|
width: calc(#{$width} - #{$spaceBetweenColumns});
|
||||||
|
}
|
||||||
|
|
||||||
|
html {
|
||||||
|
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
|
overflow-y: overlay;
|
||||||
|
}
|
||||||
|
|
||||||
|
body {
|
||||||
|
|
||||||
|
height: 100%;
|
||||||
|
|
||||||
|
margin: 0;
|
||||||
|
padding: 0;
|
||||||
|
|
||||||
|
font-family: Roboto, helveltica;
|
||||||
|
|
||||||
|
background-color: rgb(214, 214, 214);
|
||||||
|
}
|
||||||
|
|
||||||
|
header {
|
||||||
|
|
||||||
|
width: 100vw;
|
||||||
|
height: fit-content;
|
||||||
|
|
||||||
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
|
||||||
|
background-color: rgb(123, 169, 255);
|
||||||
|
color: #fff;
|
||||||
|
|
||||||
|
padding: 0.5vh 0px;
|
||||||
|
|
||||||
|
.logo {
|
||||||
|
|
||||||
|
font-family: Dancing Script, helveltica;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
user-select: none;
|
||||||
|
|
||||||
|
margin-left: 1vw;
|
||||||
|
|
||||||
|
|
||||||
|
h3 {
|
||||||
|
|
||||||
|
font-weight: normal;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
|
||||||
|
margin-left: 1vw;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.sub-header {
|
||||||
|
|
||||||
|
background-color: rgb(80, 110, 167);
|
||||||
|
|
||||||
|
padding: 6vh 0px;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
|
||||||
|
user-select: none;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.payment-container {
|
||||||
|
|
||||||
|
height: calc(100% - #{$spaceBetweenColumns * 2});
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
|
||||||
|
margin-top: $spaceBetweenColumns;
|
||||||
|
padding-bottom: $spaceBetweenColumns;
|
||||||
|
|
||||||
|
.column {
|
||||||
|
|
||||||
|
background-color: #fff;
|
||||||
|
|
||||||
|
border-radius: 5px;
|
||||||
|
padding: 0 2vw;
|
||||||
|
|
||||||
|
&.frist-column {
|
||||||
|
|
||||||
|
$width: 60vw;
|
||||||
|
@include columnSize($width);
|
||||||
|
margin: 0 $spaceBetweenColumns 0 $spaceBetweenColumns;
|
||||||
|
|
||||||
|
form {
|
||||||
|
|
||||||
|
width: 100%;
|
||||||
|
|
||||||
|
display: flex;
|
||||||
|
flex-direction: column;
|
||||||
|
|
||||||
|
input[type="text"] {
|
||||||
|
|
||||||
|
border: none;
|
||||||
|
border-bottom: 1px solid rgb(133, 133, 133);
|
||||||
|
|
||||||
|
padding: 2vh 0px 1vh 0px;
|
||||||
|
|
||||||
|
opacity: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
select {
|
||||||
|
|
||||||
|
height: 5vh;
|
||||||
|
|
||||||
|
margin-top: 1vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
&.second-column {
|
||||||
|
|
||||||
|
$width: 40vw;
|
||||||
|
@include columnSize($width);
|
||||||
|
margin-right: calc(#{$spaceBetweenColumns} * 2);
|
||||||
|
|
||||||
|
table {
|
||||||
|
|
||||||
|
thead {
|
||||||
|
|
||||||
|
border-bottom: 1px solid rgb(133, 133, 133);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.message {
|
||||||
|
|
||||||
|
border: 1px solid rgb(255, 88, 88);
|
||||||
|
background-color: #0008;
|
||||||
|
|
||||||
|
color: #fff;
|
||||||
|
|
||||||
|
padding: 1vh 2vw;
|
||||||
|
}
|
||||||
|
|
||||||
|
button {
|
||||||
|
|
||||||
|
margin-top: 1vh;
|
||||||
|
|
||||||
|
height: 8vh;
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
|
||||||
|
border-bottom: 1px solid #000;
|
||||||
|
padding-bottom: 1vh;
|
||||||
|
}
|
||||||
|
|
||||||
|
table {
|
||||||
|
|
||||||
|
width: 100%;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -36,7 +36,7 @@ const pagarLogica = (checkout) => {
|
|||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
|
||||||
window.location.reload(true)
|
window.location.href = './payment'
|
||||||
|
|
||||||
}, 3000)
|
}, 3000)
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user