diff --git a/Payment.css b/Payment.css index fb124f8..b2a882b 100644 --- a/Payment.css +++ b/Payment.css @@ -27,19 +27,18 @@ body { #nav1>h2 { margin-bottom: -10px; - font-size: 24px; } #container { align-items: center; width: 35vw; background-color: #F5F5F5; + margin: auto; + margin-top: -18px; padding-left: 10px; padding-bottom: 20px; - position: fixed; - top: 88px; - left: 32%; - + margin-top: 88px; + z-index: 0; } .main { @@ -143,14 +142,15 @@ body { position: fixed; top: 0px; left: 0px; - width: 100vw; - height: 100vh; - background:rgba(0, 0, 0, 0.5); + width: 100%; + height: 100%; + background:rgba(0, 0, 0, 0.7); z-index: 1; display: none; } + .popup{ position: fixed; top: -150%; @@ -163,6 +163,8 @@ body { box-sizing: border-box; border-radius: 20px; padding: 50px; + z-index: 3; + border-radius: 20px; } @@ -184,7 +186,7 @@ body { body.popup-active .popup { top: 50%; } - body.popup-active .popup.overlay{ + body.popup-active .popup-overlay{ display: block; } @@ -233,12 +235,11 @@ body { border: 0px solid; margin-right: 20px; } - -.popup1{ +.popup1 { position: fixed; top: -150%; left: 50%; - transform: translate(-50%,-50%); + transform: translate(-50%, -50%); width: auto; background: #f5f5f5; text-align: center; @@ -246,44 +247,352 @@ body { box-sizing: border-box; border-radius: 20px; padding: 50px; - + z-index: 10; + border-radius: 20px; +} + +.popup-overlay1 { + position: fixed; + top: 0px; + left: 0px; + width: 100%; + height: 100%; + background: rgba(0, 0, 0, .8); + z-index: 5; + display: none; + +} + +.popup-close-btn1 { + position: absolute; + right: 20px; + top: -40px; + width: 30px; + height: 30px; + background: #222; + color: #fff; + font-size: 25px; + font-weight: 600; + line-height: 30px; + text-align: center; + border-radius: 50%; + } + body.popup1-active .popup1 { top: 50%; } -body.popup-active .popup1.overlay{ - display: block; + +body.popup1-active .popup-overlay1 { + display: block; } +.popup1>h3 { + text-align: center; +} + +.popup1>p { + text-align: center; +} +#otp { + text-align: center; + margin: auto; + width: 100%; +} +#submit { + background-color: gray; + border-radius: 10px; + border: 0px solid; + margin-right: 20px; + padding: 10px; +} +#submitOtp { + text-align: center; + margin: auto; + margin-top: 10px; +} +/* paytm css*/ +#wallet1>img{ + width: 5%; -@media all and (min-width:500px) and (max-width:768px){ - - - #nav1>h2 { - margin-bottom: -5px; - font-size: 20px; - } - #leftArrow { - padding: 2PX 10px; - } +} +.walletPaytm{ + position: fixed; + top: 0px; + left: 0px; + width: 100%; + height: 100%; + background:rgba(0, 0, 0, 0.5); + z-index: 0; + display: none; + + +} + +.walletPaytm1>div{ + margin-left: 0px; + margin-top: -20px; + margin-bottom: 30px; +} + +.walletPaytm1>div>img{ + width: 20%; } -@media all and (min-width:320px) and (max-width:480px){ +.walletPaytm1>h3{ + margin-left: 0px; +} +.walletPaytm1{ + position: fixed; + top: -150%; + left: 50%; + transform: translate(-50%,-50%); + width: 500px; + background: #f5f5f5; + padding: 20px; + box-sizing: border-box; + z-index: 2px; + border-radius: 15px; - #nav1>h2 { - margin-bottom: -2px; - font-size: 16px; - } - #leftArrow { - padding: 1PX 7px; - } +} + +.wallet-close-btn{ + position: absolute; + right: 2px; + top: -12px; + width: 30px; + height: 30px; + background: #222; + color: #fff; + font-size: 25px; + font-weight: 600; + line-height: 30px; + text-align: center; + border-radius: 50%; + + } + body.walletPaytm1-active .walletPaytm1{ + top: 50%; + } + body.walletPaytm1-active .walletPaytm{ + display: block; + } + + .userInput{ + display: flex; + flex-direction: row; + gap: 10px; + padding-top: 15px; + } + .userInput>input{ + margin: 0px; + height: 30px; + width: 50px; + border: none; + border-radius: 5px; + text-align: center; + font-family: Arial; + background-color: rgb(180, 178, 178); + } + + #input{ + display: flex; + justify-content: space-between; + margin: auto; + width: 80%; + } + #input>button{ + background-color: #222; + color: #fff; + font-family: Arial, Helvetica, sans-serif; + width: 80px; + font-size: 16px; + border-radius: 5px; + } + + + /* upi css */ + .upi-overlay { + position: fixed; + top: 0px; + left: 0px; + width: 100vw; + height: 100vh; + background: rgba(0, 0, 0, 0.5); + z-index: 0; + display: none; + + +} + +.upipopup { + position: fixed; + top: -150%; + left: 50%; + transform: translate(-50%, -50%); + width: auto; + background: #f5f5f5; + padding: 20px; + box-sizing: border-box; + z-index: 2px; + border-radius: 20px; + +} + +.upiClose { + position: absolute; + right: 20px; + top: 20px; + width: 30px; + height: 30px; + background: #222; + color: #fff; + font-size: 25px; + font-weight: 600; + line-height: 30px; + text-align: center; + border-radius: 50%; + +} + +body.upipopup-active .upipopup { + top: 50%; +} + +body.upipopup-active .upi-overlay { + display: block; +} + +.popup>h3 { + text-align: left; + margin-top: 0px; +} + +#upicardNum { + display: flex; + justify-content: flex-start; + width: 30vw; + font-size: 12px; + text-align: left; + padding: 5px; + border: 0.1px solid #B22222; + border-radius: 10px; + padding: 15px; +} + +#upicheckbox { + display: flex; + justify-content: flex-start; +} + +#confirm { + display: flex; + justify-content: space-between; + padding: 20px; +} + +#upisubmit { + background-color: gray; + border-radius: 10px; + border: 0px solid; + margin-right: 20px; +} + +#examp { + padding-left: 5px; + padding-top: 15px; + color: rgb(43, 40, 40); +} +#upicheckbox { + color: rgb(43, 40, 40); +} + +/* */ + +.upipopup1 { + position: fixed; + top: -150%; + left: 50%; + transform: translate(-50%, -50%); + width: auto; + background: #f5f5f5; + text-align: center; + padding: 20px; + box-sizing: border-box; + border-radius: 20px; + padding: 50px; + z-index: 10; + border-radius: 20px; +} + +.upi-overlay1 { + position: fixed; + top: 0px; + left: 0px; + width: 100%; + height: 100%; + background: rgba(0, 0, 0, .8); + z-index: 5; + display: none; + +} + +.upiClose1 { + position: absolute; + right: 20px; + top: -40px; + width: 30px; + height: 30px; + background: #222; + color: #fff; + font-size: 25px; + font-weight: 600; + line-height: 30px; + text-align: center; + border-radius: 50%; + +} + +body.upipopup1-active .upipopup1 { + top: 50%; +} + +body.upipopup1-active .upi-overlay1 { + display: block; +} + +.upipopup1>h3 { + text-align: center; +} + +.upipopup1>p { + text-align: center; +} + +#upipin { + text-align: center; + margin: auto; + width: 100%; +} + +#submitupiOtp { + text-align: center; + margin: auto; + margin-top: 10px; +} +.payAmt{ + margin-left: 20px; + +} +#payhead{ + padding-top: 4px; } \ No newline at end of file diff --git a/Payment.html b/Payment.html index c4cbb43..2a68424 100644 --- a/Payment.html +++ b/Payment.html @@ -5,9 +5,9 @@ - + Payment Page - + @@ -16,13 +16,15 @@ + + @@ -34,38 +36,71 @@

Debit or Credit Card

-

Add a Card

- +

Add to cart

- - +
+
+

Pay via UPI

+ +

Eg.8421746478@upi

+
+ +

Save my UPI ID securarly

+ +
+
+

+ +
+
×
+
+
+

Enter OTP

+

Check your mobile for OTP

+
+ +
+
×
+ +

Netbanking

@@ -85,18 +145,16 @@

Netbanking

See All Banks

- +

Pay after services

-

Pay online after services

+

Pay by cash after services

- - diff --git a/Payment.js b/Payment.js index 4bd6bb2..cf787c1 100644 --- a/Payment.js +++ b/Payment.js @@ -1,35 +1,196 @@ -//console.log("ok") +//1.pay bt card + +let totalAmount=localStorage.getItem("payAmount") +let payAmt=document.querySelectorAll(".payAmt") + +for(let i=0;i