Added back the css templates and added logout button

This commit is contained in:
2025-11-17 13:03:25 +01:00
parent 883439e66f
commit 5ff361b97c
4 changed files with 90 additions and 0 deletions

View File

@@ -128,4 +128,35 @@ picture {
.login-footer a:hover {
text-decoration: underline;
}
/* Header Styles */
.main-header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 0;
width: 100%;
margin-bottom: 2rem;
}
.header-actions {
display: flex;
align-items: center;
gap: 1rem;
}
.logout-btn {
display: inline-block;
padding: 0.5rem 1rem;
background-color: #7f5af0; /* Same as .btn-primary */
color: #ffffff;
text-decoration: none;
border-radius: 6px;
font-weight: 500;
transition: background-color 0.2s ease;
}
.logout-btn:hover {
background-color: #6a48d7; /* Same as .btn-primary:hover */
}

View File

@@ -0,0 +1,28 @@
body {
background-color: transparent;
color: #f0f0f0;
font-family: 'Inter', sans-serif;
font-size: 16px;
margin: 0;
padding: 10px;
overflow: hidden;
text-shadow: 0 0 5px rgba(57, 255, 20, 0.5);
}
.chat-container {
display: flex;
flex-direction: column;
gap: 8px;
}
.chat-message {
padding: 6px 10px;
background-color: rgba(10, 30, 10, 0.6);
border-radius: 6px;
border-left: 3px solid #39FF14; /* Neon green accent */
}
.username {
font-weight: 800;
color: #39FF14; /* Neon green */
}

View File

@@ -0,0 +1,28 @@
body {
background-color: transparent;
color: #e0e0e0;
font-family: 'Inter', sans-serif;
font-size: 16px;
margin: 0;
padding: 10px;
overflow: hidden;
text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}
.chat-container {
display: flex;
flex-direction: column;
gap: 8px;
}
.chat-message {
padding: 6px 10px;
background-color: rgba(26, 26, 46, 0.7); /* Dark blue/purple transparent background */
border-radius: 6px;
border: 1px solid rgba(127, 90, 240, 0.3);
}
.username {
font-weight: 800;
color: #a970ff; /* Twitch-like purple */
}

View File

@@ -18,6 +18,9 @@
<svg class="sun-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" width="24" height="24"><path d="M12 7c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zM2 13h2c.55 0 1-.45 1-1s-.45-1-1-1H2c-.55 0-1 .45-1 1s.45 1 1 1zm18 0h2c.55 0 1-.45 1-1s-.45-1-1-1h-2c-.55 0-1 .45-1 1s.45 1 1 1zM11 2v2c0 .55.45 1 1 1s1-.45 1-1V2c0-.55-.45-1-1-1s-1 .45-1 1zm0 18v2c0 .55.45 1 1 1s1-.45 1-1v-2c0-.55-.45-1-1-1s-1 .45-1 1zM5.64 5.64c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41l1.06 1.06c.39.39 1.02.39 1.41 0s.39-1.02 0-1.41L5.64 5.64zm12.72 12.72c-.39-.39-1.02-.39-1.41 0-.39.39-.39 1.02 0 1.41l1.06 1.06c.39.39 1.02.39 1.41 0 .39-.39.39-1.02 0-1.41l-1.06-1.06zM5.64 18.36l-1.06-1.06c-.39-.39-.39-1.02 0-1.41s1.02-.39 1.41 0l1.06 1.06c.39.39.39 1.02 0 1.41s-1.02.39-1.41 0zm12.72-12.72l-1.06-1.06c-.39-.39-.39-1.02 0-1.41s1.02-.39 1.41 0l1.06 1.06c.39.39.39 1.02 0 1.41-.39.39-1.02.39-1.41 0z"></path></svg>
<svg class="moon-icon" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" width="24" height="24"><path d="M9.37 5.51A7.35 7.35 0 0 0 9 6c0 4.42 3.58 8 8 8 .36 0 .72-.02 1.08-.06A7.5 7.5 0 0 1 9.37 5.51zM12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10A9.96 9.96 0 0 0 12 2z"></path></svg>
</button>
{% if user %}
<a href="/logout" class="logout-btn">Logout</a>
{% endif %}
</div>
</header>
{% block content %}{% endblock %}