Skip to content

Commit

Permalink
click the card boom
Browse files Browse the repository at this point in the history
  • Loading branch information
Shadow4324 committed Sep 16, 2024
1 parent 72cb79d commit 6cc76c7
Showing 1 changed file with 30 additions and 33 deletions.
63 changes: 30 additions & 33 deletions src/components/user/resources/Hackpack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,42 +11,39 @@ type props = {

const Hackpack = ({ text, techs, link, description }: props) => {
return (
<Link
data-cy="hackpack-link"
className="rounded-x1 block w-full bg-white p-3 opacity-100 hover:opacity-70"
href={link}
target="_black"
>
<div className="flex h-full flex-col justify-between">
<div className="flex items-center justify-between">
<div className="rounded-xl bg-white p-3">
<p className="text-lg font-semibold" data-cy="hackpack-text">
{text}
</p>
<div className="rounded-xl bg-white p-3">
<Link
data-cy="hackpack-link"
className="items-center justify-between opacity-100 hover:opacity-70"
href={link}
target="_black"
>
<div
className="flex items-center justify-between text-lg font-semibold"
data-cy="hackpack-text"
>
{text}
<div>
<Github size={20} />

<div className="my-2 flex flex-wrap gap-2" data-cy="hackpack-techs">
{techs.map((tech, index) => (
<div
key={index}
className="flex items-center gap-2 text-gray-400"
data-cy="hackpack-tech"
>
<div
className="text-hackathon-blue-100"
data-cy="hackpack-icon"
>
{TECHSTACKS[tech]}
</div>
{tech}
</div>
))}
</div>
<p className="mt-2">{description}</p>
</div>
</div>
</div>
</Link>
<div className="my-2 flex flex-wrap gap-2" data-cy="hackpack-techs">
{techs.map((tech, index) => (
<div
key={index}
className="flex items-center gap-2 text-gray-400"
data-cy="hackpack-tech"
>
<div className="text-hackathon-blue-100" data-cy="hackpack-icon">
{TECHSTACKS[tech]}
</div>
{tech}
</div>
))}
</div>
</Link>
<p className="mt-2">{description}</p>
</div>
);
};

Expand Down

0 comments on commit 6cc76c7

Please sign in to comment.