Skip to content

Commit

Permalink
just removing the callToAction function
Browse files Browse the repository at this point in the history
  • Loading branch information
amankumarrr committed Oct 23, 2024
1 parent a78f5db commit f727723
Showing 1 changed file with 84 additions and 0 deletions.
84 changes: 84 additions & 0 deletions app/consulting/[filename]/consulting.tsx
Original file line number Diff line number Diff line change
@@ -1,10 +1,23 @@
"use client";

import { BookingButton, ClientLogos } from "@/components/blocks";
import { Blocks } from "@/components/blocks-renderer";
import { Booking } from "@/components/blocks/booking";
import { componentRenderer } from "@/components/blocks/mdxComponentRenderer";
import MediaCards from "@/components/consulting/mediaCard/mediaCards";
import { Marketing } from "@/components/marketing/Marketing";
import TechnologyCards from "@/components/technologyCard/technologyCards";
import { TestimonialRow } from "@/components/testimonials/TestimonialRow";
import { Benefits } from "@/components/util/consulting/benefits";
import { Container } from "@/components/util/container";
import { Section } from "@/components/util/section";
import { removeExtension } from "@/services/client/utils.service";
import { Breadcrumbs } from "app/components/breadcrumb";
import { tinaField } from "tinacms/dist/react";
import { TinaMarkdown } from "tinacms/dist/rich-text";

export default function Consulting({ props, tinaProps }) {
const { techCards, marketingData, categories, mediaCardProps } = props;
const { data } = tinaProps;
return (
<>
Expand All @@ -16,6 +29,77 @@ export default function Consulting({ props, tinaProps }) {
seoSchema={data.consulting.seo}
/>
</Section>
<Section className="w-full" color="black">
<Booking {...data.consulting.booking}>
<BookingButton />
</Booking>
</Section>
<Section
color="black"
className={"prose-dark border-y-4 border-y-sswRed text-center"}
>
<a id="more" />
<div className="w-full bg-benefits bg-cover bg-fixed bg-center bg-no-repeat py-12">
<div
data-tina-field={tinaField(data.consulting, "_body")}
className="mx-auto max-w-9xl px-4"
>
<TinaMarkdown
components={componentRenderer}
content={data.consulting._body}
/>
<Benefits data={data.consulting.benefits} />
</div>
</div>
</Section>
<Section className="mb-16">
<Container padding="px-4" className="flex w-full flex-wrap">
{data.consulting.afterBody ? (
<div>
<Blocks
prefix={"ConsultingAfterBody"}
blocks={data.consulting.afterBody}
/>
</div>
) : (
<></>
)}
<TestimonialRow
testimonialsResult={props.testimonialsResult}
categories={categories}
tagline={data.consulting.testimonials?.tagline}
/>
<BookingButton
data={{
containerClass: "mt-20",
}}
/>
</Container>
</Section>
<Marketing content={marketingData} />
<Section className="!bg-gray-75 pb-40">
<Container size="custom">
<h1 className="text-center">Companies we have worked with</h1>
<ClientLogos />
</Container>
</Section>
{!!techCards.length && (
<Section className="pb-16 text-center">
<Container padding="px-4">
<TechnologyCards {...data.consulting.technologies} />
</Container>
</Section>
)}
{!!mediaCardProps.length && (
<Section className="pb-40 pt-8 text-center">
<Container size="custom">
<MediaCards
header={data.consulting.medias?.header}
cardProps={mediaCardProps}
/>
</Container>
</Section>
)}
</>
);
}

0 comments on commit f727723

Please sign in to comment.