Skip to content

Commit 31ce991

Browse files
authored
Feat: vibe code ship mvp section (#594)
* feat: add get in touch section * fix: add smaller text on mobile
1 parent fc41d76 commit 31ce991

File tree

4 files changed

+63
-3
lines changed

4 files changed

+63
-3
lines changed
206 KB
Loading

apps/website/src/components/BaseContactForm.astro

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
---
2-
import Field from "./Field.astro";
2+
import classnames from "classnames";
33
import * as formContent from "../content/contact/form.md";
44
import "../styles/loader.css";
5-
import classnames from "classnames";
5+
import Field from "./Field.astro";
66
77
type Props = {
88
onDark?: boolean;
@@ -93,7 +93,7 @@ const { onDark, classNames } = Astro.props;
9393
id="form-consent-text"
9494
for="form-consent"
9595
class={classnames(
96-
"[&>em]:not-italic [&_b]:text-[#67a807] [&>em]:font-semibold cursor-pointer",
96+
"[&>em]:not-italic [&_b]:text-[#67a807] [&>em]:font-semibold cursor-pointer text-sm sm:text-base",
9797
{
9898
"text-secondary": !onDark,
9999
"text-neutral-50": onDark,
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
import { Image } from "astro:assets";
3+
import getInTouchImage from "../../assets/get-in-touch.png";
4+
import { grid_classes } from "../_grid";
5+
import BaseContactForm from "../BaseContactForm.astro";
6+
import RightArrow from "../icons/RightArrow.astro";
7+
import Pill from "../Pill.astro";
8+
import Section from "../Section.astro";
9+
---
10+
11+
<Section
12+
contentClassName={`${grid_classes} bg-[#5362DBE5]/[0.9] text-white rounded-[48px] mt-12 md:mt-22 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 classNames="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 text-sm sm:text-base"
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 & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
---
22
import Footer from "../components/footer.astro";
33
import Navigation from "../components/navigation.astro";
4+
import GetInTouch from "../components/vibe-code-mvp/GetInTouch.astro";
45
import Hero from "../components/vibe-code-mvp/Hero.astro";
56
import Base from "../layouts/base.astro";
67
import "../styles/main.css";
@@ -12,5 +13,6 @@ const { ogImage = "https://www.crocoder.dev/homepage-metadata-img.png" } =
1213
<Base className="bg-white !justify-start" ogImage={ogImage}>
1314
<Navigation />
1415
<Hero />
16+
<GetInTouch />
1517
<Footer />
1618
</Base>

0 commit comments

Comments
 (0)