-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathorders.html
More file actions
169 lines (150 loc) · 5.11 KB
/
Copy pathorders.html
File metadata and controls
169 lines (150 loc) · 5.11 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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Your Orders - Authentic Sarees</title>
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.css">
<link href="https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700&display=swap" rel="stylesheet">
<style type="text/css">
body {
background-color: #ffeaa1;
font-family: 'Cinzel', serif;
color: #2b306f;
}
h1 {
color: #2b306f;
font-weight: bold;
animation: fadeInDown 2s;
}
.table {
background-color: #ffffff;
border-radius: 8px;
box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}
.table th {
background-color: #2b306f;
color: #ffeaa1;
}
.btn-primary {
background-color: #2b306f;
border: none;
color: #ffeaa1;
transition: transform 0.3s ease, background-color 0.3s ease;
}
.btn-primary:hover {
background-color: #ffeaa1;
color: #2b306f;
transform: scale(1.1);
}
.fade-in {
animation: fadeIn 2s;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
@keyframes fadeInDown {
from { opacity: 0; transform: translateY(-20px); }
to { opacity: 1; transform: translateY(0); }
}
.img-hover-zoom img {
border-radius: 8px;
transition: transform 0.5s ease;
}
.img-hover-zoom:hover img {
transform: scale(1.1);
}
.status {
font-weight: bold;
border-radius: 8px;
padding: 5px 10px;
}
.status.shipped {
background-color: #d4edda;
color: #155724;
}
.status.processing {
background-color: #fff3cd;
color: #856404;
}
.status.delivered {
background-color: #cce5ff;
color: #004085;
}
</style>
</head>
<body>
<div class="container mt-5">
<h1 class="text-center">Your Orders</h1>
<p class="text-center" id="greeting"></p>
<table class="table table-bordered mt-4 fade-in">
<thead>
<tr>
<th scope="col">Order ID</th>
<th scope="col">Saree Type</th>
<th scope="col">Quantity</th>
<th scope="col">Price</th>
<th scope="col">Order Date</th>
<th scope="col">Status</th>
</tr>
</thead>
<tbody>
<tr>
<td>001</td>
<td class="img-hover-zoom">
<img src="./Images/OIP (2).jpg" width="200" height="200">
<p>Banarasi Silk Saree</p>
</td>
<td>1</td>
<td>₹5,000</td>
<td>2023-10-01</td>
<td><span class="status shipped">Shipped</span></td>
</tr>
<tr>
<td>002</td>
<td class="img-hover-zoom">
<img src="./Images/OIP (3).jpg" width="200" height="200">
<p>Kanjeevaram Silk Saree</p>
</td>
<td>2</td>
<td>₹10,000</td>
<td>2023-10-05</td>
<td><span class="status processing">Processing</span></td>
</tr>
<tr>
<td>003</td>
<td class="img-hover-zoom">
<img src="./Images/OIP (4).jpg" width="200" height="200">
<p>Banarasi Cotton Saree</p>
</td>
<td>1</td>
<td>₹2,500</td>
<td>2023-10-10</td>
<td><span class="status delivered">Delivered</span></td>
</tr>
</tbody>
</table>
<div class="text-center mt-4">
<a href="index.html" class="btn btn-primary mb-4">Continue Shopping</a>
</div>
</div>
<script>
document.addEventListener('DOMContentLoaded', function() {
const greetingElement = document.getElementById('greeting');
const now = new Date();
const hours = now.getHours();
let greeting;
if (hours < 12) {
greeting = 'Good Morning!';
} else if (hours < 18) {
greeting = 'Good Afternoon!';
} else {
greeting = 'Good Evening!';
}
greetingElement.textContent = `${greeting} Thank you for choosing our authentic sarees!`;
});
</script>
</body>
</html>