Added text and icons to statscards

This commit is contained in:
2021-08-16 16:09:51 +02:00
parent 895b6045f7
commit 1c43011842
2 changed files with 34 additions and 34 deletions

View File

@@ -1,10 +1,39 @@
<script>
import Sidebar from '$lib/Sidebar.svelte';
import Statscard from '$lib/Statscard.svelte';
</script>
<h2 class="text-3xl font-bold text-gray-800 dark:text-gray-100 pb-6">Home</h2>
<div class="grid gap-6 mb-8 md:grid-cols-2 xl:grid-cols-4">
<Statscard title="Links created" />
<Statscard title="Visits" />
</div>
<Statscard title="Links created">
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M13.828 10.172a4 4 0 00-5.656 0l-4 4a4 4 0 105.656 5.656l1.102-1.101m-.758-4.899a4 4 0 005.656 0l4-4a4 4 0 00-5.656-5.656l-1.1 1.1"
/>
</svg>
</Statscard>
<Statscard title="Visits">
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-6 w-6"
fill="none"
viewBox="0 0 24 24"
stroke="currentColor"
>
<path
stroke-linecap="round"
stroke-linejoin="round"
stroke-width="2"
d="M15 15l-2 5L9 9l11 4-5 2zm0 0l5 5M7.188 2.239l.777 2.897M5.136 7.965l-2.898-.777M13.95 4.05l-2.122 2.122m-5.657 5.656l-2.12 2.122"
/>
</svg>
</Statscard>
</div>