"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

@@ -583,7 +583,23 @@
<!-- User Info Section -->
<div class="profile-header">
<div class="avatar-container">
<img src="{{ user.avatar if user.avatar else url_for('static', filename='img/default-avatar.svg') }}" alt="Profilbild" class="avatar">
{% if user.avatar %}
<img src="{{ user.avatar }}" alt="Profilbild" class="avatar">
{% else %}
<div class="avatar default-avatar">
<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(#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="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>
</div>
{% endif %}
<div class="avatar-edit">
<i class="fas fa-camera"></i>
</div>