feat: dynamic main icon

This commit is contained in:
mohamad
2026-05-25 15:57:24 +03:30
parent 4875d8b6c3
commit f08d0aacc0
38 changed files with 1565 additions and 540 deletions
+27 -28
View File
@@ -3,7 +3,7 @@
<div class="navbar-container">
<a href="{% url 'pages:home' %}" class="navbar-brand" aria-label="Radiuma home">
<img src="{% static 'images/favicon-180.png' %}" alt="" class="brand-icon" width="24" height="24" aria-hidden="true" />
{% include "partials/_brand_icon.html" with placement="navbar" %}
<span class="brand-name">Radiuma</span>
</a>
@@ -32,34 +32,33 @@
</a>
<div class="megamenu" role="menu" aria-labelledby="productsTrigger">
<div class="megamenu-inner">
<div class="megamenu-grid">
{% for product in nav_main_products %}
<div class="megamenu-column">
<a href="{{ product.get_absolute_url }}" class="megamenu-product-title" role="menuitem">
{{ product.name }}
<svg width="14" height="14" viewBox="0 0 14 14" fill="none" aria-hidden="true">
<path d="M3 7H11M11 7L8 4M11 7L8 10" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
</a>
<p class="megamenu-product-desc">{{ product.short_description }}</p>
{% with subs=product.sub_products.all %}
{% if subs %}
<ul class="megamenu-sublist" role="list">
{% for sub in subs %}
{% if sub.is_active %}
<li>
<a href="{{ sub.get_absolute_url }}" class="megamenu-sublink" role="menuitem">
<span class="sublink-dot"></span>
{{ sub.name }}
</a>
</li>
<div class="megamenu-products-scroll" tabindex="0" aria-label="Product list">
<ul class="megamenu-products" role="list">
{% for product in nav_main_products %}
<li class="megamenu-product-item{% if product.sub_products.all %} has-subproducts{% endif %}">
<a href="{{ product.get_absolute_url }}" class="megamenu-product-link" role="menuitem">
<span class="megamenu-product-name">
{{ product.name }}
{% if product.sub_products.all %}
<svg class="megamenu-sub-chevron" width="12" height="12" viewBox="0 0 12 12" fill="none" aria-hidden="true">
<path d="M2 4L6 8L10 4" stroke="currentColor" stroke-width="1.5" stroke-linecap="round" stroke-linejoin="round"/>
</svg>
{% endif %}
</span>
<span class="megamenu-product-desc">{{ product.short_description }}</span>
</a>
{% if product.sub_products.all %}
<ul class="megamenu-sublist" role="list" aria-label="{{ product.name }} modules">
{% for sub in product.sub_products.all %}
<li>
<a href="{{ sub.get_absolute_url }}" class="megamenu-sublink" role="menuitem">{{ sub.name }}</a>
</li>
{% endfor %}
</ul>
{% endif %}
{% endfor %}
</ul>
{% endif %}
{% endwith %}
</div>
{% endfor %}
</li>
{% endfor %}
</ul>
</div>
</div>
</div>