Skip to content

Commit 9625c59

Browse files
committed
feat: add get in touch section
1 parent 485c06e commit 9625c59

File tree

4 files changed

+66
-4
lines changed

4 files changed

+66
-4
lines changed
206 KB
Loading

apps/website/src/components/BaseContactForm.astro

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,18 @@ import "../styles/loader.css";
55
import classnames from "classnames";
66
77
type Props = {
8-
buttonText?: HTMLElement | string;
98
onDark?: boolean;
9+
className?: string;
1010
};
1111
12-
const { onDark, buttonText } = Astro.props;
12+
const { onDark, className } = Astro.props;
1313
---
1414

1515
<form
16-
class="group/contact-us flex flex-col gap-2 relative -top-6"
16+
class={classnames(
17+
"group/contact-us flex flex-col gap-2 relative -top-6",
18+
className,
19+
)}
1720
id="contact-us-form"
1821
novalidate
1922
>
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
import { grid_classes } from "../_grid";
3+
import BaseContactForm from "../BaseContactForm.astro";
4+
import RightArrow from "../icons/RightArrow.astro";
5+
import Pill from "../Pill.astro";
6+
import Section from "../Section.astro";
7+
import { Image } from "astro:assets";
8+
import getInTouchImage from "../../assets/get-in-touch.png";
9+
---
10+
11+
<Section
12+
contentClassName={`${grid_classes} bg-[#5362DBE5]/[0.9] text-white rounded-[48px] mt-12 max-sm:gap-0`}
13+
className="bg-contrast"
14+
>
15+
<div
16+
class="flex flex-col gap-2 md:gap-4 col-span-6 md:col-span-12 md:px-8 lg:col-span-5 lg:col-start-2 max-md:px-4 lg:px-0"
17+
>
18+
<div class="-translate-y-1/3 -mb-20">
19+
<Image
20+
class="object-cover"
21+
src={getInTouchImage}
22+
alt="Croco and client talking"
23+
widths={[320, 480, 640, 800, 964]}
24+
sizes="(max-width: 768px) calc(100vw - 32px), (max-width: 1280px) calc(67vw - 32px), calc(50vw - 28px)"
25+
loading="lazy"
26+
/>
27+
</div>
28+
<div class="w-full pb-2 lg:pb-4 md:py-0 lg:px-0 z-10">
29+
<Pill
30+
className="text-[10px] min-[340px]:text-xs min-[390px]:text-sm sm:text-base md:text-lg px-2 py-1 min-[390px]:px-3 min-[390px]:py-1.5 sm:px-4 sm:py-2 max-h-[36px]"
31+
>Get in touch</Pill
32+
>
33+
</div>
34+
<h1
35+
class="text-[18px] leading-[22px] min-[390px]:text-[24px] min-[390px]:leading-[28px] sm:text-[32px] sm:leading-[36px] md:text-[54px] md:leading-[59.4px] font-medium tracking-tight"
36+
>
37+
Let’s <span class="text-[#FEB534]"> Ship </span> Your MVP!
38+
</h1>
39+
<p
40+
class="font-normal text-sm leading-5 min-[390px]:text-base min-[390px]:leading-6 sm:text-lg sm:leading-7 md:text-[22px] md:leading-8 tracking-normal"
41+
>
42+
We’ll review what you’ve built and tell you exactly what it’ll take to
43+
finish. Simple, honest, no commitment.
44+
</p>
45+
</div>
46+
<div
47+
class="max-md:px-4 md:col-span-12 md:px-8 lg:px-0 lg:mt-28 lg:flex lg:flex-col row-start-2 col-start-1 col-span-6 lg:col-span-5 lg:col-start-7 lg:row-start-1"
48+
>
49+
<BaseContactForm onDark className="top-0 pb-6 lg:pb-12 max-sm:gap-0">
50+
<span
51+
slot="submit-button-content"
52+
class="flex items-center justify-center gap-2.5"
53+
>
54+
Get a free build review <RightArrow />
55+
</span>
56+
</BaseContactForm>
57+
</div>
58+
</Section>

apps/website/src/pages/vibe-code-mvp.astro

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ import circleCheckIcon from "../assets/circle-check-icon.svg";
2020
import quoteIcon from "../assets/quote-icon.svg";
2121
import "../styles/main.css";
2222
import Hero from "../components/vibe-code-mvp/Hero.astro";
23+
import GetInTouch from "../components/vibe-code-mvp/GetInTouch.astro";
2324
2425
const { ogImage = "https://www.crocoder.dev/homepage-metadata-img.png" } =
2526
Astro.props;
@@ -28,6 +29,6 @@ const { ogImage = "https://www.crocoder.dev/homepage-metadata-img.png" } =
2829
<Base className="bg-white !justify-start" ogImage={ogImage}>
2930
<Navigation />
3031
<Hero />
31-
32+
<GetInTouch />
3233
<Footer />
3334
</Base>

0 commit comments

Comments
 (0)