made the cards on right redirect to the correct page and the bagde and the card saying more tools down, scrool automaticly to those tools!

This commit is contained in:
RezHackXYZ 2025-05-29 17:16:39 +05:30
parent f7841ab9b5
commit 8584aa665a
No known key found for this signature in database
3 changed files with 37 additions and 19 deletions

View file

@ -2,7 +2,7 @@
import tools from "./tools.json"
</script>
<div class="flex items-center justify-center p-3">
<div id="galarry" class="flex items-center justify-center p-3">
<div
class="flex flex-wrap justify-center gap-5"
>

View file

@ -43,9 +43,17 @@
</div>
<RightCards />
</div>
<div class="m-3 w-fit rounded-full bg-gray-900 px-3 py-1 text-xl text-gray-500">
<i class="nf-fa-angles_down nf"></i>
Scroll to see more tools!
<i class="nf-fa-angles_down nf"></i>
</div>
<a
href="#galarry"
on:click|preventDefault={() => {
const el = document.getElementById("galarry");
if (el) el.scrollIntoView({ behavior: "smooth" });
}}
>
<div class="m-3 w-fit rounded-full bg-gray-900 px-3 py-1 text-xl text-gray-500">
<i class="nf-fa-angles_down nf"></i>
Scroll to see more tools!
<i class="nf-fa-angles_down nf"></i>
</div></a
>
</div>

View file

@ -5,20 +5,30 @@
<div class="hidden flex-col gap-3 lg:flex">
{#each tools as tool, i}
{#if i < 3}
<div class="card max-w-[320px]">
<div class="flex gap-2 text-4xl">
<i class="nf {tool.icon}"></i>
<h1>{tool.name}</h1>
</div>
<a href={tool.link}>
<div class="card max-w-[320px]">
<div class="flex gap-2 text-4xl">
<i class="nf {tool.icon}"></i>
<h1>{tool.name}</h1>
</div>
<p>{@html tool.description}</p>
</div>
<p>{@html tool.description}</p>
</div>
</a>
{/if}
{/each}
<div class="card max-w-[320px]">
<div class="flex gap-2 text-4xl">
<i class="nf nf-fa-angles_down"></i>
<h1>and more!</h1>
</div>
</div>
<a
href="#galarry"
on:click|preventDefault={() => {
const el = document.getElementById("galarry");
if (el) el.scrollIntoView({ behavior: "smooth" });
}}
>
<div class="card max-w-[320px]">
<div class="flex gap-2 text-4xl">
<i class="nf nf-fa-angles_down"></i>
<h1>and more!</h1>
</div>
</div></a
>
</div>