Skip to content

Commit

Permalink
this
Browse files Browse the repository at this point in the history
  • Loading branch information
doffn authored Jan 21, 2025
1 parent c94038a commit de2cb39
Showing 1 changed file with 12 additions and 9 deletions.
21 changes: 12 additions & 9 deletions api/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,20 +212,23 @@ def ui():
<!-- Social Links -->
<div class="flex gap-3">
{' '.join([f'''
<a href="{social.get('url', '#')}"
target="_blank"
class="bg-gray-700 hover:bg-gray-600 p-2 rounded-lg transition-colors">
{% for social in info.get('socials', []) %}
<a href="{{ social.get('url', '#') }}"
target="_blank"
class="bg-gray-700 hover:bg-gray-600 p-2 rounded-lg transition-colors">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="{
'M23 3a10.9 10.9 0 01-3.14 1.53 4.48 4.48 0 00-7.86 3v1A10.66 10.66 0 013 4s-4 9 5 13a11.64 11.64 0 01-7 2c9 5 20 0 20-11.5a4.5 4.5 0 00-.08-.83A7.72 7.72 0 0023 3z'
if {social.get('type') == 'twitter'}
else 'M21 11.5a8.38 8.38 0 01-.9 3.8 8.5 8.5 0 01-7.6 4.7 8.38 8.38 0 01-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 01-.9-3.8 8.5 8.5 0 014.7-7.6 8.38 8.38 0 013.8-.9h.5a8.48 8.48 0 018 8v.5z'}"/>
d="{% if social.get('type') == 'twitter' %}
M23 3a10.9 10.9 0 01-3.14 1.53 4.48 4.48 0 00-7.86 3v1A10.66 10.66 0 013 4s-4 9 5 13a11.64 11.64 0 01-7 2c9 5 20 0 20-11.5a4.5 4.5 0 00-.08-.83A7.72 7.72 0 0023 3z
{% else %}
M21 11.5a8.38 8.38 0 01-.9 3.8 8.5 8.5 0 01-7.6 4.7 8.38 8.38 0 01-3.8-.9L3 21l1.9-5.7a8.38 8.38 0 01-.9-3.8 8.5 8.5 0 014.7-7.6 8.38 8.38 0 013.8-.9h.5a8.48 8.48 0 018 8v.5z
{% endif %}
"/>
</svg>
</a>
''' for social in {info.get('socials', [])}])}
{% endfor %}
</div>
</div>
</div>
'''
Expand Down

0 comments on commit de2cb39

Please sign in to comment.