Since this log in is only for family IoT use. Other login methods are not nesscery. And we don't even need to have Sign up link.
Browse files- README.md +9 -5
- index.html +179 -18
README.md
CHANGED
|
@@ -1,10 +1,14 @@
|
|
| 1 |
---
|
| 2 |
-
title:
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
|
|
|
|
|
|
| 8 |
---
|
| 9 |
|
| 10 |
-
|
|
|
|
|
|
|
|
|
| 1 |
---
|
| 2 |
+
title: undefined
|
| 3 |
+
colorFrom: gray
|
| 4 |
+
colorTo: red
|
| 5 |
+
emoji: 🐳
|
| 6 |
sdk: static
|
| 7 |
pinned: false
|
| 8 |
+
tags:
|
| 9 |
+
- deepsite-v3
|
| 10 |
---
|
| 11 |
|
| 12 |
+
# Welcome to your new DeepSite project!
|
| 13 |
+
This project was created with [DeepSite](https://deepsite.hf.co).
|
| 14 |
+
|
index.html
CHANGED
|
@@ -1,19 +1,180 @@
|
|
| 1 |
-
<!
|
| 2 |
-
<html>
|
| 3 |
-
|
| 4 |
-
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
-
|
| 16 |
-
|
| 17 |
-
|
| 18 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 19 |
</html>
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en" class="light">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Login | AuthPortal Pro</title>
|
| 7 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 8 |
+
<script src="https://cdn.jsdelivr.net/npm/feather-icons/dist/feather.min.js"></script>
|
| 9 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
+
<script>
|
| 11 |
+
tailwind.config = {
|
| 12 |
+
darkMode: 'class',
|
| 13 |
+
theme: {
|
| 14 |
+
extend: {
|
| 15 |
+
colors: {
|
| 16 |
+
primary: {
|
| 17 |
+
500: '#3B82F6',
|
| 18 |
+
600: '#2563EB',
|
| 19 |
+
},
|
| 20 |
+
secondary: {
|
| 21 |
+
500: '#6366F1',
|
| 22 |
+
600: '#4F46E5',
|
| 23 |
+
}
|
| 24 |
+
}
|
| 25 |
+
}
|
| 26 |
+
}
|
| 27 |
+
}
|
| 28 |
+
</script>
|
| 29 |
+
<style>
|
| 30 |
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
| 31 |
+
html {
|
| 32 |
+
font-family: 'Inter', sans-serif;
|
| 33 |
+
}
|
| 34 |
+
.login-container {
|
| 35 |
+
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
|
| 36 |
+
}
|
| 37 |
+
.dark .login-container {
|
| 38 |
+
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
|
| 39 |
+
}
|
| 40 |
+
.input-field:focus {
|
| 41 |
+
border-color: #3B82F6;
|
| 42 |
+
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.2);
|
| 43 |
+
}
|
| 44 |
+
.dark .input-field:focus {
|
| 45 |
+
box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
|
| 46 |
+
}
|
| 47 |
+
</style>
|
| 48 |
+
</head>
|
| 49 |
+
<body class="bg-gray-50 dark:bg-gray-900 transition-colors duration-200 min-h-screen flex flex-col">
|
| 50 |
+
<!-- Navigation Bar -->
|
| 51 |
+
<nav class="bg-white dark:bg-gray-800 shadow-sm py-4 px-6">
|
| 52 |
+
<div class="max-w-6xl mx-auto flex justify-between items-center">
|
| 53 |
+
<div class="flex items-center space-x-4">
|
| 54 |
+
<div class="flex items-center">
|
| 55 |
+
<i data-feather="lock" class="text-primary-500 dark:text-primary-400 w-6 h-6"></i>
|
| 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 |
+
<!-- Dark Mode Toggle -->
|
| 62 |
+
<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">
|
| 63 |
+
<i id="theme-icon" data-feather="moon" class="w-5 h-5"></i>
|
| 64 |
+
</button>
|
| 65 |
+
</div>
|
| 66 |
+
</div>
|
| 67 |
+
</nav>
|
| 68 |
+
|
| 69 |
+
<!-- Main Content -->
|
| 70 |
+
<main class="flex-grow flex items-center justify-center px-4 py-12 sm:px-6 lg:px-8">
|
| 71 |
+
<div class="max-w-md w-full space-y-8">
|
| 72 |
+
<div class="text-center">
|
| 73 |
+
<!-- Logo Placeholder -->
|
| 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 |
+
Sign in to your account
|
| 79 |
+
</h2>
|
| 80 |
+
</div>
|
| 81 |
+
|
| 82 |
+
<form class="mt-8 space-y-6 login-container bg-white dark:bg-gray-800 p-8 rounded-lg" action="#" method="POST">
|
| 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 |
+
<div class="relative">
|
| 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>
|
| 91 |
+
<input id="username" name="username" type="text" required class="input-field pl-10 block w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none focus:ring-primary-500 focus:border-primary-500 dark:bg-gray-700 dark:text-white" placeholder="username@example.com">
|
| 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 |
+
<div class="relative">
|
| 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>
|
| 100 |
+
<input id="password" name="password" type="password" autocomplete="current-password" required class="input-field pl-10 block w-full px-3 py-2 border border-gray-300 dark:border-gray-600 rounded-md shadow-sm placeholder-gray-400 dark:placeholder-gray-500 focus:outline-none focus:ring-primary-500 focus:border-primary-500 dark:bg-gray-700 dark:text-white" placeholder="••••••••">
|
| 101 |
+
<div class="absolute inset-y-0 right-0 pr-3 flex items-center cursor-pointer" onclick="togglePasswordVisibility()">
|
| 102 |
+
<i id="eye-icon" data-feather="eye" class="h-5 w-5 text-gray-400 dark:text-gray-500 hover:text-gray-500 dark:hover:text-gray-400"></i>
|
| 103 |
+
</div>
|
| 104 |
+
</div>
|
| 105 |
+
</div>
|
| 106 |
+
</div>
|
| 107 |
+
|
| 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 |
+
</div>
|
| 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 |
+
</a>
|
| 120 |
+
</div>
|
| 121 |
+
</div>
|
| 122 |
+
|
| 123 |
+
<div>
|
| 124 |
+
<button type="submit" class="group relative w-full flex justify-center py-2 px-4 border border-transparent text-sm font-medium rounded-md text-white bg-primary-500 hover:bg-primary-600 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-primary-500 dark:focus:ring-offset-gray-800">
|
| 125 |
+
<span class="absolute left-0 inset-y-0 flex items-center pl-3">
|
| 126 |
+
<i data-feather="log-in" class="h-5 w-5 text-primary-100 group-hover:text-primary-200"></i>
|
| 127 |
+
</span>
|
| 128 |
+
Sign in
|
| 129 |
+
</button>
|
| 130 |
+
</div>
|
| 131 |
+
</form>
|
| 132 |
+
</div>
|
| 133 |
+
</main>
|
| 134 |
+
|
| 135 |
+
<script>
|
| 136 |
+
// Theme toggle functionality
|
| 137 |
+
const themeToggle = document.getElementById('theme-toggle');
|
| 138 |
+
const themeIcon = document.getElementById('theme-icon');
|
| 139 |
+
const html = document.documentElement;
|
| 140 |
+
|
| 141 |
+
// Check for saved theme preference or use preferred OS theme
|
| 142 |
+
if (localStorage.getItem('theme') === 'dark' || (!localStorage.getItem('theme') && window.matchMedia('(prefers-color-scheme: dark)').matches)) {
|
| 143 |
+
html.classList.add('dark');
|
| 144 |
+
themeIcon.setAttribute('data-feather', 'sun');
|
| 145 |
+
} else {
|
| 146 |
+
html.classList.remove('dark');
|
| 147 |
+
themeIcon.setAttribute('data-feather', 'moon');
|
| 148 |
+
}
|
| 149 |
+
|
| 150 |
+
themeToggle.addEventListener('click', () => {
|
| 151 |
+
html.classList.toggle('dark');
|
| 152 |
+
localStorage.setItem('theme', html.classList.contains('dark') ? 'dark' : 'light');
|
| 153 |
+
|
| 154 |
+
if (html.classList.contains('dark')) {
|
| 155 |
+
themeIcon.setAttribute('data-feather', 'sun');
|
| 156 |
+
} else {
|
| 157 |
+
themeIcon.setAttribute('data-feather', 'moon');
|
| 158 |
+
}
|
| 159 |
+
feather.replace();
|
| 160 |
+
});
|
| 161 |
+
// Password visibility toggle
|
| 162 |
+
function togglePasswordVisibility() {
|
| 163 |
+
const passwordInput = document.getElementById('password');
|
| 164 |
+
const eyeIcon = document.getElementById('eye-icon');
|
| 165 |
+
|
| 166 |
+
if (passwordInput.type === 'password') {
|
| 167 |
+
passwordInput.type = 'text';
|
| 168 |
+
eyeIcon.setAttribute('data-feather', 'eye-off');
|
| 169 |
+
} else {
|
| 170 |
+
passwordInput.type = 'password';
|
| 171 |
+
eyeIcon.setAttribute('data-feather', 'eye');
|
| 172 |
+
}
|
| 173 |
+
feather.replace();
|
| 174 |
+
}
|
| 175 |
+
|
| 176 |
+
// Initialize feather icons
|
| 177 |
+
feather.replace();
|
| 178 |
+
</script>
|
| 179 |
+
</body>
|
| 180 |
</html>
|