Make logo clickable, add Font-Awesome for cog on header, add better default profile picture

This commit is contained in:
Xevion
2022-03-27 06:06:53 -05:00
parent 23ff69aba3
commit 5802320855
6 changed files with 11 additions and 3 deletions

View File

@@ -5,6 +5,9 @@
<title>Runnerspace</title>
<link rel="stylesheet" href="{{ url_for('static', filename='styles.css') }}">
<link rel="stylesheet" href="https://necolas.github.io/normalize.css/8.0.1/normalize.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.5.0/js/all.min.js"
integrity="sha512-YUwFoN1yaVzHxZ1cLsNYJzVt1opqtVLKgBQ+wDj+JyfvOkH66ck1fleCm8eyJG9O1HpKIf86HrgTXkWDyHy9HA=="
crossorigin="anonymous" referrerpolicy="no-referrer"></script>
</head>
<body>
<div class="content-outer">

View File

@@ -1,9 +1,12 @@
<div class="header">
<div class="header-primary">
<span id="logo">runnerspace</span>
<a id="logo" href="{{ url_for('main.index') }}">runnerspace</a>
<div class="header-login">
{% if current_user.is_authenticated %}
Logged in as <a href="{{ url_for('main.user', username=current_user.username) }}" class="username">{{ current_user.username }}</a> | <a href="{{ url_for('main.logout') }}">Logout</a>
Logged in as
<a href="{{ url_for('main.user', username=current_user.username) }}" class="username">{{ current_user.username }}</a>
<a href="{{ url_for('main.edit_user', username=current_user.username) }}"><i class="fas fa-cog fa-1x"></i></a>
| <a href="{{ url_for('auth.logout') }}">Logout</a>
{% else %}
<a href="{{ url_for('main.login') }}">Login</a> or <a href="{{ url_for('main.signup') }}">Sign-up</a>!
{% endif %}