1
- import { CheckCircle , CircleMinus , CircleX } from "lucide-react" ;
2
- import { trackEvent } from "../../../lib/trackEvent" ;
3
- import Link from "next/link" ;
4
- import Image from "next/image" ;
5
- import { cn } from "../../../lib/utils" ;
1
+ import { CheckCircle , CircleMinus } from "lucide-react" ;
6
2
import { Tilt_Warp } from "next/font/google" ;
3
+ import Image from "next/image" ;
4
+ import Link from "next/link" ;
7
5
import React from "react" ;
6
+ import { trackAdEvent } from "../../../lib/trackAdEvent" ;
7
+ import { cn } from "../../../lib/utils" ;
8
8
9
9
const tilt_wrap = Tilt_Warp ( {
10
10
subsets : [ "latin" ] ,
@@ -24,19 +24,11 @@ export interface ComparisonSection {
24
24
25
25
export interface ComparisonPageProps {
26
26
competitorName : string ;
27
- competitorLogo ?: React . ReactNode ;
28
27
sections : ComparisonSection [ ] ;
29
- demoUrl ?: string ;
30
28
comparisonContent ?: React . ReactNode ;
31
29
}
32
30
33
- export function ComparisonPage ( {
34
- competitorName,
35
- competitorLogo,
36
- sections,
37
- demoUrl = "https://demo.rybbit.io/21" ,
38
- comparisonContent,
39
- } : ComparisonPageProps ) {
31
+ export function ComparisonPage ( { competitorName, sections, comparisonContent } : ComparisonPageProps ) {
40
32
const renderFeatureValue = ( value : string | boolean ) => {
41
33
if ( typeof value === "boolean" ) {
42
34
return value ? (
@@ -83,15 +75,15 @@ export function ComparisonPage({
83
75
data-rybbit-prop-location = "hero"
84
76
>
85
77
< button
86
- onClick = { ( ) => trackEvent ( "signup" , { location : "hero" , button_text : "Track your site" } ) }
78
+ onClick = { ( ) => trackAdEvent ( "signup" , { location : "hero" , button_text : "Track your site" } ) }
87
79
className = "w-full sm:w-auto bg-emerald-600 hover:bg-emerald-500 text-white font-medium px-5 py-3 rounded-lg shadow-lg shadow-emerald-900/20 transform hover:-translate-y-0.5 transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-emerald-500 focus:ring-opacity-50 cursor-pointer"
88
80
>
89
81
Track your site
90
82
</ button >
91
83
</ Link >
92
84
< Link href = "https://demo.rybbit.io/21" className = "w-full sm:w-auto" data-rybbit-event = "demo" >
93
85
< button
94
- onClick = { ( ) => trackEvent ( "demo" , { location : "hero" , button_text : "See live demo" } ) }
86
+ onClick = { ( ) => trackAdEvent ( "demo" , { location : "hero" , button_text : "See live demo" } ) }
95
87
className = "w-full sm:w-auto bg-neutral-800 hover:bg-neutral-700 text-white font-medium px-5 py-3 rounded-lg border border-neutral-600 transform hover:-translate-y-0.5 transition-all duration-200 hover:border-neutral-400 focus:outline-none focus:ring-2 focus:ring-neutral-400 focus:ring-opacity-50 cursor-pointer"
96
88
>
97
89
See live demo
@@ -212,7 +204,9 @@ export function ComparisonPage({
212
204
< div className = "flex flex-col sm:flex-row items-center justify-center gap-4 md:gap-6 mb-6 md:mb-8 w-full sm:w-auto" >
213
205
< Link href = "https://app.rybbit.io/signup" className = "w-full sm:w-auto" >
214
206
< button
215
- onClick = { ( ) => trackEvent ( "signup" , { location : "bottom_cta" , button_text : "Track your site for free" } ) }
207
+ onClick = { ( ) =>
208
+ trackAdEvent ( "signup" , { location : "bottom_cta" , button_text : "Track your site for free" } )
209
+ }
216
210
className = "w-full sm:w-auto bg-emerald-600 hover:bg-emerald-500 text-white text-lg font-medium px-6 md:px-8 py-3 md:py-4 rounded-lg shadow-lg shadow-emerald-900/20 transform hover:-translate-y-0.5 transition-all duration-200 focus:outline-none focus:ring-2 focus:ring-emerald-500 focus:ring-opacity-50 cursor-pointer"
217
211
>
218
212
Track your site for free
0 commit comments