Layout update.

This commit is contained in:
retoor 2025-03-17 17:01:01 +01:00
parent 54416ee84f
commit 39fa8fa0cd
3 changed files with 12 additions and 7 deletions
src/snek

View File

@ -39,16 +39,19 @@ main {
header {
background-color: #000000;
padding: 10px 20px;
padding-top: 10px;
padding-left: 20px;
padding-right: 20px;
display: flex;
justify-content: space-between;
align-items: center;
}
header .logo {
color: #fff;
font-size: 1.5em;
color: #fff;
font-weight: bold;
font-size: 1.2em;
color: #fff;
}
header nav a {

View File

@ -21,7 +21,9 @@
</head>
<body>
<header>
<div class="no-select logo">Snek</div>
<div class="no-select logo" style="display:none">Snek</div>
<div class="logo">{% block header_text %}{% endblock %}</div>
<nav class="no-select">
<a class="no-select" href="/web.html">🏠</a>
<a class="no-select" href="/search-user.html">🔍</a>
@ -30,6 +32,7 @@
<a class="no-select" href="#">⚙️</a>
<a class="no-select" href="/logout.html">🔒</a>
</nav>
</header>
<main>
{% block sidebar %}

View File

@ -1,10 +1,9 @@
{% extends "app.html" %}
{% block header_text %}<h2>{{ name }}</h2>{% endblock %}
{% block main %}
<section class="chat-area" id="chat">
<div class="chat-header">
<h2>{{ name }}</h2>
</div>
<div class="chat-messages">
{% for message in messages %}
{% autoescape false %}