diff options
author | Andrew Godwin | 2022-11-12 23:21:52 -0700 |
---|---|---|
committer | Andrew Godwin | 2022-11-12 23:21:52 -0700 |
commit | 30c208226e8eedeb6879f0b771ae9d5987d06aec (patch) | |
tree | 06e5a1b42c4250563d1784ad202d01b891e1a5d0 /templates/base.html | |
parent | 143a4a6e8c70557710d1b207a176f169d145ed1e (diff) | |
download | takahe-30c208226e8eedeb6879f0b771ae9d5987d06aec.tar.gz takahe-30c208226e8eedeb6879f0b771ae9d5987d06aec.tar.bz2 takahe-30c208226e8eedeb6879f0b771ae9d5987d06aec.zip |
Start having some sort of visual style
Diffstat (limited to 'templates/base.html')
-rw-r--r-- | templates/base.html | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/templates/base.html b/templates/base.html index 2ff0f15..0f9edfb 100644 --- a/templates/base.html +++ b/templates/base.html @@ -12,36 +12,34 @@ </head> <body class="{% block body_class %}{% endblock %}"> - <header> - <h1> - <a href="/"> + <main> + <header> + <a class="logo" href="/"> <img src="{% static "img/icon-128.png" %}" width="32"> {{ config.site_name }} </a> - </h1> - <menu> - <li> - <a href="#"><i class="fa-solid fa-gear"></i></a> - </li> - <li> + <menu> {% if user.is_authenticated %} - <a href="/identity/select/"> + <a href="#"><i class="fa-solid fa-gear"></i> Settings</a> + <div class="gap"></div> + <a href="/identity/select/" class="identity"> {% if not request.identity %} - <img src="{% static "img/unknown-icon-128.png" %}" width="32" title="No identity selected"> + No Identity + <img src="{% static "img/unknown-icon-128.png" %}" title="No identity selected"> {% elif request.identity.icon_uri %} - <img src="{{ request.identity.icon_uri }}" width="32" title="{{ request.identity.handle }}"> + {{ request.identity.username }} <small>@{{ request.identity.domain_id }}</small> + <img src="{{ request.identity.icon_uri }}" title="{{ request.identity.handle }}"> {% else %} - <img src="{% static "img/unknown-icon-128.png" %}" width="32" title="{{ request.identity.handle }}"> + {{ request.identity.username }} <small>@{{ request.identity.domain_id }}</small> + <img src="{% static "img/unknown-icon-128.png" %}" title="{{ request.identity.handle }}"> {% endif %} </a> {% else %} - <a href="/auth/login/">Login</a> + <a href="/auth/login/"><i class="fa-solid fa-right-to-bracket"></i> Login</a> {% endif %} - </li> - </menu> - </header> + </menu> + </header> - <main> {% block content %} {% endblock %} </main> |