-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathPayment.html
168 lines (143 loc) · 3.55 KB
/
Payment.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<html>
<head>
<title>payment</title>
<script src="https://unpkg.com/sweetalert/dist/sweetalert.min.js"></script>
<style>
@import url('https://fonts.googleapis.com/css?family=Josefin+Sans');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
outline: none;
text-decoration: none;
font-family: 'Josefin Sans', sans-serif;
}
body{
background: url("https://tv-english.club/wp-content/uploads/2015/01/English-for-Travelling.jpg") no-repeat center center;
background-size: cover;
width: 100%;
height: 100vh;
}
.wrapper{
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%,-50%);
width: 500px;
height: 350px;
}
.checkout_wrapper{
width: 500px;
height: 350px;
display: flex;
}
.checkout_wrapper .product_info{
width: 45%;
background: #e85c4d;
border-top-left-radius: 20px;
border-bottom-left-radius: 20px;
position: relative;
}
.checkout_wrapper .product_info img{
width: 240px;
margin-top: 30px;
margin-left: 5px;
}
.checkout_wrapper .checkout_form{
width: 55%;
background: #fff;
padding: 50px 30px;
border-top-right-radius: 20px;
border-bottom-right-radius: 20px;
}
.checkout_wrapper .product_info .content{
text-align: center;
margin-top: 25px;
color: blue;
text-transform: uppercase;
}
.checkout_wrapper .product_info .content h3{
font-size: 18px;
line-height: 18px;
letter-spacing: 3px;
}
.checkout_wrapper .product_info .content p{
margin-top: 10px;
font-size:14px;
}
.checkout_form p{
margin-bottom: 25px;
font-size: 20px;
text-transform: uppercase;
}
.checkout_form .details .section{
margin-bottom: 15px;
}
.checkout_form .details .section input[type="text"]{
width: 100%;
padding: 10px;
border: 2px solid #dddddd;
}
.checkout_form .details .section input[type="text"]:focus{
border: 2px solid #e85c4d;
}
.checkout_form .details .section.last_section{
display: flex;
justify-content: space-between;
}
.checkout_form .details .section.last_section .item{
width: 48%;
}
.checkout_form .details .btn{
background: #e85c4d;
padding: 10px;
border-radius: 25px;
text-align: center;
margin-top: 25px;
}
.checkout_form .details .btn a{
color: #fff;
letter-spacing: 5px;
display: block;
}
</style>
</head>
<body>
<div class="wrapper">
<div class="checkout_wrapper">
<div class="product_info">
<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQYKm6AKeJNJ3zkPdHDhz-oREIQ4ocbc1U-cA&usqp=CAU" alt="product">
<div class="content">
</div>
</div>
<form class="checkout_form">
<p>Payment Section</p>
<div class="details">
<div class="section">
<input type="number" maxlength="16" placeholder="Card Number" min="1000000000000000" max="999999999999999" Required />
</div>
<div class="section">
<input type="text" placeholder="Cardholder Name" style=" text-transform: capitalize" required />
</div>
<div class="section last_section">
<div class="item">
<input type="number" class="input" id="check-in" placeholder="Expiry Date" min="0621" max="1231" required />
</div>
<div class="item">
<input type="password" maxlength="3" placeholder="CVV" required />
</div>
</div>
<div class="btn">
<a href="#"><button onclick="popup()" class="btn" style="margin-top: 0px;">Pay</button></a>
</div>
</div>
</div>
</div>
<script>
function popup(){
swal("Good Job " ,"Payment Successful ","success");
}
</script>
</div>
</body>
</html>