-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathedit_contact.html
More file actions
159 lines (153 loc) · 8.57 KB
/
edit_contact.html
File metadata and controls
159 lines (153 loc) · 8.57 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Contact Management - Edit Contact</title>
<!-- Include Tailwind CSS via CDN -->
<script src="https://cdn.tailwindcss.com"></script>
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;500;600;700&display=swap" rel="stylesheet">
<!-- Font Awesome for icons -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<script>
tailwind.config = {
theme: {
extend: {
fontFamily: {
sans: ['Poppins', 'sans-serif'],
},
boxShadow: {
'custom': '0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04)',
},
}
}
}
</script>
<style>
.bg-gradient {
background: linear-gradient(135deg, #1e3a8a 0%, #1e40af 100%);
}
.animate-fade-in {
animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
from { opacity: 0; transform: translateY(-10px); }
to { opacity: 1; transform: translateY(0); }
}
.card-hover {
transition: all 0.3s ease;
}
.card-hover:hover {
transform: translateY(-5px);
box-shadow: 0 15px 30px -5px rgba(0, 0, 0, 0.3);
}
</style>
</head>
<body class="bg-gradient-to-br from-gray-900 to-gray-800 min-h-screen flex flex-col">
<!-- Header with right-aligned menu -->
<header class="bg-gradient shadow-lg">
<div class="container mx-auto px-4 py-4 flex justify-between items-center">
<a href="dashboard.html" class="flex items-center hover:opacity-90 transition-opacity duration-200">
<i class="fas fa-address-book text-white text-2xl mr-3"></i>
<div class="text-white font-bold text-xl">Contact Management</div>
</a>
<nav>
<ul class="flex space-x-6">
<li>
<a href="profile.html" class="text-gray-100 hover:text-white flex items-center transition-colors duration-200">
<i class="fas fa-user-circle mr-2"></i>
<span>Profile</span>
</a>
</li>
<li>
<a href="index.html" class="text-gray-100 hover:text-white flex items-center transition-colors duration-200">
<i class="fas fa-sign-out-alt mr-2"></i>
<span>Logout</span>
</a>
</li>
</ul>
</nav>
</div>
</header>
<!-- Main content -->
<main class="container mx-auto px-4 py-8 flex-grow">
<div class="flex items-center mb-6">
<a href="dashboard.html" class="text-blue-400 hover:text-blue-300 mr-4 flex items-center transition-colors duration-200">
<i class="fas fa-arrow-left mr-2"></i> Back to Contacts
</a>
<h1 class="text-2xl font-bold text-white flex items-center">
<i class="fas fa-user-edit text-blue-400 mr-3"></i> Edit Contact
</h1>
</div>
<div class="bg-gray-800 bg-opacity-80 rounded-xl shadow-custom border border-gray-700 overflow-hidden max-w-2xl mx-auto animate-fade-in">
<div class="p-8">
<form>
<div class="grid grid-cols-1 md:grid-cols-2 gap-5 mb-5">
<div>
<label for="first_name" class="block text-gray-300 text-sm font-medium mb-2">First Name</label>
<div class="relative">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
<i class="fas fa-user-tag text-gray-500"></i>
</div>
<input type="text" id="first_name" name="first_name"
class="w-full pl-10 pr-3 py-3 bg-gray-700 bg-opacity-50 border border-gray-600 text-white rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition-all duration-200"
placeholder="Enter first name" value="John" required>
</div>
</div>
<div>
<label for="last_name" class="block text-gray-300 text-sm font-medium mb-2">Last Name</label>
<div class="relative">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
<i class="fas fa-user-tag text-gray-500"></i>
</div>
<input type="text" id="last_name" name="last_name"
class="w-full pl-10 pr-3 py-3 bg-gray-700 bg-opacity-50 border border-gray-600 text-white rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition-all duration-200"
placeholder="Enter last name" value="Doe" required>
</div>
</div>
</div>
<div class="mb-5">
<label for="email" class="block text-gray-300 text-sm font-medium mb-2">Email</label>
<div class="relative">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
<i class="fas fa-envelope text-gray-500"></i>
</div>
<input type="email" id="email" name="email"
class="w-full pl-10 pr-3 py-3 bg-gray-700 bg-opacity-50 border border-gray-600 text-white rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition-all duration-200"
placeholder="Enter email address" value="john.doe@example.com" required>
</div>
</div>
<div class="mb-6">
<label for="phone" class="block text-gray-300 text-sm font-medium mb-2">Phone</label>
<div class="relative">
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
<i class="fas fa-phone text-gray-500"></i>
</div>
<input type="tel" id="phone" name="phone"
class="w-full pl-10 pr-3 py-3 bg-gray-700 bg-opacity-50 border border-gray-600 text-white rounded-lg focus:outline-none focus:ring-2 focus:ring-blue-500 focus:border-blue-500 transition-all duration-200"
placeholder="Enter phone number" value="+1 (555) 123-4567" required>
</div>
</div>
<div class="flex justify-end space-x-4">
<a href="dashboard.html"
class="px-5 py-3 bg-gray-700 text-white rounded-lg hover:bg-gray-600 focus:outline-none focus:ring-2 focus:ring-gray-500 focus:ring-offset-2 focus:ring-offset-gray-800 transition-all duration-200 flex items-center shadow-md">
<i class="fas fa-times mr-2"></i> Cancel
</a>
<button type="submit"
class="px-5 py-3 bg-gradient text-white rounded-lg hover:opacity-90 focus:outline-none focus:ring-2 focus:ring-blue-500 focus:ring-offset-2 focus:ring-offset-gray-800 transition-all duration-200 font-medium shadow-lg transform hover:-translate-y-0.5 flex items-center">
<i class="fas fa-save mr-2"></i> Save Changes
</button>
</div>
</form>
</div>
</div>
<!-- Footer -->
<div class="mt-10 mb-6 text-center text-gray-400 text-sm animate-fade-in">
<p>© 2025 Contact Management. All rights reserved.</p>
</div>
</main>
</body>
</html>