forked from PriyaGhosal/SkillWise
-
Notifications
You must be signed in to change notification settings - Fork 0
/
buy.html
126 lines (104 loc) · 2.86 KB
/
buy.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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Buy Course</title>
<style>
body {
font-family: Arial, sans-serif;
background-color: #f7e8e0;
margin: 0;
padding: 20px;
}
h1 {
text-align: center;
color: #ff6a6a;
margin-bottom: 40px;
}
.container {
max-width: 600px;
margin: 0 auto;
background-color: #ffe0ae;
border: 2px solid #f7c7c7;
border-radius: 10px;
padding: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.summary-item {
display: flex;
justify-content: space-between;
margin-bottom: 10px;
}
.summary-item span {
font-size: 1.1rem;
}
.summary-item .price {
font-weight: bold;
}
.total {
font-size: 1.5rem;
font-weight: bold;
color: #ff6a6a;
margin-top: 20px;
text-align: right;
}
.pay-btn {
display: block;
background-color: #333;
color: #fff;
padding: 15px;
text-align: center;
font-size: 1.2rem;
border-radius: 5px;
border: none;
cursor: pointer;
width: 100%;
margin-top: 30px;
transition: background-color 0.3s ease;
}
.pay-btn:hover {
background-color: #555;
}
.back-btn {
display: block;
margin-bottom: 20px;
padding: 10px 20px;
background-color: #ff6a6a;
color: white;
border: none;
border-radius: 5px;
font-size: 1rem;
cursor: pointer;
transition: background-color 0.3s ease;
}
.back-btn:hover {
background-color: #ff4a4a;
}
</style>
</head>
<body>
<!-- Back Button -->
<button class="back-btn" onclick="history.back()">Back</button>
<h1>Order Summary</h1>
<div class="container">
<div class="summary-item">
<span>Course Price:</span>
<span class="price">$100.00</span>
</div>
<div class="summary-item">
<span>Taxes (10%):</span>
<span class="price">$10.00</span>
</div>
<div class="summary-item">
<span>Discount (5%):</span>
<span class="price">-$5.00</span>
</div>
<hr>
<div class="total">
Total Price: $105.00
</div>
<button class="pay-btn" onclick="alert('Redirecting to payment gateway...')">Pay Online</button>
</div>
</body>
</html>