forked from dixonsimon/NammaRation
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprofile.html
More file actions
340 lines (301 loc) · 12.2 KB
/
Copy pathprofile.html
File metadata and controls
340 lines (301 loc) · 12.2 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
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<link rel="icon" type="image/png" href="images/logo.jpg"/>
<link rel="stylesheet" href="stylesheets/styles.css">
<link rel="stylesheet" href="stylesheets/responsive.css">
<title>Namma Ration - Profile</title>
<style>
.profile-container {
display: grid;
grid-template-columns: 1fr 2fr;
gap: 2rem;
}
.profile-sidebar {
background: white;
border-radius: 10px;
padding: 1.5rem;
box-shadow: var(--shadow);
align-self: flex-start;
}
.profile-header {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
margin-bottom: 1.5rem;
}
.profile-avatar {
width: 100px;
height: 100px;
border-radius: 50%;
object-fit: cover;
margin-bottom: 1rem;
border: 3px solid var(--secondary);
}
.profile-name {
font-size: 1.5rem;
font-weight: 600;
margin-bottom: 0.5rem;
}
.profile-menu {
list-style: none;
}
.profile-menu li {
margin-bottom: 0.5rem;
}
.profile-menu a {
display: block;
padding: 0.8rem 1rem;
border-radius: 5px;
color: var(--text);
text-decoration: none;
transition: var(--transition);
}
.profile-menu a:hover, .profile-menu a.active {
background: var(--secondary);
color: white;
}
.profile-menu i {
margin-right: 0.5rem;
width: 20px;
}
.profile-content {
background: white;
border-radius: 10px;
padding: 2rem;
box-shadow: var(--shadow);
}
.profile-section {
margin-bottom: 2rem;
}
.profile-section h3 {
margin-bottom: 1rem;
padding-bottom: 0.5rem;
border-bottom: 2px solid #eee;
}
.info-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 1rem;
}
.info-item {
margin-bottom: 1rem;
}
.info-label {
font-weight: 500;
color: var(--text-light);
margin-bottom: 0.3rem;
}
.info-value {
font-weight: 500;
}
.order-history {
margin-top: 2rem;
}
.order-card {
background: #f8f9fa;
border-radius: 8px;
padding: 1rem;
margin-bottom: 1rem;
}
.order-header {
display: flex;
justify-content: space-between;
margin-bottom: 0.5rem;
}
.order-id {
font-weight: 600;
}
.order-date {
color: var(--text-light);
}
.order-status {
display: inline-block;
padding: 0.3rem 0.8rem;
border-radius: 20px;
font-size: 0.8rem;
font-weight: 500;
}
.status-delivered {
background: #e8f5e9;
color: #2e7d32;
}
.status-pending {
background: #fff3e0;
color: #ef6c00;
}
.order-items {
margin-top: 0.5rem;
color: var(--text-light);
}
@media (max-width: 768px) {
.profile-container {
grid-template-columns: 1fr;
}
.info-grid {
grid-template-columns: 1fr;
}
}
</style>
</head>
<body>
<header>
<div class="nav-container">
<div class="logo">
<img src="https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcR3t6PpUyV6yQJfQk8X1vHp8F7F5f9n3Q3Q2g&s" alt="Namma Ration Logo">
<h1>Namma Ration</h1>
</div>
<div class="nav-links">
<a href="home.html"><i class="fas fa-home"></i> Home</a>
<a href="cart.html"><i class="fas fa-shopping-cart"></i> Cart <span id="cart-count" class="cart-count"></span></a>
<a href="location.html"><i class="fas fa-map-marker-alt"></i> Location</a>
<a href="profile.html" class="active"><i class="fas fa-user"></i> Profile</a>
</div>
</div>
</header>
<div class="search-container">
<div class="search-bar">
<input type="text" placeholder="Search for products, categories, or offers...">
<div class="search-icon">
<i class="fas fa-search"></i>
</div>
</div>
</div>
<main>
<h1 class="page-title">My Profile</h1>
<div class="profile-container">
<div class="profile-sidebar">
<div class="profile-header">
<img src="https://ui-avatars.com/api/?name=User+Name&background=3498db&color=fff" alt="User Avatar" class="profile-avatar">
<h2 class="profile-name">Ramesh Kumar</h2>
<p>Gold Member</p>
</div>
<ul class="profile-menu">
<li><a href="#personal" class="active"><i class="fas fa-user"></i> Personal Info</a></li>
<li><a href="#address"><i class="fas fa-map-marker-alt"></i> Addresses</a></li>
<li><a href="#orders"><i class="fas fa-history"></i> Order History</a></li>
<li><a href="#family"><i class="fas fa-users"></i> Family Details</a></li>
<li><a href="#settings"><i class="fas fa-cog"></i> Settings</a></li>
<li><a href="#logout"><i class="fas fa-sign-out-alt"></i> Logout</a></li>
</ul>
</div>
<div class="profile-content">
<div id="personal" class="profile-section">
<h3>Personal Information</h3>
<div class="info-grid">
<div class="info-item">
<div class="info-label">Full Name</div>
<div class="info-value">Ramesh Kumar</div>
</div>
<div class="info-item">
<div class="info-label">Ration Card Number</div>
<div class="info-value">KA-BLR-1234567</div>
</div>
<div class="info-item">
<div class="info-label">Phone Number</div>
<div class="info-value">9876543210</div>
</div>
<div class="info-item">
<div class="info-label">Email Address</div>
<div class="info-value">ramesh.kumar@example.com</div>
</div>
<div class="info-item">
<div class="info-label">Date of Birth</div>
<div class="info-value">15/08/1985</div>
</div>
<div class="info-item">
<div class="info-label">Category</div>
<div class="info-value">APL (Above Poverty Line)</div>
</div>
</div>
</div>
<div id="address" class="profile-section">
<h3>Delivery Addresses</h3>
<div class="form-container">
<div class="info-item">
<div class="info-label">Primary Address</div>
<div class="info-value">
123, 4th Cross, Rajajinagar<br>
Bangalore - 560010<br>
Karnataka
</div>
</div>
<button class="btn" style="margin-top: 1rem;">Edit Address</button>
</div>
</div>
<div id="orders" class="profile-section">
<h3>Recent Orders</h3>
<div class="order-history">
<div class="order-card">
<div class="order-header">
<span class="order-id">Order #12345</span>
<span class="order-date">15 Aug 2023</span>
</div>
<div>
<span class="order-status status-delivered">Delivered</span>
</div>
<div class="order-items">Rice (5kg), Wheat (4kg), Sugar (2kg), Oil (1L)</div>
<div class="order-total">Total: ₹480</div>
</div>
<div class="order-card">
<div class="order-header">
<span class="order-id">Order #12340</span>
<span class="order-date">01 Aug 2023</span>
</div>
<div>
<span class="order-status status-delivered">Delivered</span>
</div>
<div class="order-items">Rice (5kg), Toor Dal (2kg), Salt (1kg)</div>
<div class="order-total">Total: ₹350</div>
</div>
</div>
</div>
<div id="family" class="profile-section">
<h3>Family Details</h3>
<div class="info-grid">
<div class="info-item">
<div class="info-label">Head of Family</div>
<div class="info-value">Ramesh Kumar</div>
</div>
<div class="info-item">
<div class="info-label">Family Members</div>
<div class="info-value">4</div>
</div>
<div class="info-item">
<div class="info-label">Card Type</div>
<div class="info-value">Regular</div>
</div>
</div>
<h4 style="margin-top: 1.5rem;">Member Details</h4>
<div class="form-container">
<div class="info-item">
<div class="info-label">1. Ramesh Kumar</div>
<div class="info-value">Head - 42 years</div>
</div>
<div class="info-item">
<div class="info-label">2. Sunita Kumar</div>
<div class="info-value">Wife - 38 years</div>
</div>
<div class="info-item">
<div class="info-label">3. Rahul Kumar</div>
<div class="info-value">Son - 16 years</div>
</div>
<div class="info-item">
<div class="info-label">4. Priya Kumar</div>
<div class="info-value">Daughter - 12 years</div>
</div>
</div>
</div>
</div>
</div>
</main>
<footer>
<p>© 2025 Namma Ration. All rights reserved.</p>
</footer>
<script src="scripts/script.js"></script>
</body>
</html>