"Refactor templating templates for better"

This commit is contained in:
2025-05-02 19:41:56 +02:00
parent 78e37fa717
commit e2c8cfaacf
4 changed files with 50 additions and 4 deletions

View File

@@ -459,7 +459,17 @@
{% if current_user.avatar %}
<img src="{{ current_user.avatar }}" alt="{{ current_user.username }}" class="w-full h-full object-cover">
{% else %}
<img src="{{ url_for('static', filename='img/default-avatar.svg') }}" alt="{{ current_user.username }}" class="w-full h-full object-cover">
<svg width="100%" height="100%" viewBox="0 0 200 200" fill="none" xmlns="http://www.w3.org/2000/svg">
<circle cx="100" cy="100" r="98" fill="url(#user-gradient)" stroke="#7C3AED" stroke-width="4"/>
<circle cx="100" cy="80" r="36" fill="white"/>
<path d="M100 140C77.9086 140 60 157.909 60 180H140C140 157.909 122.091 140 100 140Z" fill="white"/>
<defs>
<linearGradient id="user-gradient" x1="0" y1="0" x2="200" y2="200" gradientUnits="userSpaceOnUse">
<stop offset="0" stop-color="#8B5CF6"/>
<stop offset="1" stop-color="#3B82F6"/>
</linearGradient>
</defs>
</svg>
{% endif %}
</div>
<span class="hidden md:block">{{ current_user.username }}</span>