Skip to content

Commit

Permalink
add site icon
Browse files Browse the repository at this point in the history
  • Loading branch information
enchant97 committed Dec 5, 2021
1 parent 92f2e3a commit d6ff4fe
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 3 deletions.
Binary file added git_web/static/favicon.ico
Binary file not shown.
Binary file added git_web/static/icon-256.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions git_web/static/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,19 @@ table.tree-objects {
background-color: #005e94;
}

#login-form {
margin: auto;
display: flex;
gap: 10px;
flex-direction: column;
width: 50%;
}

#login-form img {
margin: auto;
max-width: 200px;
}

@media(min-width:800px) {
.repo .aside {
max-width: 35%;
Expand Down
7 changes: 4 additions & 3 deletions git_web/templates/auth/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,10 @@
{% block title %}Login{% endblock %}
{% block title2 %}Login is required for this service{% endblock %}
{% block main %}
<form action="{{ url_for('auth.post_login') }}" method="post">
<label for="password">Password</label>
<input type="password" name="password" id="password" placeholder="password..." required>
<form id="login-form" action="{{ url_for('auth.post_login') }}" method="post">
<img src="{{ url_for('static', filename='icon-256.png') }}" alt="app icon">
<label for="password">Password:</label>
<input type="password" name="password" id="password" placeholder="password..." required autofocus>
<button type="submit">Login</button>
</form>
{% endblock %}
1 change: 1 addition & 0 deletions git_web/templates/shared/base.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="{{ url_for('static', filename='favicon.ico') }}" type="image/x-icon">
<title>{% block title2 %}{% endblock %} {% block title %}{% endblock %} | Basic Git Web Server</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
Expand Down

0 comments on commit d6ff4fe

Please sign in to comment.