Skip to content

Commit

Permalink
Issue AOSSIE-Org#296 : (Link not clickable)
Browse files Browse the repository at this point in the history
  • Loading branch information
SinghaAnirban005 committed Oct 24, 2024
1 parent d9dd24c commit d163c95
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pages/projects.jsx
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import Image from 'next/image'
import Head from 'next/head'
import { useRouter } from 'next/router'

import { Container } from '@/components/Container'
import { SectionHeading } from '@/components/SectionHeading'
Expand All @@ -18,6 +19,9 @@ function LinkIcon(props) {
}

export default function Projects() {

const router = useRouter()

return (
<>
<Head>
Expand Down Expand Up @@ -54,7 +58,7 @@ export default function Projects() {
<Card.Link href={project.link.href}>{project.name}</Card.Link>
</h2>
<Card.Description>{project.description}</Card.Description>
<p className="relative z-10 mt-6 flex text-md font-semibold font-mono text-zinc-600 transition group-hover:text-[#00843D] dark:group-hover:text-yellow-400 dark:text-zinc-200">
<p className="relative z-10 mt-6 flex text-md font-semibold font-mono text-zinc-600 transition group-hover:text-[#00843D] dark:group-hover:text-yellow-400 dark:text-zinc-200 cursor-pointer" onClick={() => router.push(project.link.href)}>
<LinkIcon className="h-6 w-6 flex-none scale-110" />
<span className="ml-2">{project.link.label}</span>
</p>
Expand Down

0 comments on commit d163c95

Please sign in to comment.