Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix missing icons #34

Merged
merged 2 commits into from
Jul 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 0 additions & 7 deletions static/img/logout.svg

This file was deleted.

5 changes: 0 additions & 5 deletions static/img/square-rounded-plus.svg

This file was deleted.

6 changes: 6 additions & 0 deletions templates/common/icons/logout.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" class="icon icon-tabler icons-tabler-outline icon-tabler-logout" fill="none" stroke="var(--stari-color-fill)" stroke-width="2" stroke-linecap="round" id="icon">
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path d="M14 8v-2a2 2 0 0 0 -2 -2h-7a2 2 0 0 0 -2 2v12a2 2 0 0 0 2 2h7a2 2 0 0 0 2 -2v-2" />
<path d="M9 12h12l-3 -3" />
<path d="M18 15l3 -3" />
</svg>
4 changes: 4 additions & 0 deletions templates/common/icons/square-rounded-plus.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" class="icon icon-tabler icons-tabler-filled icon-tabler-square-rounded-plus" fill="var(--stari-color-fill)" id="icon">
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
<path d="M12 2l.324 .001l.318 .004l.616 .017l.299 .013l.579 .034l.553 .046c4.785 .464 6.732 2.411 7.196 7.196l.046 .553l.034 .579c.005 .098 .01 .198 .013 .299l.017 .616l.005 .642l-.005 .642l-.017 .616l-.013 .299l-.034 .579l-.046 .553c-.464 4.785 -2.411 6.732 -7.196 7.196l-.553 .046l-.579 .034c-.098 .005 -.198 .01 -.299 .013l-.616 .017l-.642 .005l-.642 -.005l-.616 -.017l-.299 -.013l-.579 -.034l-.553 -.046c-4.785 -.464 -6.732 -2.411 -7.196 -7.196l-.046 -.553l-.034 -.579a28.058 28.058 0 0 1 -.013 -.299l-.017 -.616c-.003 -.21 -.005 -.424 -.005 -.642l.001 -.324l.004 -.318l.017 -.616l.013 -.299l.034 -.579l.046 -.553c.464 -4.785 2.411 -6.732 7.196 -7.196l.553 -.046l.579 -.034c.098 -.005 .198 -.01 .299 -.013l.616 -.017c.21 -.003 .424 -.005 .642 -.005zm0 6a1 1 0 0 0 -1 1v2h-2l-.117 .007a1 1 0 0 0 .117 1.993h2v2l.007 .117a1 1 0 0 0 1.993 -.117v-2h2l.117 -.007a1 1 0 0 0 -.117 -1.993h-2v-2l-.007 -.117a1 1 0 0 0 -.993 -.883z" stroke-width="0" fill="var(--stari-color-fill)" />
</svg>
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<svg xmlns:xlink="http://www.w3.org/1999/xlink"
<svg
xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24" class="icon icon-tabler icons-tabler-outline icon-tabler-user-square-rounded" fill="none" stroke="var(--stari-color-fill)" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" id="icon" >
<path stroke="none" d="M0 0h24v24H0z" fill="none"/>
<path d="M12 13a3 3 0 1 0 0 -6a3 3 0 0 0 0 6z" />
Expand Down
18 changes: 9 additions & 9 deletions templates/header.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,25 +22,25 @@
<li>
<a class="dropdown-item" href="{% url 'users:profile' request.user.username %}">
<span>Ver perfil</span>
<svg height="24" width="24">
<use class="icon" xlink:href="{% static 'img/user-square-rounded.svg' %}#icon" href="{% static 'img/user-square-rounded.svg' %}#icon" height="24" width="24"></use>
</svg>
<span class="icon">
{% include "common/icons/user-square-rounded.html" %}
</span>
</a>
</li>
<li>
<a class="dropdown-item" href="{% url 'users:logout' %}">
<span>Cerrar sesion</span>
<svg height="24" width="24">
<use class="icon" href="{% static 'img/logout.svg' %}#icon" xlink:href="{% static 'img/logout.svg' %}#icon" height="24" width="24"></use>
</svg>
<span class="icon">
{% include "common/icons/logout.html" %}
</span>
</a>
</li>
</ul>
</div>
<a href="{% url 'posts:create' %}">
<svg height="24" width="24">
<use class="icon" href="{% static 'img/square-rounded-plus.svg' %}#icon" xlink:href="{% static 'img/square-rounded-plus.svg' %}#icon" height="24" width="24"></use>
</svg>
<span class="icon">
{% include "common/icons/square-rounded-plus.html" %}
</span>
</a>
</section>
<div class="brand">
Expand Down
Loading