Files
Portfolio/templates/login.html
2026-04-23 01:29:11 +00:00

126 lines
3.2 KiB
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<link rel="icon" href="{{ url_for('static', filename='BM.png') }}">
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link href="https://stackpath.bootstrapcdn.com/bootstrap/4.5.2/css/bootstrap.min.css" rel="stylesheet">
<title>Login</title>
<style>
body {
background: linear-gradient(to right, #667eea, #764ba2);
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
margin: 0;
font-family: Arial, sans-serif;
}
.login-container {
background: white;
padding: 2rem;
border-radius: 10px;
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
text-align: center;
max-width: 400px;
width: 100%;
}
h2 {
margin-bottom: 1rem;
color: #333;
}
.logo-placeholder {
width: 80px;
height: 80px;
background: #ddd;
border-radius: 50%;
display: flex;
justify-content: center;
align-items: center;
margin: 0 auto 1rem;
font-weight: bold;
color: #666;
}
.logo {
width: 100px;
height: auto;
display: block;
margin: 0 auto 1rem;
}
label {
display: block;
text-align: left;
font-weight: bold;
margin-bottom: 0.5rem;
color: #555;
}
input[type="username"],
input[type="password"] {
width: 100%;
padding: 0.75rem;
margin-bottom: 1rem;
border-radius: 5px;
border: 1px solid #ccc;
font-size: 1rem;
}
input[type="email"]:focus,
input[type="password"]:focus {
outline: none;
border-color: #667eea;
}
button {
width: 100%;
padding: 0.75rem;
background-color: #667eea;
color: white;
border: none;
border-radius: 5px;
font-size: 1rem;
cursor: pointer;
transition: background-color 0.3s;
}
button:hover {
background-color: #4c60c4;
}
p {
margin-top: 1rem;
color: #555;
}
a {
color: #667eea;
text-decoration: none;
}
a:hover {
text-decoration: underline;
}
</style>
</head>
<body>
<div class="login-container">
<div class="logo-placeholder">
<img src="{{ url_for('static', filename='BM.png') }}" alt="Logo" class="logo">
</div>
<h2>Login</h2>
<form method="POST" action="{{ url_for('login') }}">
<label for="username">Username:</label>
<input type="username" id="username" name="username" required>
<label for="password">Password:</label>
<input type="password" id="password" name="password" required>
<button type="submit">Login</button>
</form>
</div>
</body>
</html>