CTA Section
TheCtaSection component creates a compelling call-to-action area that encourages visitors to get in touch. It features a gradient background, persuasive copy, and an embedded contact form.
Overview
This component wraps theContactForm in an eye-catching section with:
- Gradient background (sky-500 to cyan-500)
- Two-column layout (text + form)
- Responsive design that stacks on mobile
- White text on colored background
Props
Array of offering objects to populate the service dropdown in the contact form. Each offering needs:
id- Unique identifiertitle- Display name for the service
Usage
The component is used on the main landing page atsrc/app/page.tsx:60:
src/app/page.tsx
Component Structure
The component fromsrc/components/cta-section.tsx contains:
Content Customization
The section text is defined within the component:- Edit the
ctaContentobject insrc/components/cta-section.tsx - Or move this content to a translation dictionary for i18n support
Styling
Gradient Background
The section uses Tailwind’s gradient utilities:bg-gradient-to-r- Left to right gradientfrom-sky-500- Start colorto-cyan-500- End color
Layout
- Desktop: Two-column grid (
md:grid-cols-2) - Mobile: Stacked single column
- Spacing: 12-unit gap between columns
Typography
- Headline: 3xl on mobile, 4xl on desktop
- Subtitle: lg text with gray-200 for contrast
- Font: Poppins headline font (configured in theme)
Anchor Link
The section hasid="contact" to enable anchor navigation. Other components can link to it:
Related Components
Contact Form
The form component embedded in this section
Offerings Section
Displays the offerings that feed into the CTA form
Accessibility
- Semantic HTML with
<section>element - Proper heading hierarchy (h2)
- High contrast text on gradient background
- Responsive layout works with screen readers