File tree Expand file tree Collapse file tree 2 files changed +35
-1
lines changed
app/[lang]/(hyperjump)/case-studies/[slug] Expand file tree Collapse file tree 2 files changed +35
-1
lines changed Original file line number Diff line number Diff line change @@ -57,18 +57,51 @@ export async function generateStaticParams(): Promise<Params[]> {
5757
5858export default async function CaseStudy ( { params } : CaseStudyProps ) {
5959 const { lang, slug } = await params ;
60+ const { email } = data ;
6061 const caseStudy = caseStudyBy ( slug , lang ) ;
6162 if ( ! caseStudy ) {
6263 notFound ( ) ;
6364 }
6465
66+ const isMedia = slug === "erp-fisheries" ;
67+
68+ const cta = isMedia
69+ ? {
70+ heading :
71+ "Ready to build your future? Let's discuss your transformation" ,
72+ href : `mailto:${ email } ?subject=Media Transformation` ,
73+ label : "Get In Touch"
74+ }
75+ : {
76+ heading :
77+ "Ready to transform your tech team? Let's talk about CTO-as-a-Service" ,
78+ href : `mailto:${ email } ?subject=CTO as a Service` ,
79+ label : "Get In Touch"
80+ } ;
81+
6582 return (
6683 < main className = "bg-white" >
6784 < Hero heading = { caseStudy . title } />
6885 < section className = "mx-auto max-w-3xl px-4 md:px-20" >
6986 < article className = "prose prose-headings:mt-8 prose-headings:font-semibold prose-headings:text-black prose-h1:text-4xl prose-h2:text-3xl prose-h3:text-2xl prose-h4:text-xl prose-h5:text-lg prose-h6:text-md dark:prose-headings:text-white text-left" >
7087 < Content slug = { slug } lang = { lang } />
7188 </ article >
89+
90+ < div className = "mt-12 flex flex-col items-center gap-4 text-center" >
91+ < h3 className = "text-hyperjump-black max-w-xl text-xl font-semibold md:text-2xl" >
92+ { cta . heading }
93+ </ h3 >
94+
95+ < Button
96+ variant = "default"
97+ size = "lg"
98+ className = "bg-hyperjump-blue hover:bg-hyperjump-blue/90 w-3/4 md:w-auto"
99+ asChild >
100+ < a href = { cta . href } target = "_blank" rel = "noopener noreferrer" >
101+ { cta . label }
102+ </ a >
103+ </ Button >
104+ </ div >
72105 </ section >
73106
74107 < section className = "mt-5 px-4 md:px-20" >
Original file line number Diff line number Diff line change 5151 }
5252 ],
5353 "title" : " Hyperjump Technology" ,
54- "url" : " https://hyperjump.tech"
54+ "url" : " https://hyperjump.tech" ,
55+ 5556}
You can’t perform that action at this time.
0 commit comments