File tree Expand file tree Collapse file tree 1 file changed +30
-2
lines changed
Expand file tree Collapse file tree 1 file changed +30
-2
lines changed Original file line number Diff line number Diff line change @@ -146,12 +146,40 @@ def login():
146146 # If it's a GET request, display the login form
147147 return render_template_string (
148148 """
149+ <head>
150+ <meta name="viewport" content="width=device-width, initial-scale=1">
151+
152+ <style>
153+ button {
154+ margin-top: 0.5em;
155+ padding: 0.6em 1.2em;
156+ border-radius: 4px;
157+ border: none;
158+ background-color: #007bff;
159+ color: white;
160+ cursor: pointer;
161+ }
162+ button:hover {
163+ background-color: #0056b3;
164+ }
165+ @media (min-width: 600px) {
166+ .entry {
167+ flex-direction: row;
168+ align-items: center;
169+ }
170+
171+ .entry input[type="text"] {
172+ width: 300px;
173+ margin-left: 10px;
174+ }
175+ </style>
149176 <form method="post">
150177 Username: <input name="username" required><br>
151178 Password: <input name="password" type="password" required><br>
152- <input type="submit" value=" Login" >
179+ <button type="submit"> Login</button >
153180 </form>
154- """
181+ </head>
182+ """
155183 )
156184
157185
You can’t perform that action at this time.
0 commit comments