feat(redesign): Download page

This commit is contained in:
darkweak 2023-10-14 00:54:11 +02:00 committed by Francis Lavoie
parent 7294fc7309
commit 982393ff91
No known key found for this signature in database
GPG key ID: C5204D4F28147FC8
4 changed files with 415 additions and 8 deletions

46
new/includes/card.html Normal file
View file

@ -0,0 +1,46 @@
<div class="card shadow">
<div class="card-header flex">
<div class="card-title-name">
<h3>
${item.name}
</h3>
<a href="${item.repo}" target="_blank" rel="noopener noreferer">
${item.path}
</a>
</div>
<div class="card-title-info">
<span>
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-download" width="24"
height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none"
stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M4 17v2a2 2 0 0 0 2 2h12a2 2 0 0 0 2 -2v-2"></path>
<path d="M7 11l5 5l5 -5"></path>
<path d="M12 4l0 12"></path>
</svg>
${item.downloads}
</span>
<span>
<svg xmlns="http://www.w3.org/2000/svg" class="icon icon-tabler icon-tabler-git-commit" width="24"
height="24" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor" fill="none"
stroke-linecap="round" stroke-linejoin="round">
<path stroke="none" d="M0 0h24v24H0z" fill="none"></path>
<path d="M12 12m-3 0a3 3 0 1 0 6 0a3 3 0 1 0 -6 0"></path>
<path d="M12 3l0 6"></path>
<path d="M12 15l0 6"></path>
</svg>
latest
</span>
</div>
</div>
<div class="card-description">
<p>
${item.description}
</p>
<div class="card-actions">
<button type="button" class="button card-button">
Add this module
</button>
</div>
</div>
</div>