Spaces:
Running
Running
criar a tela de login
Browse files- index.html +4 -3
- login.html +184 -0
index.html
CHANGED
|
@@ -68,13 +68,14 @@
|
|
| 68 |
<button class="p-2 rounded-full hover:bg-white hover:bg-opacity-20 transition">
|
| 69 |
<i data-feather="settings" class="text-white"></i>
|
| 70 |
</button>
|
| 71 |
-
|
| 72 |
-
|
| 73 |
<span class="text-white font-medium">U</span>
|
| 74 |
</div>
|
| 75 |
<span class="text-white font-medium">User</span>
|
| 76 |
</div>
|
| 77 |
-
|
|
|
|
| 78 |
</div>
|
| 79 |
</header>
|
| 80 |
|
|
|
|
| 68 |
<button class="p-2 rounded-full hover:bg-white hover:bg-opacity-20 transition">
|
| 69 |
<i data-feather="settings" class="text-white"></i>
|
| 70 |
</button>
|
| 71 |
+
<div class="flex items-center space-x-2">
|
| 72 |
+
<div class="w-8 h-8 rounded-full bg-white bg-opacity-20 flex items-center justify-center">
|
| 73 |
<span class="text-white font-medium">U</span>
|
| 74 |
</div>
|
| 75 |
<span class="text-white font-medium">User</span>
|
| 76 |
</div>
|
| 77 |
+
<a href="login.html" class="text-white text-opacity-80 hover:text-opacity-100 text-sm transition">Logout</a>
|
| 78 |
+
</div>
|
| 79 |
</div>
|
| 80 |
</header>
|
| 81 |
|
login.html
ADDED
|
@@ -0,0 +1,184 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
<!DOCTYPE html>
|
| 2 |
+
<html lang="en">
|
| 3 |
+
<head>
|
| 4 |
+
<meta charset="UTF-8">
|
| 5 |
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
| 6 |
+
<title>Login - Webmail Client</title>
|
| 7 |
+
<link rel="icon" type="image/x-icon" href="/static/favicon.ico">
|
| 8 |
+
<script src="https://cdn.tailwindcss.com"></script>
|
| 9 |
+
<script src="https://unpkg.com/feather-icons"></script>
|
| 10 |
+
<script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.globe.min.js"></script>
|
| 11 |
+
<style>
|
| 12 |
+
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&display=swap');
|
| 13 |
+
body {
|
| 14 |
+
font-family: 'Inter', sans-serif;
|
| 15 |
+
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
|
| 16 |
+
}
|
| 17 |
+
.login-card {
|
| 18 |
+
background: rgba(255, 255, 255, 0.1);
|
| 19 |
+
backdrop-filter: blur(20px);
|
| 20 |
+
border: 1px solid rgba(255, 255, 255, 0.2);
|
| 21 |
+
}
|
| 22 |
+
.input-field {
|
| 23 |
+
background: rgba(255, 255, 255, 0.15);
|
| 24 |
+
border: 1px solid rgba(255, 255, 255, 0.3);
|
| 25 |
+
transition: all 0.3s ease;
|
| 26 |
+
}
|
| 27 |
+
.input-field:focus {
|
| 28 |
+
background: rgba(255, 255, 255, 0.2);
|
| 29 |
+
border-color: rgba(255, 255, 255, 0.5);
|
| 30 |
+
box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.1);
|
| 31 |
+
}
|
| 32 |
+
.login-btn {
|
| 33 |
+
transition: all 0.3s ease;
|
| 34 |
+
}
|
| 35 |
+
.login-btn:hover {
|
| 36 |
+
transform: translateY(-2px);
|
| 37 |
+
box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2);
|
| 38 |
+
}
|
| 39 |
+
</style>
|
| 40 |
+
</head>
|
| 41 |
+
<body class="bg-gradient-to-br from-indigo-500 via-purple-500 to-pink-500 min-h-screen flex items-center justify-center p-4">
|
| 42 |
+
<!-- Background Animation -->
|
| 43 |
+
<div id="vanta-bg" class="absolute inset-0 z-0"></div>
|
| 44 |
+
|
| 45 |
+
<!-- Login Container -->
|
| 46 |
+
<div class="relative z-10 w-full max-w-md">
|
| 47 |
+
<!-- Login Card -->
|
| 48 |
+
<div class="login-card rounded-2xl p-8 shadow-2xl">
|
| 49 |
+
<!-- Logo -->
|
| 50 |
+
<div class="text-center mb-8">
|
| 51 |
+
<div class="flex items-center justify-center space-x-3 mb-4">
|
| 52 |
+
<i data-feather="mail" class="text-white text-2xl"></i>
|
| 53 |
+
<h1 class="text-3xl font-bold text-white">WebMail</h1>
|
| 54 |
+
</div>
|
| 55 |
+
<p class="text-white text-opacity-80">Sign in to your email account</p>
|
| 56 |
+
</div>
|
| 57 |
+
|
| 58 |
+
<!-- Login Form -->
|
| 59 |
+
<form class="space-y-6">
|
| 60 |
+
<!-- Email Field -->
|
| 61 |
+
<div>
|
| 62 |
+
<label class="block text-white text-sm font-medium mb-2">Email Address</label>
|
| 63 |
+
<div class="relative">
|
| 64 |
+
<i data-feather="mail" class="absolute left-3 top-3 text-white text-opacity-70"></i>
|
| 65 |
+
<input
|
| 66 |
+
type="email"
|
| 67 |
+
placeholder="Enter your email"
|
| 68 |
+
class="input-field w-full py-3 px-4 pl-10 rounded-xl text-white placeholder-white placeholder-opacity-70 focus:outline-none"
|
| 69 |
+
required
|
| 70 |
+
>
|
| 71 |
+
</div>
|
| 72 |
+
</div>
|
| 73 |
+
|
| 74 |
+
<!-- Password Field -->
|
| 75 |
+
<div>
|
| 76 |
+
<div class="flex items-center justify-between mb-2">
|
| 77 |
+
<label class="block text-white text-sm font-medium">Password</label>
|
| 78 |
+
<a href="#" class="text-white text-opacity-80 hover:text-opacity-100 text-sm transition">Forgot password?</a>
|
| 79 |
+
</div>
|
| 80 |
+
<div class="relative">
|
| 81 |
+
<i data-feather="lock" class="absolute left-3 top-3 text-white text-opacity-70"></i>
|
| 82 |
+
<input
|
| 83 |
+
type="password"
|
| 84 |
+
placeholder="Enter your password"
|
| 85 |
+
class="input-field w-full py-3 px-4 pl-10 rounded-xl text-white placeholder-white placeholder-opacity-70 focus:outline-none"
|
| 86 |
+
required
|
| 87 |
+
>
|
| 88 |
+
</div>
|
| 89 |
+
</div>
|
| 90 |
+
|
| 91 |
+
<!-- Remember Me -->
|
| 92 |
+
<div class="flex items-center">
|
| 93 |
+
<input
|
| 94 |
+
type="checkbox"
|
| 95 |
+
id="remember"
|
| 96 |
+
class="w-4 h-4 rounded bg-white bg-opacity-20 border-white border-opacity-30 focus:ring-white focus:ring-opacity-50"
|
| 97 |
+
>
|
| 98 |
+
<label for="remember" class="ml-2 text-white text-opacity-80 text-sm">Remember me</label>
|
| 99 |
+
</div>
|
| 100 |
+
|
| 101 |
+
<!-- Login Button -->
|
| 102 |
+
<button
|
| 103 |
+
type="submit"
|
| 104 |
+
class="login-btn w-full bg-gradient-to-r from-blue-500 to-purple-600 text-white py-3 px-4 rounded-xl font-medium hover:from-blue-600 hover:to-purple-700 transition-all duration-300"
|
| 105 |
+
>
|
| 106 |
+
Sign In
|
| 107 |
+
</button>
|
| 108 |
+
</form>
|
| 109 |
+
|
| 110 |
+
<!-- Divider -->
|
| 111 |
+
<div class="flex items-center my-6">
|
| 112 |
+
<div class="flex-1 border-t border-white border-opacity-20"></div>
|
| 113 |
+
<span class="mx-4 text-white text-opacity-60 text-sm">or continue with</button>
|
| 114 |
+
|
| 115 |
+
<!-- Social Login -->
|
| 116 |
+
<div class="flex justify-center space-x-4 mb-6">
|
| 117 |
+
<button class="p-3 rounded-xl bg-white bg-opacity-10 hover:bg-opacity-20 transition">
|
| 118 |
+
<i data-feather="github" class="text-white"></i>
|
| 119 |
+
</button>
|
| 120 |
+
<button class="p-3 rounded-xl bg-white bg-opacity-10 hover:bg-opacity-20 transition">
|
| 121 |
+
<i data-feather="google" class="text-white"></i>
|
| 122 |
+
</button>
|
| 123 |
+
<button class="p-3 rounded-xl bg-white bg-opacity-10 hover:bg-opacity-20 transition">
|
| 124 |
+
<i data-feather="twitter" class="text-white"></i>
|
| 125 |
+
</button>
|
| 126 |
+
</div>
|
| 127 |
+
|
| 128 |
+
<!-- Sign Up Link -->
|
| 129 |
+
<div class="text-center">
|
| 130 |
+
<p class="text-white text-opacity-80">
|
| 131 |
+
Don't have an account?
|
| 132 |
+
<a href="#" class="text-white font-medium hover:underline">Sign up</a>
|
| 133 |
+
</p>
|
| 134 |
+
</div>
|
| 135 |
+
</div>
|
| 136 |
+
|
| 137 |
+
<!-- Footer -->
|
| 138 |
+
<div class="text-center mt-6">
|
| 139 |
+
<p class="text-white text-opacity-60 text-sm">© 2024 WebMail. All rights reserved.</p>
|
| 140 |
+
</div>
|
| 141 |
+
</div>
|
| 142 |
+
|
| 143 |
+
<script>
|
| 144 |
+
// Initialize Feather Icons
|
| 145 |
+
feather.replace();
|
| 146 |
+
|
| 147 |
+
// Initialize Vanta.js Background
|
| 148 |
+
VANTA.GLOBE({
|
| 149 |
+
el: "#vanta-bg",
|
| 150 |
+
mouseControls: true,
|
| 151 |
+
touchControls: true,
|
| 152 |
+
gyroControls: false,
|
| 153 |
+
minHeight: 200.00,
|
| 154 |
+
minWidth: 200.00,
|
| 155 |
+
scale: 1.00,
|
| 156 |
+
scaleMobile: 1.00,
|
| 157 |
+
color: 0x667eea,
|
| 158 |
+
color2: 0x764ba2,
|
| 159 |
+
backgroundColor: 0x0,
|
| 160 |
+
size: 1.00
|
| 161 |
+
});
|
| 162 |
+
|
| 163 |
+
// Form submission handler
|
| 164 |
+
document.querySelector('form').addEventListener('submit', function(e) {
|
| 165 |
+
e.preventDefault();
|
| 166 |
+
// Simulate login process
|
| 167 |
+
const email = this.querySelector('input[type="email"]').value;
|
| 168 |
+
const password = this.querySelector('input[type="password"]').value;
|
| 169 |
+
|
| 170 |
+
// Show loading state
|
| 171 |
+
const submitBtn = this.querySelector('button[type="submit"]');
|
| 172 |
+
const originalText = submitBtn.textContent;
|
| 173 |
+
submitBtn.textContent = 'Signing in...';
|
| 174 |
+
submitBtn.disabled = true;
|
| 175 |
+
|
| 176 |
+
// Simulate API call delay
|
| 177 |
+
setTimeout(() => {
|
| 178 |
+
// Redirect to main page after successful login
|
| 179 |
+
window.location.href = 'index.html';
|
| 180 |
+
}, 1500);
|
| 181 |
+
});
|
| 182 |
+
</script>
|
| 183 |
+
</body>
|
| 184 |
+
</html>
|