Spaces:
Running
Running
File size: 18,246 Bytes
83da001 | 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 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Multi-Platform Login System</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>
.gradient-bg {
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}
.card-shadow {
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}
.app-icon {
transition: all 0.3s ease;
}
.app-icon:hover {
transform: translateY(-5px);
}
.social-icon {
transition: all 0.3s ease;
}
.social-icon:hover {
transform: scale(1.1);
}
.fade-in {
animation: fadeIn 0.5s ease-in-out;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
</style>
</head>
<body class="min-h-screen gradient-bg flex items-center justify-center p-4">
<!-- Login Page -->
<div id="login-page" class="w-full max-w-md bg-white rounded-xl p-8 card-shadow fade-in">
<div class="text-center mb-8">
<h1 class="text-3xl font-bold text-gray-800">Welcome Back</h1>
<p class="text-gray-600 mt-2">Enter your secret password to continue</p>
</div>
<div class="space-y-6">
<div>
<label for="password" class="block text-sm font-medium text-gray-700 mb-1">Password</label>
<div class="relative">
<input type="password" id="password" class="w-full px-4 py-3 rounded-lg border border-gray-300 focus:outline-none focus:ring-2 focus:ring-purple-500 focus:border-transparent" placeholder="Enter your password">
<button id="toggle-password" class="absolute right-3 top-3 text-gray-500 hover:text-gray-700">
<i class="far fa-eye"></i>
</button>
</div>
</div>
<button id="login-btn" class="w-full bg-purple-600 hover:bg-purple-700 text-white font-medium py-3 px-4 rounded-lg transition duration-300 flex items-center justify-center">
<span>Login</span>
<i class="fas fa-arrow-right ml-2"></i>
</button>
<div class="text-center text-sm text-gray-500">
<p>Forgot your password? <span class="text-purple-600 cursor-pointer hover:underline">Contact support</span></p>
</div>
</div>
</div>
<!-- Congrat Menu Page -->
<div id="congrat-page" class="hidden w-full max-w-4xl bg-white rounded-xl p-8 card-shadow">
<div class="flex justify-between items-center mb-8">
<h1 class="text-2xl font-bold text-gray-800">Congrat Menu</h1>
<button id="logout-btn" class="text-gray-500 hover:text-gray-700">
<i class="fas fa-sign-out-alt"></i> Logout
</button>
</div>
<div class="grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 gap-6">
<div class="app-icon bg-purple-100 rounded-xl p-6 text-center cursor-pointer hover:bg-purple-200">
<div class="w-16 h-16 bg-purple-500 rounded-full flex items-center justify-center mx-auto mb-3">
<i class="fas fa-calendar text-white text-2xl"></i>
</div>
<h3 class="font-medium text-gray-800">Calendar</h3>
</div>
<div class="app-icon bg-blue-100 rounded-xl p-6 text-center cursor-pointer hover:bg-blue-200">
<div class="w-16 h-16 bg-blue-500 rounded-full flex items-center justify-center mx-auto mb-3">
<i class="fas fa-tasks text-white text-2xl"></i>
</div>
<h3 class="font-medium text-gray-800">Tasks</h3>
</div>
<div class="app-icon bg-green-100 rounded-xl p-6 text-center cursor-pointer hover:bg-green-200">
<div class="w-16 h-16 bg-green-500 rounded-full flex items-center justify-center mx-auto mb-3">
<i class="fas fa-envelope text-white text-2xl"></i>
</div>
<h3 class="font-medium text-gray-800">Mail</h3>
</div>
<div class="app-icon bg-yellow-100 rounded-xl p-6 text-center cursor-pointer hover:bg-yellow-200">
<div class="w-16 h-16 bg-yellow-500 rounded-full flex items-center justify-center mx-auto mb-3">
<i class="fas fa-music text-white text-2xl"></i>
</div>
<h3 class="font-medium text-gray-800">Music</h3>
</div>
<div class="app-icon bg-red-100 rounded-xl p-6 text-center cursor-pointer hover:bg-red-200">
<div class="w-16 h-16 bg-red-500 rounded-full flex items-center justify-center mx-auto mb-3">
<i class="fas fa-camera text-white text-2xl"></i>
</div>
<h3 class="font-medium text-gray-800">Photos</h3>
</div>
<div class="app-icon bg-indigo-100 rounded-xl p-6 text-center cursor-pointer hover:bg-indigo-200">
<div class="w-16 h-16 bg-indigo-500 rounded-full flex items-center justify-center mx-auto mb-3">
<i class="fas fa-map-marker-alt text-white text-2xl"></i>
</div>
<h3 class="font-medium text-gray-800">Maps</h3>
</div>
<div class="app-icon bg-pink-100 rounded-xl p-6 text-center cursor-pointer hover:bg-pink-200">
<div class="w-16 h-16 bg-pink-500 rounded-full flex items-center justify-center mx-auto mb-3">
<i class="fas fa-cloud text-white text-2xl"></i>
</div>
<h3 class="font-medium text-gray-800">Cloud</h3>
</div>
<div class="app-icon bg-teal-100 rounded-xl p-6 text-center cursor-pointer hover:bg-teal-200">
<div class="w-16 h-16 bg-teal-500 rounded-full flex items-center justify-center mx-auto mb-3">
<i class="fas fa-cog text-white text-2xl"></i>
</div>
<h3 class="font-medium text-gray-800">Settings</h3>
</div>
</div>
<div class="mt-8 flex justify-end">
<button class="px-4 py-2 bg-gray-100 rounded-lg text-gray-700 hover:bg-gray-200">
<i class="fas fa-sliders-h mr-2"></i> Customize Layout
</button>
</div>
</div>
<!-- Social Apps Page -->
<div id="social-page" class="hidden w-full max-w-4xl bg-white rounded-xl p-8 card-shadow">
<div class="flex justify-between items-center mb-8">
<div>
<h1 class="text-2xl font-bold text-gray-800">Social Dashboard</h1>
<p id="current-date" class="text-gray-600"></p>
</div>
<button id="logout-btn-2" class="text-gray-500 hover:text-gray-700">
<i class="fas fa-sign-out-alt"></i> Logout
</button>
</div>
<div class="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
<!-- Weather Widget -->
<div class="bg-blue-50 rounded-xl p-6">
<div class="flex justify-between items-center mb-4">
<h3 class="font-medium text-gray-800">Weather</h3>
<i class="fas fa-cloud-sun text-blue-500 text-xl"></i>
</div>
<div class="flex items-center">
<div class="text-5xl font-bold text-gray-800 mr-4">72°</div>
<div>
<p class="text-gray-700">Sunny</p>
<p class="text-sm text-gray-500">New York, NY</p>
</div>
</div>
<div class="grid grid-cols-3 gap-2 mt-4 text-center">
<div class="bg-white p-2 rounded-lg">
<p class="text-xs text-gray-500">Mon</p>
<i class="fas fa-sun text-yellow-400"></i>
<p class="text-sm font-medium">75°</p>
</div>
<div class="bg-white p-2 rounded-lg">
<p class="text-xs text-gray-500">Tue</p>
<i class="fas fa-cloud text-gray-400"></i>
<p class="text-sm font-medium">68°</p>
</div>
<div class="bg-white p-2 rounded-lg">
<p class="text-xs text-gray-500">Wed</p>
<i class="fas fa-cloud-rain text-blue-400"></i>
<p class="text-sm font-medium">62°</p>
</div>
</div>
</div>
<!-- Time Widget -->
<div class="bg-purple-50 rounded-xl p-6">
<div class="flex justify-between items-center mb-4">
<h3 class="font-medium text-gray-800">World Clock</h3>
<i class="fas fa-clock text-purple-500 text-xl"></i>
</div>
<div class="space-y-4">
<div>
<p class="text-sm text-gray-500">Local Time</p>
<p id="current-time" class="text-2xl font-bold text-gray-800"></p>
</div>
<div>
<p class="text-sm text-gray-500">London</p>
<p class="text-xl font-medium text-gray-700">5:42 PM</p>
</div>
<div>
<p class="text-sm text-gray-500">Tokyo</p>
<p class="text-xl font-medium text-gray-700">1:42 AM</p>
</div>
</div>
</div>
<!-- Social Quick Links -->
<div class="bg-pink-50 rounded-xl p-6">
<div class="flex justify-between items-center mb-4">
<h3 class="font-medium text-gray-800">Social Networks</h3>
<i class="fas fa-share-alt text-pink-500 text-xl"></i>
</div>
<div class="grid grid-cols-2 gap-4">
<a href="#" class="social-icon bg-white rounded-lg p-3 text-center">
<i class="fab fa-facebook text-blue-600 text-2xl mb-1"></i>
<p class="text-xs font-medium">Facebook</p>
</a>
<a href="#" class="social-icon bg-white rounded-lg p-3 text-center">
<i class="fab fa-twitter text-blue-400 text-2xl mb-1"></i>
<p class="text-xs font-medium">Twitter</p>
</a>
<a href="#" class="social-icon bg-white rounded-lg p-3 text-center">
<i class="fab fa-instagram text-pink-600 text-2xl mb-1"></i>
<p class="text-xs font-medium">Instagram</p>
</a>
<a href="#" class="social-icon bg-white rounded-lg p-3 text-center">
<i class="fab fa-linkedin text-blue-700 text-2xl mb-1"></i>
<p class="text-xs font-medium">LinkedIn</p>
</a>
</div>
</div>
</div>
<!-- Social Feed -->
<div class="bg-white rounded-xl border border-gray-200 overflow-hidden">
<div class="border-b border-gray-200 p-4 bg-gray-50">
<h3 class="font-medium text-gray-800">Social Feed</h3>
</div>
<div class="p-4">
<div class="flex items-start mb-4">
<img src="https://randomuser.me/api/portraits/women/44.jpg" class="w-10 h-10 rounded-full mr-3">
<div>
<p class="font-medium text-gray-800">Sarah Johnson</p>
<p class="text-sm text-gray-500 mb-2">Just posted a new photo</p>
<div class="bg-gray-100 rounded-lg p-3">
<p class="text-gray-700">Enjoying the beautiful weather today! #sunnyday</p>
<img src="https://source.unsplash.com/random/300x200/?nature" class="w-full h-auto rounded mt-2">
</div>
</div>
</div>
<div class="flex items-start">
<img src="https://randomuser.me/api/portraits/men/32.jpg" class="w-10 h-10 rounded-full mr-3">
<div>
<p class="font-medium text-gray-800">Michael Chen</p>
<p class="text-sm text-gray-500 mb-2">Shared an article</p>
<div class="bg-gray-100 rounded-lg p-3">
<p class="text-gray-700">Check out this interesting read about the future of technology!</p>
<a href="#" class="text-blue-500 text-sm hover:underline">Read more...</a>
</div>
</div>
</div>
</div>
</div>
<div class="mt-6 flex justify-between items-center">
<div class="text-sm text-gray-500">
<span id="last-updated"></span>
</div>
<button class="px-4 py-2 bg-gray-100 rounded-lg text-gray-700 hover:bg-gray-200">
<i class="fas fa-sliders-h mr-2"></i> Customize Dashboard
</button>
</div>
</div>
<script>
// DOM Elements
const loginPage = document.getElementById('login-page');
const congratPage = document.getElementById('congrat-page');
const socialPage = document.getElementById('social-page');
const passwordInput = document.getElementById('password');
const loginBtn = document.getElementById('login-btn');
const togglePasswordBtn = document.getElementById('toggle-password');
const logoutBtn = document.getElementById('logout-btn');
const logoutBtn2 = document.getElementById('logout-btn-2');
const currentDate = document.getElementById('current-date');
const currentTime = document.getElementById('current-time');
const lastUpdated = document.getElementById('last-updated');
// Toggle password visibility
togglePasswordBtn.addEventListener('click', () => {
if (passwordInput.type === 'password') {
passwordInput.type = 'text';
togglePasswordBtn.innerHTML = '<i class="far fa-eye-slash"></i>';
} else {
passwordInput.type = 'password';
togglePasswordBtn.innerHTML = '<i class="far fa-eye"></i>';
}
});
// Login function
loginBtn.addEventListener('click', () => {
const password = passwordInput.value.trim();
if (password === '1444') {
loginPage.classList.add('hidden');
congratPage.classList.remove('hidden');
congratPage.classList.add('fade-in');
} else if (password === '44888') {
loginPage.classList.add('hidden');
socialPage.classList.remove('hidden');
socialPage.classList.add('fade-in');
updateDateTime();
// Update time every second
setInterval(updateDateTime, 1000);
} else {
alert('Incorrect password. Please try again.');
passwordInput.value = '';
passwordInput.focus();
}
});
// Logout function
function logout() {
congratPage.classList.add('hidden');
socialPage.classList.add('hidden');
loginPage.classList.remove('hidden');
loginPage.classList.add('fade-in');
passwordInput.value = '';
passwordInput.focus();
}
logoutBtn.addEventListener('click', logout);
logoutBtn2.addEventListener('click', logout);
// Update date and time
function updateDateTime() {
const now = new Date();
// Format date
const options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };
currentDate.textContent = now.toLocaleDateString('en-US', options);
// Format time
let hours = now.getHours();
const minutes = now.getMinutes().toString().padStart(2, '0');
const ampm = hours >= 12 ? 'PM' : 'AM';
hours = hours % 12;
hours = hours ? hours : 12; // the hour '0' should be '12'
currentTime.textContent = `${hours}:${minutes} ${ampm}`;
// Last updated
const timeString = now.toLocaleTimeString('en-US', { hour: '2-digit', minute: '2-digit' });
lastUpdated.textContent = `Last updated: ${timeString}`;
}
// Allow login on Enter key
passwordInput.addEventListener('keypress', (e) => {
if (e.key === 'Enter') {
loginBtn.click();
}
});
</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=Mackin7/customize-login" style="color: #fff;text-decoration: underline;" target="_blank" >Remix</a></p></body>
</html> |