forked from Vishalrj750/Final_Kfc_Repo
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathpayment.html
103 lines (92 loc) · 2.57 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
<!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">
<style>
#payment {
width: 50vw;
margin-left: 22%;
margin-top: 20vh;
/* border: 1px solid black; */
text-align: center;
padding-bottom: 10px;
border-radius: 10px;
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
padding-top: 20px;
}
#payment h3 {
font-size: 30px;
}
#card_number {
width: 25.4%;
}
#name {
width: 29%;
}
#submit {
margin-left: 8%;
margin-top: 5%;
padding: 1%;
border-radius: 20px;
color: white;
background-color: red;
font-size: 20px;
font-weight: 100;
cursor: pointer;
}
.homepage {
width: 17%;
height: 40px;
border: 1px solid black;
text-align: center;
border-radius: 20px;
box-sizing: border-box;
padding-top: 8px;
background-color: rgb(41, 37, 37);
}
.homepage a {
text-decoration: none;
font-size: 20px;
font-weight: 700;
color: whitesmoke;
font-family: sans-serif;
}
.homepage {
margin-right: 20px;
}
</style>
<title>Payment Page</title>
</head>
<body>
<div class="homepage"><a href="index.html"> ← Go back to Home Page</a></div>
<div id="payment">
<h3>Enter Your Card Details</h3>
<form action="submit">
<label for="card_number">Card Number</label>
<input type="text" id="card_number">
<br>
<br>
<label for="expiry_data">Expiry Date</label>
<input type="date">
<label for="cvv">CVV</label>
<input type="password">
<br>
<br>
<label for="name">Name</label>
<input type="text" id="name">
<br>
<br>
</form>
<button id="submit" onclick="orderPlaced()">Proceed to Pay</button>
</div>
<script>
const orderPlaced = () => {
setTimeout(() => {
alert(`Your Order has been placed. Thankyou`)
}, 3000)
}
</script>
</body>
</html>