we still need multi-lingual options, so put it back
Browse files- index.html +35 -15
index.html
CHANGED
|
@@ -56,10 +56,22 @@
|
|
| 56 |
<span class="ml-2 font-semibold text-gray-800 dark:text-white">AuthPortal Pro</span>
|
| 57 |
</div>
|
| 58 |
</div>
|
| 59 |
-
|
| 60 |
<div class="flex items-center space-x-4">
|
| 61 |
-
<!--
|
| 62 |
-
<
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 63 |
<i id="theme-icon" data-feather="moon" class="w-5 h-5"></i>
|
| 64 |
</button>
|
| 65 |
</div>
|
|
@@ -74,8 +86,9 @@
|
|
| 74 |
<div class="mx-auto flex items-center justify-center h-32 w-32 rounded-full bg-primary-100 dark:bg-primary-900/30 p-4">
|
| 75 |
<i data-feather="shield" class="h-20 w-20 text-primary-500 dark:text-primary-400"></i>
|
| 76 |
</div>
|
| 77 |
-
<h2 class="mt-6 text-center text-3xl font-extrabold text-gray-900 dark:text-white">
|
| 78 |
-
|
|
|
|
| 79 |
</h2>
|
| 80 |
</div>
|
| 81 |
|
|
@@ -83,8 +96,8 @@
|
|
| 83 |
<input type="hidden" name="remember" value="true">
|
| 84 |
<div class="rounded-md shadow-sm space-y-4">
|
| 85 |
<div>
|
| 86 |
-
<label for="username" class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">Username or Email</label>
|
| 87 |
-
|
| 88 |
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 89 |
<i data-feather="user" class="h-5 w-5 text-gray-400 dark:text-gray-500"></i>
|
| 90 |
</div>
|
|
@@ -92,8 +105,8 @@
|
|
| 92 |
</div>
|
| 93 |
</div>
|
| 94 |
<div>
|
| 95 |
-
<label for="password" class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1">Password</label>
|
| 96 |
-
|
| 97 |
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 98 |
<i data-feather="lock" class="h-5 w-5 text-gray-400 dark:text-gray-500"></i>
|
| 99 |
</div>
|
|
@@ -108,15 +121,15 @@
|
|
| 108 |
<div class="flex items-center justify-between">
|
| 109 |
<div class="flex items-center">
|
| 110 |
<input id="remember-me" name="remember-me" type="checkbox" class="h-4 w-4 text-primary-500 focus:ring-primary-400 border-gray-300 dark:border-gray-600 rounded dark:bg-gray-700">
|
| 111 |
-
<label for="remember-me" class="ml-2 block text-sm text-gray-700 dark:text-gray-300">
|
| 112 |
Remember me
|
| 113 |
</label>
|
| 114 |
-
|
| 115 |
|
| 116 |
<div class="text-sm">
|
| 117 |
<a href="#" class="font-medium text-primary-500 dark:text-primary-400 hover:text-primary-600 dark:hover:text-primary-300">
|
| 118 |
-
Forgot your password
|
| 119 |
-
|
| 120 |
</div>
|
| 121 |
</div>
|
| 122 |
|
|
@@ -172,9 +185,16 @@
|
|
| 172 |
}
|
| 173 |
feather.replace();
|
| 174 |
}
|
| 175 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 176 |
// Initialize feather icons
|
| 177 |
feather.replace();
|
| 178 |
-
|
| 179 |
</body>
|
| 180 |
</html>
|
|
|
|
| 56 |
<span class="ml-2 font-semibold text-gray-800 dark:text-white">AuthPortal Pro</span>
|
| 57 |
</div>
|
| 58 |
</div>
|
|
|
|
| 59 |
<div class="flex items-center space-x-4">
|
| 60 |
+
<!-- Language Selector -->
|
| 61 |
+
<div class="relative">
|
| 62 |
+
<select class="appearance-none bg-transparent border border-gray-300 dark:border-gray-600 rounded px-3 py-1 pr-8 text-sm text-gray-700 dark:text-gray-300 focus:outline-none focus:ring-1 focus:ring-primary-500">
|
| 63 |
+
<option value="en">English</option>
|
| 64 |
+
<option value="es">Español</option>
|
| 65 |
+
<option value="fr">Français</option>
|
| 66 |
+
<option value="de">Deutsch</option>
|
| 67 |
+
<option value="ja">日本語</option>
|
| 68 |
+
</select>
|
| 69 |
+
<div class="absolute inset-y-0 right-0 flex items-center pr-2 pointer-events-none">
|
| 70 |
+
<i data-feather="globe" class="h-4 w-4 text-gray-400 dark:text-gray-500"></i>
|
| 71 |
+
</div>
|
| 72 |
+
</div>
|
| 73 |
+
<!-- Dark Mode Toggle -->
|
| 74 |
+
<button id="theme-toggle" class="text-gray-500 dark:text-gray-400 hover:bg-gray-100 dark:hover:bg-gray-700 focus:outline-none rounded-lg text-sm p-2">
|
| 75 |
<i id="theme-icon" data-feather="moon" class="w-5 h-5"></i>
|
| 76 |
</button>
|
| 77 |
</div>
|
|
|
|
| 86 |
<div class="mx-auto flex items-center justify-center h-32 w-32 rounded-full bg-primary-100 dark:bg-primary-900/30 p-4">
|
| 87 |
<i data-feather="shield" class="h-20 w-20 text-primary-500 dark:text-primary-400"></i>
|
| 88 |
</div>
|
| 89 |
+
<h2 class="mt-6 text-center text-3xl font-extrabold text-gray-900 dark:text-white" data-i18n="sign_in_title">
|
| 90 |
+
<span data-i18n="sign_in_button">Sign in</span>
|
| 91 |
+
to your account
|
| 92 |
</h2>
|
| 93 |
</div>
|
| 94 |
|
|
|
|
| 96 |
<input type="hidden" name="remember" value="true">
|
| 97 |
<div class="rounded-md shadow-sm space-y-4">
|
| 98 |
<div>
|
| 99 |
+
<label for="username" class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1" data-i18n="username_label">Username or Email</label>
|
| 100 |
+
<div class="relative">
|
| 101 |
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 102 |
<i data-feather="user" class="h-5 w-5 text-gray-400 dark:text-gray-500"></i>
|
| 103 |
</div>
|
|
|
|
| 105 |
</div>
|
| 106 |
</div>
|
| 107 |
<div>
|
| 108 |
+
<label for="password" class="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-1" data-i18n="password_label">Password</label>
|
| 109 |
+
<div class="relative">
|
| 110 |
<div class="absolute inset-y-0 left-0 pl-3 flex items-center pointer-events-none">
|
| 111 |
<i data-feather="lock" class="h-5 w-5 text-gray-400 dark:text-gray-500"></i>
|
| 112 |
</div>
|
|
|
|
| 121 |
<div class="flex items-center justify-between">
|
| 122 |
<div class="flex items-center">
|
| 123 |
<input id="remember-me" name="remember-me" type="checkbox" class="h-4 w-4 text-primary-500 focus:ring-primary-400 border-gray-300 dark:border-gray-600 rounded dark:bg-gray-700">
|
| 124 |
+
<label for="remember-me" class="ml-2 block text-sm text-gray-700 dark:text-gray-300" data-i18n="remember_me">
|
| 125 |
Remember me
|
| 126 |
</label>
|
| 127 |
+
</div>
|
| 128 |
|
| 129 |
<div class="text-sm">
|
| 130 |
<a href="#" class="font-medium text-primary-500 dark:text-primary-400 hover:text-primary-600 dark:hover:text-primary-300">
|
| 131 |
+
<span data-i18n="forgot_password">Forgot your password?</span>
|
| 132 |
+
</a>
|
| 133 |
</div>
|
| 134 |
</div>
|
| 135 |
|
|
|
|
| 185 |
}
|
| 186 |
feather.replace();
|
| 187 |
}
|
| 188 |
+
// Language change handler
|
| 189 |
+
document.querySelector('select').addEventListener('change', function() {
|
| 190 |
+
const lang = this.value;
|
| 191 |
+
// In a real app, you would load translations here
|
| 192 |
+
// For demo purposes, we'll just show the selected language
|
| 193 |
+
console.log('Language changed to:', lang);
|
| 194 |
+
});
|
| 195 |
+
|
| 196 |
// Initialize feather icons
|
| 197 |
feather.replace();
|
| 198 |
+
</script>
|
| 199 |
</body>
|
| 200 |
</html>
|