113 lines
2.4 KiB
HTML
113 lines
2.4 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<title>Edit Username</title>
|
|
<style>
|
|
body {
|
|
font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
|
|
background: #f9fafb;
|
|
color: #333;
|
|
display: flex;
|
|
justify-content: center;
|
|
align-items: center;
|
|
height: 100vh;
|
|
margin: 0;
|
|
}
|
|
|
|
.container {
|
|
background: #fff;
|
|
padding: 2.5em 3em;
|
|
border-radius: 12px;
|
|
box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
|
|
max-width: 400px;
|
|
width: 100%;
|
|
text-align: center;
|
|
}
|
|
|
|
h1 {
|
|
margin-bottom: 1em;
|
|
font-weight: 700;
|
|
color: #2c3e50;
|
|
}
|
|
|
|
form p {
|
|
margin: 0.5em 0 0.2em;
|
|
font-weight: 600;
|
|
color: #555;
|
|
text-transform: uppercase;
|
|
font-size: 0.85rem;
|
|
letter-spacing: 1px;
|
|
}
|
|
|
|
h3 {
|
|
margin: 0 0 1.5em;
|
|
font-weight: 600;
|
|
color: #34495e;
|
|
}
|
|
|
|
input[type="text"] {
|
|
width: 50%;
|
|
padding: 0.6em 0.9em;
|
|
border: 2px solid #d1d5db;
|
|
border-radius: 8px;
|
|
font-size: 1rem;
|
|
transition: border-color 0.3s ease;
|
|
outline: none;
|
|
}
|
|
|
|
input[type="text"]:focus {
|
|
border-color: #4287f5;
|
|
box-shadow: 0 0 6px rgba(66, 135, 245, 0.4);
|
|
}
|
|
|
|
button {
|
|
margin-top: 1.5em;
|
|
background-color: #4287f5;
|
|
border: none;
|
|
color: white;
|
|
padding: 0.8em 1.6em;
|
|
font-size: 1rem;
|
|
border-radius: 8px;
|
|
cursor: pointer;
|
|
font-weight: 600;
|
|
transition: background-color 0.3s ease;
|
|
width: 100%;
|
|
}
|
|
|
|
button:hover {
|
|
background-color: #2f62d0;
|
|
}
|
|
|
|
.message {
|
|
margin-top: 1.5em;
|
|
font-weight: 600;
|
|
color: #2ecc71;
|
|
font-size: 1rem;
|
|
}
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<h1>Edit Username</h1>
|
|
<form method="POST">
|
|
<p>From</p>
|
|
<h3>{{ user.username }}</h3>
|
|
<p>To</p>
|
|
<input
|
|
name="username"
|
|
type="text"
|
|
placeholder="Enter new username"
|
|
required
|
|
/>
|
|
<button type="submit">Save New Username</button>
|
|
</form>
|
|
|
|
{% if message %}
|
|
<div class="message">{{ message }}</div>
|
|
{% endif %}
|
|
</div>
|
|
</body>
|
|
</html>
|