File tree Expand file tree Collapse file tree 4 files changed +123
-13
lines changed
Expand file tree Collapse file tree 4 files changed +123
-13
lines changed Original file line number Diff line number Diff line change @@ -37,8 +37,12 @@ import { ServiceCard } from "../components/service-card";
3737import { Button } from "@/components/ui/button" ;
3838import Link from "next/link" ;
3939import Image from "next/image" ;
40+ import { sendGAEvent } from "@next/third-parties/google" ;
41+ import data from "@/data.json" ;
4042
4143export default function Home ( { lang } : { lang : SupportedLanguage } ) {
44+ const { gaEventName, link } = data . cta ;
45+
4246 return (
4347 < main className = "xxl:max-w-7xl mx-auto flex w-full max-w-6xl flex-wrap items-center justify-center px-4 py-12 text-center md:px-20 xl:px-0" >
4448 < h3 className = "mb-14 text-[34px] font-medium text-hyperjump-black md:text-[40px]" >
@@ -155,7 +159,17 @@ export default function Home({ lang }: { lang: SupportedLanguage }) {
155159 asChild
156160 size = "lg"
157161 className = "bg-hyperjump-blue text-base font-semibold text-white hover:bg-hyperjump-blue/90" >
158- < Link href = "#" target = "_blank" rel = "noreferrer noopener" >
162+ < Link
163+ onClick = { ( ) => {
164+ sendGAEvent ( {
165+ event : gaEventName ,
166+ category : "engagement" ,
167+ label : "Services CTA"
168+ } ) ;
169+ } }
170+ href = { link }
171+ target = "_blank"
172+ rel = "noreferrer noopener" >
159173 { servicesCtaLabel ( lang ) }
160174 </ Link >
161175 </ Button >
Original file line number Diff line number Diff line change @@ -33,7 +33,7 @@ export function ServiceCard(
3333 return (
3434 < div
3535 className = { `mb-14 flex flex-col gap-6 ${
36- withBorder ? "border-b border-gray-200 pb-14" : ""
36+ withBorder ? "border-b border-gray-200 pb-7 md:pb- 14" : ""
3737 } md:flex-row ${ reverse ? "md:flex-row-reverse" : "" } items-center`} >
3838 < div className = "relative w-full md:w-1/2" >
3939 < Image
@@ -43,7 +43,7 @@ export function ServiceCard(
4343 width = { 660 }
4444 height = { 400 }
4545 />
46- < div className = "absolute -bottom-3 left-1 rounded-md" >
46+ < div className = "absolute -bottom-1 left-1 rounded-md" >
4747 < Image src = { icon } alt = { `${ title } icon` } width = { 80 } height = { 80 } />
4848 </ div >
4949 </ div >
@@ -59,7 +59,7 @@ export function ServiceCard(
5959 </ p >
6060 </ div >
6161
62- < ul className = "mb-8 list-none text-base text-gray-700 md:text-lg" >
62+ < ul className = "list-none text-base text-gray-700 md:text-lg" >
6363 { items . map ( ( point , i ) => (
6464 < li key = { i } className = "mb-4 flex items-start gap-2" >
6565 < Image
@@ -72,14 +72,6 @@ export function ServiceCard(
7272 </ li >
7373 ) ) }
7474 </ ul >
75- < div className = "md:text-left" >
76- < Button
77- asChild
78- size = "lg"
79- className = "w-full bg-hyperjump-blue text-base font-semibold text-white hover:bg-hyperjump-blue/90 md:w-44" >
80- < Link href = { url } > { servicesSeeMore ( lang ) } </ Link >
81- </ Button >
82- </ div >
8375 </ div >
8476 </ div >
8577 ) ;
Original file line number Diff line number Diff line change @@ -104,7 +104,6 @@ export default function Nav({
104104
105105 < Button
106106 asChild
107- variant = "outline"
108107 className = { cn (
109108 isWhite
110109 ? "bg-hyperjump-blue text-white hover:bg-hyperjump-blue/90"
You can’t perform that action at this time.
0 commit comments