KhingLeo1's picture
can i add more features you think is going help the system and can i get an admin page where admin can update and edit and delete also can i have a graph chart in the admin page so he or she can follow sale made in the month and amount of money made in a year
3c39635 verified
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>My Account | ShopSphere</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<link rel="stylesheet" href="style.css">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
<script src="https://unpkg.com/feather-icons"></script>
</head>
<body class="bg-gray-50">
<custom-navbar></custom-navbar>
<main class="py-8 px-4 max-w-7xl mx-auto">
<div class="flex flex-col md:flex-row gap-8">
<!-- Account Sidebar -->
<div class="md:w-1/4">
<div class="bg-white rounded-lg shadow-md overflow-hidden sticky top-24">
<!-- User Profile -->
<div class="p-6 border-b">
<div class="flex items-center">
<div class="w-16 h-16 rounded-full bg-gray-200 overflow-hidden mr-4">
<img src="http://static.photos/people/200x200/1" alt="User" class="w-full h-full object-cover">
</div>
<div>
<h3 class="font-bold">Sarah Johnson</h3>
<p class="text-sm text-gray-500">Member since 2023</p>
</div>
</div>
</div>
<!-- Account Navigation -->
<nav>
<a href="/account.html" class="flex items-center px-6 py-3 bg-indigo-50 text-indigo-700 font-medium">
<i data-feather="user" class="mr-3 w-5 h-5"></i>
Profile
</a>
<a href="/account-orders.html" class="flex items-center px-6 py-3 border-t border-gray-100 text-gray-700 hover:bg-gray-50">
<i data-feather="package" class="mr-3 w-5 h-5"></i>
My Orders
</a>
<a href="/account-wishlist.html" class="flex items-center px-6 py-3 border-t border-gray-100 text-gray-700 hover:bg-gray-50">
<i data-feather="heart" class="mr-3 w-5 h-5"></i>
Wishlist
</a>
<a href="/account-addresses.html" class="flex items-center px-6 py-3 border-t border-gray-100 text-gray-700 hover:bg-gray-50">
<i data-feather="map-pin" class="mr-3 w-5 h-5"></i>
Addresses
</a>
<a href="/account-payment.html" class="flex items-center px-6 py-3 border-t border-gray-100 text-gray-700 hover:bg-gray-50">
<i data-feather="credit-card" class="mr-3 w-5 h-5"></i>
Payment Methods
</a>
<a href="/account-settings.html" class="flex items-center px-6 py-3 border-t border-gray-100 text-gray-700 hover:bg-gray-50">
<i data-feather="settings" class="mr-3 w-5 h-5"></i>
Settings
</a>
<a href="/logout.html" class="flex items-center px-6 py-3 border-t border-gray-100 text-gray-700 hover:bg-gray-50">
<i data-feather="log-out" class="mr-3 w-5 h-5"></i>
Log Out
</a>
</nav>
</div>
</div>
<!-- Account Content -->
<div class="md:w-3/4">
<div class="bg-white rounded-lg shadow-md overflow-hidden">
<div class="px-6 py-4 border-b">
<h2 class="text-xl font-bold">My Profile</h2>
</div>
<div class="p-6">
<form>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
<div>
<label for="first-name" class="block text-sm font-medium text-gray-700 mb-1">First Name</label>
<input type="text" id="first-name" value="Sarah" class="input-field w-full">
</div>
<div>
<label for="last-name" class="block text-sm font-medium text-gray-700 mb-1">Last Name</label>
<input type="text" id="last-name" value="Johnson" class="input-field w-full">
</div>
<div>
<label for="email" class="block text-sm font-medium text-gray-700 mb-1">Email</label>
<input type="email" id="email" value="sarah.johnson@example.com" class="input-field w-full">
</div>
<div>
<label for="phone" class="block text-sm font-medium text-gray-700 mb-1">Phone</label>
<input type="tel" id="phone" value="+1 (555) 123-4567" class="input-field w-full">
</div>
</div>
<h3 class="text-lg font-medium mb-4">Change Password</h3>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 mb-6">
<div>
<label for="current-password" class="block text-sm font-medium text-gray-700 mb-1">Current Password</label>
<input type="password" id="current-password" class="input-field w-full">
</div>
<div>
<label for="new-password" class="block text-sm font-medium text-gray-700 mb-1">New Password</label>
<input type="password" id="new-password" class="input-field w-full">
</div>
<div>
<label for="confirm-password" class="block text-sm font-medium text-gray-700 mb-1">Confirm New Password</label>
<input type="password" id="confirm-password" class="input-field w-full">
</div>
</div>
<div class="flex justify-end">
<button type="button" class="bg-gray-200 hover:bg-gray-300 text-gray-800 px-6 py-2 rounded-md font-medium mr-3 transition duration-300">
Cancel
</button>
<button type="submit" class="bg-indigo-600 hover:bg-indigo-700 text-white px-6 py-2 rounded-md font-medium transition duration-300">
Save Changes
</button>
</div>
</form>
</div>
</div>
<!-- Recent Orders -->
<div class="bg-white rounded-lg shadow-md overflow-hidden mt-6">
<div class="px-6 py-4 border-b">
<div class="flex justify-between items-center">
<h2 class="text-xl font-bold">Recent Orders</h2>
<a href="/account-orders.html" class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">View All</a>
</div>
</div>
<div class="divide-y divide-gray-200">
<div class="p-6">
<div class="flex flex-col sm:flex-row justify-between items-start sm:items-center mb-4">
<div class="flex items-center">
<span class="text-sm font-medium text-gray-500 mr-4">Order #12345</span>
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-green-100 text-green-800">
Delivered
</span>
</div>
<div class="mt-2 sm:mt-0">
<span class="text-sm text-gray-500">Placed on June 12, 2023</span>
</div>
</div>
<div class="flex flex-col sm:flex-row gap-4">
<div class="flex-shrink-0 w-16 h-16 bg-gray-100 rounded-md overflow-hidden">
<img src="http://static.photos/technology/200x200/1" alt="Product" class="w-full h-full object-cover">
</div>
<div class="flex-shrink-0 w-16 h-16 bg-gray-100 rounded-md overflow-hidden">
<img src="http://static.photos/technology/200x200/2" alt="Product" class="w-full h-full object-cover">
</div>
<div class="flex-1">
<p class="text-sm text-gray-500">2 items • Total: $159.98</p>
<div class="mt-2">
<a href="/account-order-detail.html" class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">View Order</a>
<span class="mx-2 text-gray-300">|</span>
<a href="#" class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">Track Package</a>
</div>
</div>
</div>
</div>
<div class="p-6">
<div class="flex flex-col sm:flex-row justify-between items-start sm:items-center mb-4">
<div class="flex items-center">
<span class="text-sm font-medium text-gray-500 mr-4">Order #12344</span>
<span class="inline-flex items-center px-2.5 py-0.5 rounded-full text-xs font-medium bg-yellow-100 text-yellow-800">
Shipped
</span>
</div>
<div class="mt-2 sm:mt-0">
<span class="text-sm text-gray-500">Placed on June 5, 2023</span>
</div>
</div>
<div class="flex flex-col sm:flex-row gap-4">
<div class="flex-shrink-0 w-16 h-16 bg-gray-100 rounded-md overflow-hidden">
<img src="http://static.photos/technology/200x200/3" alt="Product" class="w-full h-full object-cover">
</div>
<div class="flex-1">
<p class="text-sm text-gray-500">1 item • Total: $67.99</p>
<div class="mt-2">
<a href="/account-order-detail.html" class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">View Order</a>
<span class="mx-2 text-gray-300">|</span>
<a href="#" class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">Track Package</a>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Saved Addresses -->
<div class="bg-white rounded-lg shadow-md overflow-hidden mt-6">
<div class="px-6 py-4 border-b">
<div class="flex justify-between items-center">
<h2 class="text-xl font-bold">Saved Addresses</h2>
<button class="text-indigo-600 hover:text-indigo-800 text-sm font-medium">Add New</button>
</div>
</div>
<div class="grid grid-cols-1 md:grid-cols-2 gap-6 p-6">
<div class="border rounded-lg p-4 relative">
<div class="absolute top-2 right-2">
<button class="text-gray-400 hover:text-indigo-600">
<i data-feather="edit-2" class="w-4 h-4"></i>
</button>
</div>
<h3 class="font-medium mb-2">Home</h3>
<p class="text-sm text-gray-600">
123 Main Street<br>
Apt 4B<br>
New York, NY 10001<br>
United States
</p>
<div class="mt-4">
<button class="text-indigo-600 hover:text-indigo-800 text-xs font-medium">Set as default</button>
</div>
</div>
<div class="border rounded-lg p-4 relative">
<div class="absolute top-2 right-2">
<button class="text-gray-400 hover:text-indigo-600">
<i data-feather="edit-2" class="w-4 h-4"></i>
</button>
</div>
<h3 class="font-medium mb-2">Work</h3>
<p class="text-sm text-gray-600">
456 Business Ave<br>
Suite 200<br>
New York, NY 10016<br>
United States
</p>
</div>
</div>
</div>
</div>
</div>
</main>
<custom-footer></custom-footer>
<script src="components/navbar.js"></script>
<script src="components/footer.js"></script>
<script src="script.js"></script>
<script>
feather.replace();
</script>
</body>
</html>