Spaces:
Running

undefined / profile.html
DON-EMMANUELO's picture
so here was the goal
34620ff verified
Raw History Blame Contribute Delete
4.98 kB
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Profile - WhiskerComm</title>
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
<script src="https://cdn.tailwindcss.com"></script>
<script src="https://unpkg.com/feather-icons"></script>
</head>
<body class="bg-gray-100 h-screen">
<div class="w-full max-w-md h-screen bg-white mx-auto overflow-hidden flex flex-col">
<!-- Header -->
<div class="bg-emerald-500 text-white p-4 flex items-center justify-between">
<a href="index.html" class="flex items-center">
<i data-feather="arrow-left" class="mr-4"></i>
<h1 class="text-xl font-bold">Profile</h1>
</a>
<button>
<i data-feather="more-vertical"></i>
</button>
</div>
<!-- Profile Content -->
<div class="flex-1 overflow-y-auto p-6">
<!-- Profile Picture -->
<div class="flex flex-col items-center mb-8">
<div class="relative">
<img src="http://static.photos/cat/200x200/1" alt="Profile" class="w-32 h-32 rounded-full object-cover border-4 border-white shadow-md">
<button class="absolute bottom-0 right-0 bg-emerald-500 text-white p-2 rounded-full shadow-md">
<i data-feather="camera" class="w-4 h-4"></i>
</button>
</div>
<h2 class="text-xl font-bold mt-4">Purrfect Cat</h2>
<p class="text-gray-500">meow@whiskercomm.com</p>
</div>
<!-- Profile Info -->
<div class="bg-white rounded-xl shadow-sm p-4 mb-6">
<div class="flex items-center justify-between py-3 border-b border-gray-100">
<div>
<h3 class="font-medium text-gray-500">Name</h3>
<p class="text-gray-800">Purrfect Cat</p>
</div>
<button class="text-emerald-500">
<i data-feather="edit-2" class="w-5 h-5"></i>
</button>
</div>
<div class="flex items-center justify-between py-3 border-b border-gray-100">
<div>
<h3 class="font-medium text-gray-500">About</h3>
<p class="text-gray-800">Professional napper 😴</p>
</div>
<button class="text-emerald-500">
<i data-feather="edit-2" class="w-5 h-5"></i>
</button>
</div>
<div class="flex items-center justify-between py-3">
<div>
<h3 class="font-medium text-gray-500">Phone</h3>
<p class="text-gray-800">+1 234 567 8900</p>
</div>
</div>
</div>
<!-- Account Settings -->
<div class="bg-white rounded-xl shadow-sm p-4 mb-6">
<h3 class="font-bold text-gray-800 mb-4">Account</h3>
<div class="flex items-center justify-between py-3 border-b border-gray-100">
<div class="flex items-center">
<i data-feather="key" class="text-gray-500 mr-3"></i>
<span>Security</span>
</div>
<i data-feather="chevron-right" class="text-gray-400"></i>
</div>
<div class="flex items-center justify-between py-3 border-b border-gray-100">
<div class="flex items-center">
<i data-feather="smartphone" class="text-gray-500 mr-3"></i>
<span>Linked Devices</span>
</div>
<i data-feather="chevron-right" class="text-gray-400"></i>
</div>
<div class="flex items-center justify-between py-3">
<div class="flex items-center">
<i data-feather="help-circle" class="text-gray-500 mr-3"></i>
<span>Help</span>
</div>
<i data-feather="chevron-right" class="text-gray-400"></i>
</div>
</div>
<!-- Logout Button -->
<button class="w-full bg-red-500 text-white py-3 rounded-lg font-medium flex items-center justify-center">
<i data-feather="log-out" class="mr-2"></i>
Logout
</button>
</div>
</div>
<script>
feather.replace();
// Logout button functionality
document.querySelector('button[class*="bg-red-500"]').addEventListener('click', () => {
window.location.href = 'login.html';
});
</script>
</body>
</html>