File size: 18,468 Bytes
95eac61
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65e2215
 
95eac61
 
 
 
65e2215
 
95eac61
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
718a771
 
 
 
 
 
 
95eac61
 
718a771
95eac61
718a771
 
 
 
 
 
 
95eac61
718a771
 
 
 
95eac61
 
 
718a771
 
 
95eac61
718a771
 
95eac61
718a771
95eac61
 
 
 
 
 
 
 
a7b5792
718a771
 
 
 
 
 
 
a7b5792
718a771
 
 
 
95eac61
 
 
718a771
 
 
95eac61
718a771
 
95eac61
718a771
95eac61
 
 
 
 
 
 
 
a7b5792
718a771
 
 
 
 
 
 
a7b5792
718a771
 
 
 
95eac61
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
a7b5792
718a771
 
 
 
 
 
 
a7b5792
718a771
 
 
 
95eac61
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
718a771
95eac61
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
718a771
95eac61
14055f2
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Webmail Client</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>
    <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
        body {
            font-family: 'Inter', sans-serif;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        .email-card:hover {
            transform: translateY(-2px);
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .compose-btn {
            transition: all 0.3s ease;
        }
        .compose-btn:hover {
            transform: scale(1.05);
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 10px 10px -5px rgba(0, 0, 0, 0.1);
        }
        .sidebar-item:hover {
            background-color: rgba(255, 255, 255, 0.1);
        }
        .unread-dot {
            width: 8px;
            height: 8px;
        }
        .avatar-placeholder {
            background: linear-gradient(45deg, #667eea, #764ba2);
        }
    </style>
</head>
<body class="bg-gradient-to-br from-indigo-500 via-purple-500 to-pink-500 min-h-screen">
    <!-- Background Animation -->
    <div id="vanta-bg" class="absolute inset-0 z-0"></div>
    
    <!-- Main Container -->
    <div class="relative z-10 min-h-screen flex flex-col">
        <!-- Header -->
        <header class="bg-white bg-opacity-10 backdrop-blur-lg border-b border-white border-opacity-20 py-4 px-6">
            <div class="flex items-center justify-between">
                <div class="flex items-center space-x-4">
                    <div class="flex items-center">
                        <i data-feather="mail" class="text-white mr-2"></i>
                        <h1 class="text-2xl font-bold text-white">WebMail</h1>
                    </div>
                </div>
                
                <div class="flex-1 max-w-2xl mx-8">
                    <div class="relative">
                        <input 
                            type="text" 
                            placeholder="Search emails..." 
                            class="w-full py-2 px-4 pl-10 rounded-full bg-white bg-opacity-20 backdrop-blur-sm text-white placeholder-white placeholder-opacity-70 focus:outline-none focus:ring-2 focus:ring-white focus:ring-opacity-50"
                        >
                        <i data-feather="search" class="absolute left-3 top-2.5 text-white text-opacity-70"></i>
                    </div>
                </div>
                
                <div class="flex items-center space-x-4">
                    <button class="p-2 rounded-full hover:bg-white hover:bg-opacity-20 transition">
                        <i data-feather="settings" class="text-white"></i>
                    </button>
                <div class="flex items-center space-x-2">
                    <div class="w-8 h-8 rounded-full bg-white bg-opacity-20 flex items-center justify-center">
                            <span class="text-white font-medium">U</span>
                        </div>
                        <span class="text-white font-medium">User</span>
                    </div>
                    <a href="login.html" class="text-white text-opacity-80 hover:text-opacity-100 text-sm transition">Logout</a>
</div>
            </div>
        </header>
        
        <!-- Main Content -->
        <div class="flex flex-1 overflow-hidden">
            <!-- Sidebar -->
            <aside class="w-64 bg-white bg-opacity-10 backdrop-blur-lg border-r border-white border-opacity-20 p-4">
                <button class="compose-btn w-full bg-gradient-to-r from-blue-500 to-purple-600 text-white py-3 px-4 rounded-lg font-medium flex items-center justify-center mb-6">
                    <i data-feather="edit-3" class="mr-2"></i>
                    Compose
                </button>
                
                <nav class="space-y-1">
                    <a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-lg text-white bg-white bg-opacity-20">
                        <i data-feather="inbox" class="mr-3"></i>
                        Inbox
                        <span class="ml-auto bg-white bg-opacity-20 rounded-full px-2 py-1 text-xs">12</span>
                    </a>
                    <a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-lg text-white">
                        <i data-feather="star" class="mr-3"></i>
                        Starred
                    </a>
                    <a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-lg text-white">
                        <i data-feather="send" class="mr-3"></i>
                        Sent
                    </a>
                    <a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-lg text-white">
                        <i data-feather="file-text" class="mr-3"></i>
                        Drafts
                        <span class="ml-auto bg-white bg-opacity-20 rounded-full px-2 py-1 text-xs">3</span>
                    </a>
                    <a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-lg text-white">
                        <i data-feather="trash-2" class="mr-3"></i>
                        Trash
                    </a>
                </nav>
                
                <div class="mt-8">
                    <h3 class="text-white text-sm font-medium px-3 mb-2">Labels</h3>
                    <div class="space-y-1">
                        <a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-lg text-white">
                            <span class="w-3 h-3 rounded-full bg-blue-400 mr-3"></span>
                            Work
                        </a>
                        <a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-lg text-white">
                            <span class="w-3 h-3 rounded-full bg-green-400 mr-3"></span>
                            Personal
                        </a>
                        <a href="#" class="sidebar-item flex items-center px-3 py-2 rounded-lg text-white">
                            <span class="w-3 h-3 rounded-full bg-yellow-400 mr-3"></span>
                            Important
                        </a>
                    </div>
                </div>
            </aside>
            
            <!-- Email List -->
            <main class="flex-1 bg-white bg-opacity-10 backdrop-blur-lg overflow-y-auto">
                <div class="p-6">
                    <div class="flex items-center justify-between mb-6">
                        <h2 class="text-xl font-bold text-white">Inbox</h2>
                        <div class="flex space-x-2">
                            <button class="p-2 rounded-lg bg-white bg-opacity-20 hover:bg-opacity-30 transition">
                                <i data-feather="refresh-cw" class="text-white"></i>
                            </button>
                            <button class="p-2 rounded-lg bg-white bg-opacity-20 hover:bg-opacity-30 transition">
                                <i data-feather="more-vertical" class="text-white"></i>
                            </button>
                        </div>
                    </div>
                    
                    <!-- Email Items -->
                    <div class="space-y-3">
                        <!-- Email 1 -->
                        <div class="email-card bg-white bg-opacity-20 backdrop-blur-sm rounded-xl p-4 cursor-pointer transition-all duration-300">
                            <div class="flex items-start">
                                <div class="flex-shrink-0 mr-4">
                                    <div class="avatar-placeholder w-10 h-10 rounded-full flex items-center justify-center">
                                        <span class="text-white font-medium">JD</span>
                                    </div>
                                </div>
                                <div class="flex-1 min-w-0">
                                    <div class="flex items-center justify-between">
                                        <h3 class="text-white font-medium truncate">John Doe</h3>
                                        <div class="flex items-center space-x-3">
                                            <span class="text-white text-opacity-70 text-sm">10:30 AM</span>
                                            <button class="text-white text-opacity-70 hover:text-opacity-100">
                                                <i data-feather="star" class="w-4 h-4"></i>
                                            </button>
                                        </div>
                                    </div>
                                    <p class="text-white text-opacity-90 font-medium truncate mt-1">Project Update - Q3 Results</p>
                                    <p class="text-white text-opacity-70 truncate mt-1">Hi there, I wanted to share the latest updates on our project progress and the Q3 results...</p>
                                </div>
                                <div class="flex-shrink-0 ml-4 flex space-x-2">
                                    <button class="text-white text-opacity-70 hover:text-opacity-100">
                                        <i data-feather="paperclip" class="w-4 h-4"></i>
                                    </button>
                                    <button class="text-white text-opacity-70 hover:text-opacity-100">
                                        <i data-feather="archive" class="w-4 h-4"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                        
                        <!-- Email 2 -->
                        <div class="email-card bg-white bg-opacity-20 backdrop-blur-sm rounded-xl p-4 cursor-pointer transition-all duration-300">
                            <div class="flex items-start">
                                <div class="flex-shrink-0 mr-4">
                                    <div class="avatar-placeholder w-10 h-10 rounded-full flex items-center justify-center">
                                        <span class="text-white font-medium">AC</span>
                                    </div>
                                </div>
                                <div class="flex-1 min-w-0">
                                    <div class="flex items-center justify-between">
                                        <h3 class="text-white font-medium truncate">Amazon Customer</h3>
                                        <div class="flex items-center space-x-3">
                                            <span class="text-white text-opacity-70 text-sm">Yesterday</span>
                                            <button class="text-white text-opacity-70 hover:text-opacity-100">
                                                <i data-feather="star" class="w-4 h-4"></i>
                                            </button>
                                        </div>
                                    </div>
                                    <p class="text-white text-opacity-90 font-medium truncate mt-1">Your Order #12345 Has Shipped</p>
                                    <p class="text-white text-opacity-70 truncate mt-1">Great news! Your order has been shipped and is on its way to you...</p>
                                </div>
                                <div class="flex-shrink-0 ml-4 flex space-x-2">
                                    <button class="text-white text-opacity-70 hover:text-opacity-100">
                                        <i data-feather="paperclip" class="w-4 h-4"></i>
                                    </button>
                                    <button class="text-white text-opacity-70 hover:text-opacity-100">
                                        <i data-feather="archive" class="w-4 h-4"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                        
                        <!-- Email 3 -->
                        <div class="email-card bg-white bg-opacity-20 backdrop-blur-sm rounded-xl p-4 cursor-pointer transition-all duration-300">
                            <div class="flex items-start">
                                <div class="flex-shrink-0 mr-4">
                                    <div class="avatar-placeholder w-10 h-10 rounded-full flex items-center justify-center">
                                        <span class="text-white font-medium">TW</span>
                                    </div>
                                </div>
                                <div class="flex-1 min-w-0">
                                    <div class="flex items-center justify-between">
                                        <h3 class="text-white font-medium truncate">Team Workshop</h3>
                                        <div class="flex items-center space-x-3">
                                            <span class="text-white text-opacity-70 text-sm">Oct 12</span>
                                            <button class="text-yellow-300">
                                                <i data-feather="star" class="w-4 h-4 fill-current"></i>
                                            </button>
                                        </div>
                                    </div>
                                    <p class="text-white text-opacity-90 font-medium truncate mt-1">Reminder: Design Workshop Tomorrow</p>
                                    <p class="text-white text-opacity-70 truncate mt-1">This is a reminder that our quarterly design workshop will be held tomorrow at 2 PM...</p>
                                </div>
                                <div class="flex-shrink-0 ml-4 flex space-x-2">
                                    <button class="text-white text-opacity-70 hover:text-opacity-100">
                                        <i data-feather="paperclip" class="w-4 h-4"></i>
                                    </button>
                                    <button class="text-white text-opacity-70 hover:text-opacity-100">
                                        <i data-feather="archive" class="w-4 h-4"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                        
                        <!-- Email 4 -->
                        <div class="email-card bg-white bg-opacity-20 backdrop-blur-sm rounded-xl p-4 cursor-pointer transition-all duration-300">
                            <div class="flex items-start">
                                <div class="flex-shrink-0 mr-4">
                                    <div class="avatar-placeholder w-10 h-10 rounded-full flex items-center justify-center">
                                        <span class="text-white font-medium">SP</span>
                                    </div>
                                </div>
                                <div class="flex-1 min-w-0">
                                    <div class="flex items-center justify-between">
                                        <h3 class="text-white font-medium truncate">Sarah Parker</h3>
                                        <div class="flex items-center space-x-3">
                                            <span class="text-white text-opacity-70 text-sm">Oct 11</span>
                                            <button class="text-white text-opacity-70 hover:text-opacity-100">
                                                <i data-feather="star" class="w-4 h-4"></i>
                                            </button>
                                        </div>
                                    </div>
                                    <p class="text-white text-opacity-90 font-medium truncate mt-1">Meeting Notes - Product Launch</p>
                                    <p class="text-white text-opacity-70 truncate mt-1">Here are the notes from yesterday's meeting regarding the upcoming product launch...</p>
                                </div>
                                <div class="flex-shrink-0 ml-4 flex space-x-2">
                                    <button class="text-white text-opacity-70 hover:text-opacity-100">
                                        <i data-feather="paperclip" class="w-4 h-4"></i>
                                    </button>
                                    <button class="text-white text-opacity-70 hover:text-opacity-100">
                                        <i data-feather="archive" class="w-4 h-4"></i>
                                    </button>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </main>
        </div>
    </div>

    <script>
        // Initialize Feather Icons
        feather.replace();
        
        // Initialize Vanta.js Background
        VANTA.GLOBE({
            el: "#vanta-bg",
            mouseControls: true,
            touchControls: true,
            gyroControls: false,
            minHeight: 200.00,
            minWidth: 200.00,
            scale: 1.00,
            scaleMobile: 1.00,
            color: 0x667eea,
            color2: 0x764ba2,
            backgroundColor: 0x0,
            size: 1.00
        });
        
        // Add hover effects to email cards
        document.querySelectorAll('.email-card').forEach(card => {
            card.addEventListener('mouseenter', () => {
                card.style.transform = 'translateY(-2px)';
            });
            
            card.addEventListener('mouseleave', () => {
                card.style.transform = 'translateY(0)';
            });
        });
    </script>
</body>
</html>