-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcheckout.php
More file actions
150 lines (127 loc) · 3.39 KB
/
checkout.php
File metadata and controls
150 lines (127 loc) · 3.39 KB
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Checkout</title>
<style>
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
font-family: 'Arial', sans-serif;
background-image: url(./images/backg.jpg);
background-repeat: no-repeat;
background-position: center;
background-size: cover;
color: #333;
}
.container {
max-width: 600px;
margin: 20px auto;
padding: 20px;
position: relative;
right: 200px;
background-image: linear-gradient(to right, rgba(240, 240, 240, 0.8), rgba(250, 250, 250, 0.5), rgba(255, 255, 255, 0.3));
border-radius: 8px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
h1, h2, h3 {
margin-bottom: 20px;
}
.cart-summary {
margin-bottom: 30px;
padding: 15px;
border-radius: 5px;
background: linear-gradient(to bottom, #f5f5f0 0%, #ebe9e0 100%);
border-left: 5px solid #ff6b81;
}
.cart-summary ul {
list-style: none;
}
.cart-summary li {
padding: 8px 0;
border-bottom: 1px solid #ddd;
}
.form-group {
margin-bottom: 15px;
}
label {
display: block;
margin-bottom: 5px;
}
input[type="text"],
input[type="email"],
textarea {
width: 100%;
padding: 10px;
border: 1px solid #ccc;
border-radius: 30px;
font-size: 14px;
margin-bottom: 15px;
transition: border-color 0.3s ease-in-out;
background: linear-gradient(to bottom, #f5f5f0 0%, #ebe9e0 100%);
}
textarea {
resize: vertical;
}
.btn {
background-color: #4CAF50;
color: white;
padding: 10px 15px;
border: none;
border-radius: 4px;
cursor: pointer;
font-size: 16px;
}
.btn:hover {
background-color: #45a049;
}
@media (max-width: 600px) {
.container {
padding: 15px;
}
.btn {
width: 100%;
}
}
</style>
</head>
<body>
<div class="container">
<h1>Checkout</h1>
<div class="cart-summary">
<h2>Your Cart</h2>
<ul id="cart-items">
<li>Pizza - $12.99 x 2</li>
<li>Burger - $8.99 x 1</li>
<li>Salad - $5.99 x 1</li>
</ul>
<h3>Total Amount: $40.96</h3>
</div>
<form id="checkout-form">
<h2>Billing Information</h2>
<div class="form-group">
<label for="name">Name:</label>
<input type="text" id="name" name="name" required>
</div>
<div class="form-group">
<label for="contact">Contact Number:</label>
<input type="text" id="contact" name="contact" required>
</div>
<div class="form-group">
<label for="email">Email:</label>
<input type="email" id="email" name="email" required>
</div>
<div class="form-group">
<label for="address">Address:</label>
<textarea id="address" name="address" required></textarea>
</div>
<button type="submit" class="btn">Proceed to Payment</button>
</form>
</div>
<script src="script.js"></script> <!-- Link to JavaScript file -->
</body>
</html>