X Enterprises
nuxt-x-affiliate

Section

Full-width page band with vertical rhythm, a max-width container, and an optional colour, image, pattern, or parallax background.

Section

The layout primitive every landing page is built from: one full-width band with consistent vertical rhythm and a max-width inner container.

Distinct from <XAFPageSection>, which is the simpler heading-plus-slot wrapper used inside review article bodies. This one owns the full-bleed band and its background.

Components

<XAFSection />

<XAFSection bg="subtle" padding="lg">
  <XAFFeatures :features="features" layout="grid" :columns="3" />
</XAFSection>

<!-- Photo background with a pattern layer and parallax drift -->
<XAFSection
  :bg="{
    variant: 'bold',
    image: '/bench.jpg',
    imageOverlay: 'heavy',
    pattern: 'grid',
    patternOpacity: 0.08,
    parallax: true,
    parallaxSpeed: 0.2,
  }"
  padding="xl"
>
  <XAFCardGlass title="Reads well over photography" glow>…</XAFCardGlass>
</XAFSection>

Props

PropTypeDefaultDescription
bgSectionBg | string{}Background config. A bare string is shorthand for { variant }
padding'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl''lg'Vertical padding
container'sm' | 'md' | 'lg' | 'xl' | 'full' | 'none''lg'Inner max-width

bg object

KeyTypeDescription
variant'default' | 'subtle' | 'elevated' | 'bold' | 'transparent'Preset background colour
colorstringExplicit Tailwind classes, overriding variant
imagestringBackground image URL
imageAltstringAlt text for the background image
imageOverlay'light' | 'heavy' | 'gradient'Darkening layer over the image
imagePositionstringTailwind object-* position class
patternXafPatternNameDecorative pattern — see <XAFPatternBg>
patternOpacitynumberPattern opacity, 0–1
parallaxbooleanDrift the image slower than the page scroll
parallaxSpeednumber0 = fixed, 1 = moves with scroll

Slots

SlotDescription
defaultSection content, inside the container
backgroundExtra background layer, behind the content and above the image

AI Context

component: XAFSection
package: "@xenterprises/nuxt-x-affiliate"
use-when: Full-width page band with padding, container, and background
Copyright © 2026