Skip to content

Commit bdba1a5

Browse files
authored
fix for-ctos + book a call form (#549)
1 parent f95e69b commit bdba1a5

File tree

4 files changed

+20
-54
lines changed

4 files changed

+20
-54
lines changed

apps/website/src/components/BookACallForm.astro

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,16 @@ import Pill from "./Pill.astro";
55
import Section from "./Section.astro";
66
import { Image } from "astro:assets";
77
import meetingImage from "../assets/meeting-croc.png";
8+
9+
export interface Props {
10+
calLink?: string;
11+
eventType?: string;
12+
}
13+
14+
const {
15+
calLink = "team/crocoder/hello",
16+
eventType = "hello",
17+
} = Astro.props;
818
---
919

1020
<!-- YELLOW-1 = #FEB534 -->
@@ -47,8 +57,8 @@ import meetingImage from "../assets/meeting-croc.png";
4757
>
4858
<div id="book-a-call"></div>
4959
<CalcomEmbedInline
50-
calLink="team/crocoder/hello"
51-
eventType="hello"
60+
calLink={calLink}
61+
eventType={eventType}
5262
elementOrSelector="#book-a-call"
5363
hideEventTypeDetails={false}
5464
/>

apps/website/src/components/cto/Hero.astro

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@ import heroImage from "../../assets/cto-hero.png";
3232
<p
3333
class="font-normal leading-7 md:text-[22px] md:leading-8 tracking-normal"
3434
>
35-
A web development consultancy helping CTOs Minimize their Hands-on.
36-
Involvement in Daily Operations
35+
A Web Development Consultancy Helping CTOs Minimize Their Hands-on Involvement in Daily Operations
3736
</p>
3837

3938
<a

apps/website/src/pages/for-ctos.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const { ogImage = "https://www.crocoder.dev/cto-metadata-img.png" } =
2020
<Values />
2121
<Services />
2222
<Testimonial />
23-
<BookACallForm>
23+
<BookACallForm calLink="team/crocoder/hands-off-cto" eventType="hands-off-cto">
2424
<span slot="title">
2525
Everything <span class="text-crocoder-yellow"> Kicks Off </span>
2626
with One Call

apps/website/src/pages/staff-augmentation.astro

Lines changed: 6 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
import CalcomEmbedInline from "../components/CalcomEmbedInline.astro";
2+
import BookACallForm from "../components/BookACallForm.astro";
33
import Footer from "../components/footer.astro";
44
import Navigation from "../components/navigation.astro";
55
import Base from "../layouts/base.astro";
@@ -18,7 +18,6 @@ import handsPuzzleServiceIcon from "../assets/hands-puzzle-service-icon.svg";
1818
import crmServiceIcon from "../assets/crm-service-icon.svg";
1919
import circleCheckIcon from "../assets/circle-check-icon.svg";
2020
import quoteIcon from "../assets/quote-icon.svg";
21-
import meetingImage from "../assets/meeting-croc.png";
2221
import "../styles/main.css";
2322
2423
const { ogImage = "https://www.crocoder.dev/homepage-metadata-img.png" } =
@@ -466,53 +465,11 @@ const { ogImage = "https://www.crocoder.dev/homepage-metadata-img.png" } =
466465
</div>
467466
</Section>
468467

469-
<!-- CTA Section -->
470-
<Section
471-
className="bg-secondary !pb-16 md:!pb-24 !pt-0 overflow-visible mt-[220px] xl:mt-[300px]"
472-
contentClassName={`${grid_classes} items-center`}
473-
>
474-
<div
475-
class="col-span-6 md:col-span-8 md:col-start-3 -translate-y-1/2 -mb-40 xl:col-span-6 xl:col-start-4 lg:-mb-60"
476-
>
477-
<Image
478-
class="object-cover xl:p-6 md:p-0 p-8"
479-
src={meetingImage}
480-
alt="CroCoder team member in a video call consultation"
481-
widths={[320, 480, 640, 800, 964]}
482-
sizes="(max-width: 768px) calc(100vw - 32px), (max-width: 1280px) calc(67vw - 32px), calc(50vw - 28px)"
483-
loading="lazy"
484-
/>
485-
</div>
486-
<div
487-
id="book-a-call-section"
488-
class="col-span-6 grid gap-4 md:col-span-12 md:text-center md:justify-items-center text-white xl:col-span-8 xl:col-start-3 scroll-mt-20"
489-
>
490-
<Pill>Book your call today</Pill>
491-
<h2
492-
class="text-[44px] leading-[48px] tracking-tight font-medium md:text-[74px] md:leading-[82px]"
493-
>
494-
Let's Build Together
495-
</h2>
496-
<p class="text-base leading-[26px] pt-3">
497-
Stop wasting time being caught in operational bottlenecks. Schedule your
498-
free call today, and let's help you deliver on your strategic vision with
499-
confidence. Select a date below or
500-
<a class="bold underline" href="/contact"> contact us here.</a>
501-
</p>
502-
</div>
503-
504-
<div
505-
class="relative col-span-6 md:col-span-10 md:col-start-2 overflow-hidden flex flex-col justify-center bg-white rounded"
506-
>
507-
<div id="book-a-call"></div>
508-
<CalcomEmbedInline
509-
calLink="team/crocoder/staff-augmentation-intro"
510-
eventType="staff-augmentation-intro"
511-
elementOrSelector="#book-a-call"
512-
hideEventTypeDetails={false}
513-
/>
514-
</div>
515-
</Section>
468+
<BookACallForm calLink="team/crocoder/staff-augmentation-intro" eventType="staff-augmentation-intro">
469+
<span slot="title">
470+
Let's Build Together
471+
</span>
472+
</BookACallForm>
516473

517474
<Footer />
518475
</Base>

0 commit comments

Comments
 (0)