File tree 2 files changed +20
-7
lines changed
2 files changed +20
-7
lines changed Original file line number Diff line number Diff line change 1
1
import Socials from "@/components/Socials" ;
2
- import { Button } from "@/components/ui/button " ;
3
- import { ArrowRightIcon , ArrowUpRight , FileDown } from "lucide-react" ;
2
+ import ResumeButton from "@/components/ResumeButton " ;
3
+ import { ArrowRightIcon , ArrowUpRight } from "lucide-react" ;
4
4
// import VaibhavImage from "@/../public/Vaibhav.jpg";
5
5
// import Image from "next/image";
6
6
import Link from "next/link" ;
@@ -46,10 +46,7 @@ export default function Home() {
46
46
</ div >
47
47
< section className = "mt-8 flex items-center gap-8" >
48
48
< Link href = "/resume.pdf" target = "_blank" >
49
- < Button variant = "outline" >
50
- < span className = "font-semibold" > Resume</ span >
51
- < FileDown className = "ml-2 size-5" />
52
- </ Button >
49
+ < ResumeButton />
53
50
</ Link >
54
51
< Socials />
55
52
</ section >
@@ -70,7 +67,7 @@ export default function Home() {
70
67
</ div >
71
68
< SectionCards type = "projects" limit = { LIMIT } />
72
69
</ section >
73
-
70
+
74
71
< SkillsSection />
75
72
76
73
< section className = "flex flex-col gap-8" >
Original file line number Diff line number Diff line change
1
+ 'use client'
2
+
3
+ import { Button } from './ui/button'
4
+ import { FileDown } from 'lucide-react'
5
+ import { sendGAEvent } from '@next/third-parties/google'
6
+
7
+ const ResumeButton = ( ) => {
8
+ return (
9
+ < Button onClick = { ( ) => sendGAEvent ( { event : "resumeButton" , value : "resumeButtonClicked" } ) } variant = "outline" >
10
+ < span className = "font-semibold" > Resume</ span >
11
+ < FileDown className = "ml-2 size-5" />
12
+ </ Button >
13
+ )
14
+ }
15
+
16
+ export default ResumeButton
You can’t perform that action at this time.
0 commit comments