File size: 12,607 Bytes
90850fe
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>USPS Quick Access</title>
    <script src="https://cdn.tailwindcss.com"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        @keyframes slideUp {
            from { transform: translateY(20px); opacity: 0; }
            to { transform: translateY(0); opacity: 1; }
        }
        .animate-slide-up {
            animation: slideUp 0.3s ease-out forwards;
        }
        .ios-shadow {
            box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }
        .message-bubble {
            position: relative;
            border-radius: 18px;
        }
        .message-bubble:before {
            content: "";
            position: absolute;
            bottom: 0;
            left: -7px;
            width: 20px;
            height: 20px;
            background: inherit;
            border-bottom-right-radius: 15px;
        }
        .message-bubble:after {
            content: "";
            position: absolute;
            bottom: 0;
            left: -10px;
            width: 10px;
            height: 20px;
            background: #f3f4f6;
            border-bottom-right-radius: 10px;
        }
    </style>
</head>
<body class="bg-gray-100 min-h-screen flex items-center justify-center p-4">
    <div class="w-full max-w-md">
        <!-- iPhone-like container -->
        <div class="bg-gray-900 rounded-3xl overflow-hidden ios-shadow">
            <!-- Status bar -->
            <div class="bg-gray-900 p-2 flex justify-between items-center text-white text-xs px-4">
                <span>9:41</span>
                <div class="flex space-x-2">
                    <i class="fas fa-signal"></i>
                    <i class="fas fa-wifi"></i>
                    <i class="fas fa-battery-three-quarters"></i>
                </div>
            </div>
            
            <!-- App content -->
            <div class="bg-gray-100 h-[600px] overflow-y-auto p-4">
                <!-- App header -->
                <div class="flex items-center justify-between mb-6">
                    <h1 class="text-xl font-bold text-gray-800">USPS Quick Access</h1>
                    <button class="text-blue-500 font-medium">Edit</button>
                </div>
                
                <!-- Main button -->
                <div id="mainButton" class="mb-8 animate-slide-up" style="animation-delay: 0.1s;">
                    <button onclick="startLoginProcess()" class="w-full bg-gradient-to-r from-blue-500 to-blue-600 text-white py-4 rounded-xl flex items-center justify-center space-x-3 ios-shadow active:scale-95 transition-transform">
                        <i class="fas fa-envelope-open-text text-xl"></i>
                        <span class="text-lg font-semibold">Open Informed Delivery</span>
                    </button>
                </div>
                
                <!-- Login simulator -->
                <div id="loginSimulator" class="hidden bg-white rounded-xl p-4 mb-4 ios-shadow">
                    <div class="flex items-center space-x-3 mb-4">
                        <div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center text-blue-600">
                            <i class="fas fa-truck-fast"></i>
                        </div>
                        <div>
                            <h3 class="font-semibold">USPS Informed Delivery</h3>
                            <p class="text-xs text-gray-500">Logging in...</p>
                        </div>
                    </div>
                    
                    <div class="h-2 bg-gray-200 rounded-full overflow-hidden mb-4">
                        <div id="progressBar" class="h-full bg-blue-500 rounded-full w-0"></div>
                    </div>
                    
                    <div id="smsStep" class="hidden">
                        <div class="text-center mb-4">
                            <div class="w-14 h-14 bg-blue-100 rounded-full flex items-center justify-center text-blue-600 mx-auto mb-2">
                                <i class="fas fa-mobile-screen text-2xl"></i>
                            </div>
                            <h4 class="font-medium">Enter SMS Verification Code</h4>
                            <p class="text-sm text-gray-500">Sent to *******1234</p>
                        </div>
                        
                        <!-- SMS simulator -->
                        <div class="bg-gray-100 rounded-2xl p-3 mb-3">
                            <div class="text-xs text-gray-500 mb-1">Messages (1)</div>
                            <div class="flex">
                                <div class="message-bubble bg-blue-100 text-blue-900 px-4 py-3 max-w-xs">
                                    <div class="text-xs font-medium mb-1">USPS Alert</div>
                                    <p>Your verification code is: <span id="smsCode" class="font-bold">123456</span></p>
                                </div>
                            </div>
                        </div>
                        
                        <div class="flex space-x-2">
                            <input type="text" id="codeInput" maxlength="6" class="flex-1 border border-gray-300 rounded-lg px-4 py-3 text-center font-medium tracking-wider" placeholder="Enter code">
                            <button onclick="submitCode()" class="bg-blue-500 text-white px-4 py-3 rounded-lg font-medium">Submit</button>
                        </div>
                    </div>
                </div>
                
                <!-- Success screen -->
                <div id="successScreen" class="hidden bg-white rounded-xl p-6 text-center ios-shadow">
                    <div class="w-16 h-16 bg-green-100 rounded-full flex items-center justify-center text-green-600 mx-auto mb-4">
                        <i class="fas fa-check text-2xl"></i>
                    </div>
                    <h3 class="text-xl font-bold mb-2">Login Successful!</h3>
                    <p class="text-gray-600 mb-6">Opening USPS Informed Delivery...</p>
                    <button onclick="resetFlow()" class="text-blue-500 font-medium">Return to Home</button>
                </div>
                
                <!-- Recent activity -->
                <div class="mt-8">
                    <h3 class="font-medium text-gray-500 mb-3">Recent Activity</h3>
                    <div class="bg-white rounded-xl overflow-hidden ios-shadow">
                        <div class="p-4 border-b border-gray-200 flex items-center justify-between">
                            <div class="flex items-center space-x-3">
                                <div class="w-10 h-10 rounded-full bg-blue-100 flex items-center justify-center text-blue-600">
                                    <i class="fas fa-envelope"></i>
                                </div>
                                <div>
                                    <h4 class="font-medium">Today's Mail</h4>
                                    <p class="text-xs text-gray-500">2 new items</p>
                                </div>
                            </div>
                            <span class="text-xs text-gray-500">10:45 AM</span>
                        </div>
                        <div class="p-4 flex items-center justify-between">
                            <div class="flex items-center space-x-3">
                                <div class="w-10 h-10 rounded-full bg-green-100 flex items-center justify-center text-green-600">
                                    <i class="fas fa-box"></i>
                                </div>
                                <div>
                                    <h4 class="font-medium">Package Delivery</h4>
                                    <p class="text-xs text-gray-500">Out for delivery</p>
                                </div>
                            </div>
                            <span class="text-xs text-gray-500">Yesterday</span>
                        </div>
                    </div>
                </div>
            </div>
            
            <!-- Bottom tab bar -->
            <div class="bg-gray-100 border-t border-gray-200 flex justify-around py-3">
                <button class="text-gray-500 p-2 rounded-full">
                    <i class="fas fa-home text-xl"></i>
                </button>
                <button class="text-gray-500 p-2 rounded-full">
                    <i class="fas fa-search text-xl"></i>
                </button>
                <button class="text-blue-500 p-2 rounded-full bg-blue-100">
                    <i class="fas fa-envelope text-xl"></i>
                </button>
                <button class="text-gray-500 p-2 rounded-full">
                    <i class="fas fa-cog text-xl"></i>
                </button>
            </div>
        </div>
        
        <div class="mt-6 text-center text-sm text-gray-500">
            <p>Simulates 1-click access to USPS Informed Delivery with automated SMS-based MFA handling.</p>
        </div>
    </div>

    <script>
        function startLoginProcess() {
            document.getElementById('mainButton').classList.add('hidden');
            document.getElementById('loginSimulator').classList.remove('hidden');
            
            // Animate progress bar
            let progress = 0;
            const progressBar = document.getElementById('progressBar');
            const interval = setInterval(() => {
                progress += 5;
                progressBar.style.width = `${progress}%`;
                
                if (progress >= 100) {
                    clearInterval(interval);
                    // Show SMS step after progress completes
                    setTimeout(() => {
                        document.getElementById('smsStep').classList.remove('hidden');
                        // Auto-fill the code input with the SMS code (simulating clipboard read)
                        document.getElementById('codeInput').value = document.getElementById('smsCode').textContent;
                    }, 300);
                }
            }, 50);
        }
        
        function submitCode() {
            const inputCode = document.getElementById('codeInput').value.trim();
            const smsCode = document.getElementById('smsCode').textContent;
            
            if (inputCode === smsCode) {
                document.getElementById('loginSimulator').classList.add('hidden');
                document.getElementById('successScreen').classList.remove('hidden');
                
                // After a delay, simulate opening USPS site (in a real app this would redirect)
                setTimeout(() => {
                    alert("In a real implementation, this would open USPS Informed Delivery in a new tab or within an embedded browser.");
                }, 2000);
            } else {
                alert("Invalid code. Please try again.");
            }
        }
        
        function resetFlow() {
            document.getElementById('successScreen').classList.add('hidden');
            document.getElementById('loginSimulator').classList.add('hidden');
            document.getElementById('smsStep').classList.add('hidden');
            document.getElementById('mainButton').classList.remove('hidden');
            document.getElementById('progressBar').style.width = '0';
            document.getElementById('codeInput').value = '';
        }
        
        // Generate a random 6-digit code on page load
        document.getElementById('smsCode').textContent = Math.floor(100000 + Math.random() * 900000);
    </script>
<p style="border-radius: 8px; text-align: center; font-size: 12px; color: #fff; margin-top: 16px;position: fixed; left: 8px; bottom: 8px; z-index: 10; background: rgba(0, 0, 0, 0.8); padding: 4px 8px;">Made with <img src="https://enzostvs-deepsite.hf.space/logo.svg" alt="DeepSite Logo" style="width: 16px; height: 16px; vertical-align: middle;display:inline-block;margin-right:3px;filter:brightness(0) invert(1);"><a href="https://enzostvs-deepsite.hf.space" style="color: #fff;text-decoration: underline;" target="_blank" >DeepSite</a> - 🧬 <a href="https://enzostvs-deepsite.hf.space?remix=jaik1211/quick-package-access" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html>