fix: html refactor

This commit is contained in:
2026-03-19 17:33:24 +01:00
parent 71b02610d1
commit ea6bf9026b
11 changed files with 97 additions and 99 deletions
+3 -8
View File
@@ -1,24 +1,19 @@
{% load i18n %}
{% load static %}
<nav class="navbar bg-base-100 shadow-sm">
<div class="flex-1">
<nav class="flex justify-between navbar bg-base-300 shadow-md px-4 fixed top-0 z-10 left-0 w-full">
<div class="text-base-content">
<a href="{% url 'web:index' %}" class="flex text-xl">
<img class="mr-4" src="{{ logo }}" alt="{{ web_title }} logo">
{{ web_title }}
</a>
</div>
<div class="flex gap-2">
<input type="text" placeholder="{% trans 'Buscar...' %}" class="input input-bordered w-24 md:w-auto"/>
{% include 'components/generic/theme-switch.html' %}
{% if user.is_authenticated %}
{% include 'components/generic/user_dropdown.html' %}
{% else %}
<a href="{% url 'users:login' %}"
class="link-button flex items-center">
<a href="{% url 'users:login' %}" class="link-button flex items-center">
{% translate 'Inicia sesión' %}
</a>
{% endif %}