Contact Section Three
navdeep-singh/contact-section-threeFreeBlock
Contact Section Three — Contact block.
Install it
npx shadcn@latest add https://ui.navdeepsingh.dev/r/contact-section-three.jsonSource
1import Image from 'next/image'2import type { CSSProperties } from 'react'34const maskSvg = `5<svg viewBox="0 0 700 760" xmlns="http://www.w3.org/2000/svg">6 <path7 fill="black"8 d="M112 0H660Q700 0 700 40V640Q700 676 664 676H652Q622 676 622 706V720Q622 760 582 760H40Q0 760 0 720V105Q0 65 40 65H58Q82 65 82 41V40Q82 0 112 0Z"9 />10</svg>11`1213const maskUrl = `url("data:image/svg+xml,${encodeURIComponent(maskSvg)}")`1415const imageMaskStyle: CSSProperties = {16 WebkitMask: `${maskUrl} center / 100% 100% no-repeat`,17 mask: `${maskUrl} center / 100% 100% no-repeat`,18}1920export default function ContactSection() {21 return (22 <section className="min-h-svh bg-background px-4 py-4 text-foreground md:px-6 lg:px-8">23 <div className="mx-auto flex min-h-[calc(100svh-2rem)] max-w-7xl items-center">24 <div className="grid w-full gap-6 lg:h-[calc(100svh-3rem)] lg:max-h-175 lg:grid-cols-[0.85fr_1.15fr] lg:items-stretch">25 {/* Form */}26 <div className="flex items-center rounded-[2rem] border bg-background px-5 py-8 md:px-8 lg:px-12">27 <div className="w-full">28 <div className="mb-8">29 <span className="text-sm text-muted-foreground">Contact us</span>3031 <h2 className="mt-3 max-w-md text-3xl font-semibold tracking-tight md:text-4xl">32 Let's build something useful together.33 </h2>3435 <p className="mt-4 max-w-md text-sm leading-6 text-muted-foreground md:text-base">36 Tell us what you're working on and we'll get back to you with a clear37 next step.38 </p>39 </div>4041 <form className="space-y-4">42 <div className="space-y-2">43 <label htmlFor="contact-name" className="text-sm font-medium">44 Name45 </label>46 <input47 id="contact-name"48 name="name"49 type="text"50 autoComplete="name"51 required52 placeholder="Your name"53 className="h-11 w-full rounded-lg border border-border bg-background px-3 text-sm transition outline-none placeholder:text-muted-foreground focus:border-foreground/40 focus-visible:ring-2 focus-visible:ring-ring/40"54 />55 </div>5657 <div className="space-y-2">58// … truncated
Files it writes
More from navdeep-singh
All 64 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Blog Section Oneblog-section-one | navdeep-singh | Blocks | Free | 1 dep | |
| Contact Section Fourcontact-section-four | navdeep-singh | Blocks | Free | no deps | |
| Contact Section Onecontact-section-one | navdeep-singh | Blocks | Free | 1 dep | |
| Contact Section Twocontact-section-two | navdeep-singh | Blocks | Free | no deps | |
| Content Section Fourcontent-section-four | navdeep-singh | Blocks | Free | 1 dep | |
| Content Section Onecontent-section-one | navdeep-singh | Blocks | Free | 1 dep | |
| Content Section Threecontent-section-three | navdeep-singh | Blocks | Free | 2 deps | |
| Content Section Twocontent-section-two | navdeep-singh | Blocks | Free | 1 dep |
