Skip to content

Commit 1197c84

Browse files
make these items clickable in the homepage
1 parent e5f5ec0 commit 1197c84

File tree

1 file changed

+15
-6
lines changed

1 file changed

+15
-6
lines changed

src/routes/+page.svelte

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -123,21 +123,30 @@
123123
</section>
124124

125125
<div class="mx-auto mt-16 grid max-w-7xl grid-cols-1 gap-6 px-4 md:grid-cols-3">
126-
<div class="border-secondary flex flex-col items-center rounded-lg border p-6 text-center">
126+
<a
127+
href="/explore"
128+
class="border-secondary hover:bg-base-200 focus:bg-base-200 focus:ring-primary flex flex-col items-center rounded-lg border p-6 text-center transition outline-none focus:ring-2"
129+
>
127130
<span class="icon-[mdi--database] text-primary mb-4 h-12 w-12"></span>
128131
<h2 class="text-xl font-bold">{Intl.NumberFormat().format(data.productCount)}</h2>
129132
<p class="text-base-content/70">{$_('landing.products_count')}</p>
130-
</div>
131-
<div class="border-secondary flex flex-col items-center rounded-lg border p-6 text-center">
133+
</a>
134+
<a
135+
href="/facets/editors"
136+
class="border-secondary hover:bg-base-200 focus:bg-base-200 focus:ring-primary flex flex-col items-center rounded-lg border p-6 text-center transition outline-none focus:ring-2"
137+
>
132138
<span class="icon-[mdi--account-group] text-primary mb-4 h-12 w-12"></span>
133139
<h2 class="text-xl font-bold">{Intl.NumberFormat().format(data.editorCount)}</h2>
134140
<p class="text-base-content/70">{$_('landing.editors_count')}</p>
135-
</div>
136-
<div class="border-secondary flex flex-col items-center rounded-lg border p-6 text-center">
141+
</a>
142+
<a
143+
href="/facets/data-sources"
144+
class="border-secondary hover:bg-base-200 focus:bg-base-200 focus:ring-primary flex flex-col items-center rounded-lg border p-6 text-center transition outline-none focus:ring-2"
145+
>
137146
<span class="icon-[mdi--license] text-primary mb-4 h-12 w-12"></span>
138147
<h2 class="text-xl font-bold">100%</h2>
139148
<p class="text-base-content/70">{$_('landing.open_data')}</p>
140-
</div>
149+
</a>
141150
</div>
142151

143152
<div class="xl:max-w-8xl container mx-auto mt-16 px-4">

0 commit comments

Comments
 (0)