File size: 21,195 Bytes
f39a5b4
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>MailBox - Modern Email Client</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link href="https://unpkg.com/aos@2.3.1/dist/aos.css" rel="stylesheet">
    <script src="https://unpkg.com/aos@2.3.1/dist/aos.js"></script>
    <script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
    <script src="https://unpkg.com/feather-icons"></script>
    <style>
        .email-item:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
        }
        .sidebar-item:hover {
            background-color: rgba(59, 130, 246, 0.1);
        }
        .compose-btn:hover {
            transform: scale(1.05);
        }
        .unread {
            font-weight: 600;
        }
    </style>
</head>
<body class="bg-gray-50 font-sans antialiased">
    <div class="flex h-screen overflow-hidden">
        <!-- Sidebar -->
        <div class="hidden md:flex md:flex-shrink-0">
            <div class="flex flex-col w-64 bg-white border-r border-gray-200">
                <div class="flex items-center justify-center h-16 px-4 border-b border-gray-200">
                    <div class="flex items-center">
                        <i data-feather="mail" class="text-blue-500 h-6 w-6"></i>
                        <span class="ml-2 text-xl font-semibold text-gray-800">MailBox</span>
                    </div>
                </div>
                <div class="flex flex-col flex-grow px-4 py-4">
                    <button class="compose-btn flex items-center justify-center px-4 py-3 bg-blue-500 text-white rounded-lg shadow-md mb-6 transition duration-200">
                        <i data-feather="plus" class="h-4 w-4"></i>
                        <span class="ml-2">Compose</span>
                    </button>
                    <nav class="flex-1 space-y-1">
                        <a href="#" class="sidebar-item flex items-center px-4 py-3 text-sm font-medium text-gray-700 rounded-lg transition duration-150">
                            <i data-feather="inbox" class="h-4 w-4 text-blue-500"></i>
                            <span class="ml-3">Inbox</span>
                            <span class="ml-auto bg-blue-500 text-white text-xs px-2 py-1 rounded-full">12</span>
                        </a>
                        <a href="#" class="sidebar-item flex items-center px-4 py-3 text-sm font-medium text-gray-700 rounded-lg transition duration-150">
                            <i data-feather="star" class="h-4 w-4 text-yellow-500"></i>
                            <span class="ml-3">Starred</span>
                        </a>
                        <a href="#" class="sidebar-item flex items-center px-4 py-3 text-sm font-medium text-gray-700 rounded-lg transition duration-150">
                            <i data-feather="send" class="h-4 w-4 text-green-500"></i>
                            <span class="ml-3">Sent</span>
                        </a>
                        <a href="#" class="sidebar-item flex items-center px-4 py-3 text-sm font-medium text-gray-700 rounded-lg transition duration-150">
                            <i data-feather="file-text" class="h-4 w-4 text-gray-500"></i>
                            <span class="ml-3">Drafts</span>
                            <span class="ml-auto text-xs text-gray-500">3</span>
                        </a>
                        <a href="#" class="sidebar-item flex items-center px-4 py-3 text-sm font-medium text-gray-700 rounded-lg transition duration-150">
                            <i data-feather="trash-2" class="h-4 w-4 text-red-500"></i>
                            <span class="ml-3">Trash</span>
                        </a>
                        <div class="py-2">
                            <p class="px-4 text-xs font-semibold text-gray-500 uppercase tracking-wider">Labels</p>
                            <a href="#" class="sidebar-item flex items-center px-4 py-2 text-sm font-medium text-gray-700 rounded-lg transition duration-150">
                                <span class="w-3 h-3 rounded-full bg-red-500 mr-3"></span>
                                <span>Important</span>
                            </a>
                            <a href="#" class="sidebar-item flex items-center px-4 py-2 text-sm font-medium text-gray-700 rounded-lg transition duration-150">
                                <span class="w-3 h-3 rounded-full bg-green-500 mr-3"></span>
                                <span>Personal</span>
                            </a>
                            <a href="#" class="sidebar-item flex items-center px-4 py-2 text-sm font-medium text-gray-700 rounded-lg transition duration-150">
                                <span class="w-3 h-3 rounded-full bg-purple-500 mr-3"></span>
                                <span>Work</span>
                            </a>
                        </div>
                    </nav>
                </div>
                <div class="px-4 py-4 border-t border-gray-200">
                    <div class="flex items-center">
                        <img src="http://static.photos/people/200x200/42" alt="Profile" class="h-8 w-8 rounded-full">
                        <div class="ml-2">
                            <p class="text-sm font-medium text-gray-900">John Doe</p>
                            <p class="text-xs text-gray-500">john@example.com</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>

        <!-- Main Content -->
        <div class="flex flex-col flex-1 overflow-hidden">
            <!-- Header -->
            <header class="bg-white border-b border-gray-200">
                <div class="flex items-center justify-between px-4 py-3">
                    <div class="flex items-center">
                        <button class="md:hidden p-2 rounded-md text-gray-500 hover:text-gray-600 hover:bg-gray-100 focus:outline-none">
                            <i data-feather="menu" class="h-5 w-5"></i>
                        </button>
                        <div class="relative ml-4">
                            <div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
                                <i data-feather="search" class="h-4 w-4 text-gray-400"></i>
                            </div>
                            <input class="block w-full pl-10 pr-3 py-2 border border-gray-300 rounded-md leading-5 bg-white placeholder-gray-500 focus:outline-none focus:placeholder-gray-400 focus:ring-1 focus:ring-blue-500 focus:border-blue-500 sm:text-sm" placeholder="Search mail" type="search">
                        </div>
                    </div>
                    <div class="flex items-center space-x-4">
                        <button class="p-2 rounded-full text-gray-500 hover:text-gray-600 hover:bg-gray-100 focus:outline-none">
                            <i data-feather="help-circle" class="h-5 w-5"></i>
                        </button>
                        <button class="p-2 rounded-full text-gray-500 hover:text-gray-600 hover:bg-gray-100 focus:outline-none">
                            <i data-feather="settings" class="h-5 w-5"></i>
                        </button>
                        <button class="p-2 rounded-full text-gray-500 hover:text-gray-600 hover:bg-gray-100 focus:outline-none">
                            <i data-feather="bell" class="h-5 w-5"></i>
                        </button>
                    </div>
                </div>
            </header>

            <!-- Email List -->
            <div class="flex-1 flex overflow-hidden">
                <div class="flex-1 overflow-y-auto">
                    <div class="border-b border-gray-200 px-4 py-3 flex items-center justify-between bg-white sticky top-0 z-10">
                        <div class="flex items-center space-x-4">
                            <button class="p-2 rounded-md text-gray-500 hover:text-gray-600 hover:bg-gray-100 focus:outline-none">
                                <i data-feather="refresh-cw" class="h-4 w-4"></i>
                            </button>
                            <button class="p-2 rounded-md text-gray-500 hover:text-gray-600 hover:bg-gray-100 focus:outline-none">
                                <i data-feather="archive" class="h-4 w-4"></i>
                            </button>
                            <button class="p-2 rounded-md text-gray-500 hover:text-gray-600 hover:bg-gray-100 focus:outline-none">
                                <i data-feather="trash-2" class="h-4 w-4"></i>
                            </button>
                            <button class="p-2 rounded-md text-gray-500 hover:text-gray-600 hover:bg-gray-100 focus:outline-none">
                                <i data-feather="mail" class="h-4 w-4"></i>
                            </button>
                        </div>
                        <div class="flex items-center space-x-2">
                            <span class="text-sm text-gray-500">1-50 of 123</span>
                            <button class="p-2 rounded-md text-gray-500 hover:text-gray-600 hover:bg-gray-100 focus:outline-none">
                                <i data-feather="chevron-left" class="h-4 w-4"></i>
                            </button>
                            <button class="p-2 rounded-md text-gray-500 hover:text-gray-600 hover:bg-gray-100 focus:outline-none">
                                <i data-feather="chevron-right" class="h-4 w-4"></i>
                            </button>
                        </div>
                    </div>
                    <div class="divide-y divide-gray-200">
                        <!-- Email Item -->
                        <div class="email-item flex items-center px-4 py-3 bg-white hover:bg-blue-50 cursor-pointer transition duration-150">
                            <div class="flex items-center w-8">
                                <input type="checkbox" class="h-4 w-4 text-blue-600 border-gray-300 rounded focus:ring-blue-500">
                            </div>
                            <div class="flex items-center w-8">
                                <i data-feather="star" class="h-4 w-4 text-gray-400 hover:text-yellow-500"></i>
                            </div>
                            <div class="flex items-center min-w-0 flex-1">
                                <div class="min-w-0 flex-1 flex items-center">
                                    <p class="text-sm font-medium text-gray-900 truncate unread">Sarah Johnson</p>
                                    <span class="ml-2 text-xs text-gray-500 truncate">Meeting tomorrow</span>
                                </div>
                                <div class="ml-4 flex-shrink-0 flex">
                                    <time datetime="2023-05-15" class="text-xs text-gray-500">10:30 AM</time>
                                </div>
                            </div>
                        </div>
                        
                        <!-- More Email Items -->
                        <div class="email-item flex items-center px-4 py-3 bg-white hover:bg-blue-50 cursor-pointer transition duration-150">
                            <div class="flex items-center w-8">
                                <input type="checkbox" class="h-4 w-4 text-blue-600 border-gray-300 rounded focus:ring-blue-500">
                            </div>
                            <div class="flex items-center w-8">
                                <i data-feather="star" class="h-4 w-4 text-yellow-500"></i>
                            </div>
                            <div class="flex items-center min-w-0 flex-1">
                                <div class="min-w-0 flex-1 flex items-center">
                                    <p class="text-sm font-medium text-gray-900 truncate unread">Team Update</p>
                                    <span class="ml-2 text-xs text-gray-500 truncate">Weekly project status report attached</span>
                                </div>
                                <div class="ml-4 flex-shrink-0 flex">
                                    <time datetime="2023-05-14" class="text-xs text-gray-500">Yesterday</time>
                                </div>
                            </div>
                        </div>
                        
                        <div class="email-item flex items-center px-4 py-3 bg-white hover:bg-blue-50 cursor-pointer transition duration-150">
                            <div class="flex items-center w-8">
                                <input type="checkbox" class="h-4 w-4 text-blue-600 border-gray-300 rounded focus:ring-blue-500">
                            </div>
                            <div class="flex items-center w-8">
                                <i data-feather="star" class="h-4 w-4 text-gray-400 hover:text-yellow-500"></i>
                            </div>
                            <div class="flex items-center min-w-0 flex-1">
                                <div class="min-w-0 flex-1 flex items-center">
                                    <p class="text-sm font-medium text-gray-500 truncate">Amazon</p>
                                    <span class="ml-2 text-xs text-gray-500 truncate">Your order has shipped</span>
                                </div>
                                <div class="ml-4 flex-shrink-0 flex">
                                    <time datetime="2023-05-12" class="text-xs text-gray-500">May 12</time>
                                </div>
                            </div>
                        </div>
                        
                        <div class="email-item flex items-center px-4 py-3 bg-white hover:bg-blue-50 cursor-pointer transition duration-150">
                            <div class="flex items-center w-8">
                                <input type="checkbox" class="h-4 w-4 text-blue-600 border-gray-300 rounded focus:ring-blue-500">
                            </div>
                            <div class="flex items-center w-8">
                                <i data-feather="star" class="h-4 w-4 text-gray-400 hover:text-yellow-500"></i>
                            </div>
                            <div class="flex items-center min-w-0 flex-1">
                                <div class="min-w-0 flex-1 flex items-center">
                                    <p class="text-sm font-medium text-gray-900 truncate unread">LinkedIn</p>
                                    <span class="ml-2 text-xs text-gray-500 truncate">You have 3 new connection requests</span>
                                </div>
                                <div class="ml-4 flex-shrink-0 flex">
                                    <time datetime="2023-05-10" class="text-xs text-gray-500">May 10</time>
                                </div>
                            </div>
                        </div>
                        
                        <div class="email-item flex items-center px-4 py-3 bg-white hover:bg-blue-50 cursor-pointer transition duration-150">
                            <div class="flex items-center w-8">
                                <input type="checkbox" class="h-4 w-4 text-blue-600 border-gray-300 rounded focus:ring-blue-500">
                            </div>
                            <div class="flex items-center w-8">
                                <i data-feather="star" class="h-4 w-4 text-gray-400 hover:text-yellow-500"></i>
                            </div>
                            <div class="flex items-center min-w-0 flex-1">
                                <div class="min-w-0 flex-1 flex items-center">
                                    <p class="text-sm font-medium text-gray-500 truncate">Netflix</p>
                                    <span class="ml-2 text-xs text-gray-500 truncate">New shows added to your watchlist</span>
                                </div>
                                <div class="ml-4 flex-shrink-0 flex">
                                    <time datetime="2023-05-08" class="text-xs text-gray-500">May 8</time>
                                </div>
                            </div>
                        </div>
                        
                        <!-- More emails would go here -->
                    </div>
                </div>

                <!-- Email Content - Hidden on mobile until email is selected -->
                <div class="hidden lg:flex lg:w-2/3 xl:w-3/4 bg-white border-l border-gray-200 overflow-y-auto">
                    <div class="w-full">
                        <div class="px-6 py-4 border-b border-gray-200">
                            <div class="flex items-center justify-between">
                                <h2 class="text-xl font-semibold text-gray-900">Meeting tomorrow</h2>
                                <div class="flex space-x-2">
                                    <button class="p-2 rounded-md text-gray-500 hover:text-gray-600 hover:bg-gray-100 focus:outline-none">
                                        <i data-feather="archive" class="h-4 w-4"></i>
                                    </button>
                                    <button class="p-2 rounded-md text-gray-500 hover:text-gray-600 hover:bg-gray-100 focus:outline-none">
                                        <i data-feather="trash-2" class="h-4 w-4"></i>
                                    </button>
                                    <button class="p-2 rounded-md text-gray-500 hover:text-gray-600 hover:bg-gray-100 focus:outline-none">
                                        <i data-feather="mail" class="h-4 w-4"></i>
                                    </button>
                                    <button class="p-2 rounded-md text-gray-500 hover:text-gray-600 hover:bg-gray-100 focus:outline-none">
                                        <i data-feather="more-vertical" class="h-4 w-4"></i>
                                    </button>
                                </div>
                            </div>
                            <div class="mt-4 flex items-start">
                                <img src="http://static.photos/people/200x200/43" alt="Profile" class="h-10 w-10 rounded-full">
                                <div class="ml-3">
                                    <div class="flex items-center">
                                        <p class="text-sm font-medium text-gray-900">Sarah Johnson</p>
                                        <span class="ml-2 text-xs text-gray-500">sarah.johnson@example.com</span>
                                    </div>
                                    <div class="flex items-center mt-1 text-xs text-gray-500">
                                        <span>to me</span>
                                        <time datetime="2023-05-15" class="ml-2">May 15, 2023, 10:30 AM</time>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="px-6 py-4">
                            <div class="prose max-w-none text-gray-700">
                                <p>Hi there,</p>
                                <p>I hope this email finds you well. I wanted to confirm our meeting tomorrow at 11 AM in the main conference room.</p>
                                <p>We'll be discussing the quarterly project updates and the new marketing strategy. Please bring any materials you think would be relevant to the discussion.</p>
                                <p>Also, I've attached the agenda for your reference.</p>
                                <p>Looking forward to our discussion!</p>
                                <p>Best regards,<br>Sarah</p>
                            </div>
                            <div class="mt-6 border-t border-gray-200 pt-4">
                                <h3 class="text-sm font-medium text-gray-900 mb-2">Attachments (1)</h3>
                                <div class="flex items-center p-3 border border-gray-200 rounded-lg w-full max-w-xs">
                                    <div class="flex-shrink-0">
                                        <i data-feather="file-text" class="h-5 w-5 text-gray-400"></i>
                                    </div>
                                    <div class="ml-4">
                                        <p class="text-sm font-medium text-gray-900 truncate">Meeting_Agenda_Q2.pdf</p>
                                        <p class="text-xs text-gray-500">250 KB</p>
                                    </div>
                                    <div class="ml-auto">
                                        <button class="text-blue-500 hover:text-blue-700">
                                            <i data-feather{"ok":false,"message":"terminated"}
</body>
</html>