Skip to main content
ALEXY LINK

Contact 01

Advanced centered contact form with scheduling, preferred contact method, and accessible validation.

Requirements

HTML, CSS, JavaScript

Dependencies

None

Usage

Copy index.html, styles.css and script.js into your project.

About Contact 01

Contact 01 is a contact section in the Contact Sections collection, available in HTML + CSS + JavaScript and React + TypeScript + Tailwind CSS. Last updated August 19, 2026.

  • contact
  • form
  • scheduling
  • validation
  • centered

What the code includes

HTML + CSS + JavaScript

3 files: index.html, styles.css, script.js

  • Behavior is handled in script.js.
  • ARIA in the markup: roles alert, status; aria-required, aria-describedby, aria-label, aria-live.
  • HTML elements used: section, form, button, input, select, label, svg.
  • Includes a prefers-reduced-motion rule for its animation.
  • Responsive CSS breakpoints at 640px, 1024px.

React + TypeScript + Tailwind CSS

3 files: Contact01.jsx, Contact01.types.ts, Contact01.tailwind.css

  • Content lives in editable constants: COUNTRY_CALLING_CODES.
  • Typed data shapes: ContactMethod, FieldName, FormStatus, CountryCallingCode, ContactFormValues, ContactFormErrors.
  • Uses React hooks: useId, useRef, useState.
  • ARIA in the markup: roles alert, status; aria-required, aria-invalid, aria-describedby, aria-label, aria-live.
  • HTML elements used: section, form, button, input, select, label, svg.
  • Includes a prefers-reduced-motion rule for its animation.
  • Responsive Tailwind breakpoints used: sm, lg.
View all Contact Sections (11)