From 0ff5b5b92a87b46cece991c88611ee5c22efc075 Mon Sep 17 00:00:00 2001 From: Francisco Pessano Date: Thu, 18 Nov 2021 20:42:52 -0300 Subject: [PATCH] Payment page style and structure done --- payment/css/styles.css | 101 ++++++++++++++++++++++ payment/css/styles.css.map | 1 + payment/index.html | 67 +++++++++++++++ payment/sass/styles.scss | 172 +++++++++++++++++++++++++++++++++++++ scripts/pagarLogica.js | 2 +- 5 files changed, 342 insertions(+), 1 deletion(-) create mode 100644 payment/css/styles.css create mode 100644 payment/css/styles.css.map create mode 100644 payment/index.html create mode 100644 payment/sass/styles.scss diff --git a/payment/css/styles.css b/payment/css/styles.css new file mode 100644 index 0000000..b501582 --- /dev/null +++ b/payment/css/styles.css @@ -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 */ diff --git a/payment/css/styles.css.map b/payment/css/styles.css.map new file mode 100644 index 0000000..0491599 --- /dev/null +++ b/payment/css/styles.css.map @@ -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"} \ No newline at end of file diff --git a/payment/index.html b/payment/index.html new file mode 100644 index 0000000..4b6d2d6 --- /dev/null +++ b/payment/index.html @@ -0,0 +1,67 @@ + + + + + + + + + + Checkout + + + +
+ +
+ +
+

Checkout

+
+ +
+
+

Billing details

+
+ + + +
+
+ +
+

Your order

+ + + + + + + + + +
+ Product + + Quantity + + Total +
+ +

Total: 00

+ +
+

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.

+
+ + +
+
+ + + \ No newline at end of file diff --git a/payment/sass/styles.scss b/payment/sass/styles.scss new file mode 100644 index 0000000..3ab91ad --- /dev/null +++ b/payment/sass/styles.scss @@ -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%; + } + } +} \ No newline at end of file diff --git a/scripts/pagarLogica.js b/scripts/pagarLogica.js index b1bfcc7..c882ed3 100644 --- a/scripts/pagarLogica.js +++ b/scripts/pagarLogica.js @@ -36,7 +36,7 @@ const pagarLogica = (checkout) => { setTimeout(() => { - window.location.reload(true) + window.location.href = './payment' }, 3000) })