Skip to content
New: Customize your theme with an AI assistant. Read the guide

Reusable Components & Sections

Files: src/layouts/components/sections/, src/content/sections/<language>/, src/sections.schema.ts · Skill level: Beginner

Veltro includes 36 section components in src/layouts/components/sections/. Their default content lives in src/content/sections/<language>/, with a folder each for english, french, and arabic. Two have no content file of their own: BannerCardSection reads the page it’s on, and NotFoundSection reads notFound in src/i18n/<lang>.json.

Section families include banners, about, services, portfolio, case studies, industries, process, solutions, pricing, FAQ, testimonials, team, careers, awards, video, contact, customer logos, calls to action, and blog lists.

In the Tina edition, the content files are Section defaults at /admin/. In the Sanity edition, they are documents under Sections in the Studio, for each language.

Content And Component Pair

src/layouts/components/sections/ServicesSection.astro
src/content/sections/english/services-section.md
src/content/sections/french/services-section.md
src/content/sections/arabic/services-section.md

Section Layouts

Many sections have more than one layout. Set options.layout in the section’s content file: for example grid, card, or horizontal for the blog section. AGENTS.md lists the values for each kind of card.

Shared Schemas

src/sections.schema.ts defines reusable structures for buttons, form fields, videos, and page-level section overrides. For example, shared buttons support:

  • enable, tag, url, buttonType, label, and title
  • class, rel, and target
  • icon name, position, class, and size
  • hoverEffect: bg-flip, icon-flip, or creative-fill
  • variant: fill, outline, text, or circle

Treat this file as the reference for option values, because some comments in the section Markdown files list older hover effects. Keep the component and its content entry together when adding a new section.

Type something to search...