File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change 1
1
import Image from 'next/image'
2
2
import Head from 'next/head'
3
+ import { useRouter } from 'next/router'
3
4
4
5
import { Container } from '@/components/Container'
5
6
import { SectionHeading } from '@/components/SectionHeading'
@@ -18,6 +19,9 @@ function LinkIcon(props) {
18
19
}
19
20
20
21
export default function Projects ( ) {
22
+
23
+ const router = useRouter ( )
24
+
21
25
return (
22
26
< >
23
27
< Head >
@@ -54,7 +58,7 @@ export default function Projects() {
54
58
< Card . Link href = { project . link . href } > { project . name } </ Card . Link >
55
59
</ h2 >
56
60
< Card . Description > { project . description } </ Card . Description >
57
- < 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" >
61
+ < 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 ) } >
58
62
< LinkIcon className = "h-6 w-6 flex-none scale-110" />
59
63
< span className = "ml-2" > { project . link . label } </ span >
60
64
</ p >
You can’t perform that action at this time.
0 commit comments