X Enterprises
nuxt-x-marketing

Section

Configurable section wrapper with background variants (default/subtle/elevated/bold/transparent), padding scales, container sizing, and optional image/pattern backgrounds with parallax support.

Section

The XMarkSection component is the layout primitive every marketing page is built on. It renders a full-width <section> with consistent vertical padding, a max-width container, and slots for an optional background image (with parallax), optional background pattern, and any custom inner content. The bg prop accepts either a variant string or a full background object when you need finer control.

Components

<XMarkSection />

Default usage with a variant and padding:

<XMarkSection bg="subtle" padding="lg">
  <h2>Built for teams that ship</h2>
  <p>Everything you need to launch a marketing site in a day.</p>
</XMarkSection>

Full background object — pattern + tinted background image with overlay:

<XMarkSection
  :bg="{
    variant: 'default',
    color: 'bg-amber-50 dark:bg-amber-950',
    pattern: 'waves',
    patternOpacity: 0.08,
    image: '/images/bg-team.jpg',
    imageAlt: 'Team collaborating',
    imageOverlay: 'gradient',
    imagePosition: 'object-center',
    parallax: true,
    parallaxSpeed: 0.3
  }"
  padding="xl"
  container="lg"
>
  <XMarkHero ... />
</XMarkSection>

Props

PropTypeDefaultDescription
bgstring | object{}Background config. String = variant shorthand ('default' | 'subtle' | 'elevated' | 'bold' | 'transparent'). Object accepts { variant, color, image, imageAlt, imageOverlay, imagePosition, pattern, patternOpacity, parallax, parallaxSpeed }. color (Tailwind classes) overrides variant.
paddingstring'lg'Vertical padding scale: 'none' | 'xs' | 'sm' | 'md' | 'lg' | 'xl'.
containerstring'lg'Max-width container: 'sm' | 'md' | 'lg' | 'xl' | 'full' | 'none'. 'sm' ≈ 42rem, 'md' ≈ 64rem, 'lg' ≈ 80rem, 'xl' ≈ 96rem.

bg object fields

FieldTypeDefaultDescription
variantstring'default'One of 'default', 'subtle', 'elevated', 'bold', 'transparent'.
colorstring''Raw Tailwind classes (e.g. 'bg-gradient-to-br from-primary-500 to-primary-700'). Overrides variant.
imagestring''Background image URL.
imageAltstring''Alt text for the background image.
imageOverlaystring''Overlay style: 'light', 'heavy', 'gradient'.
imagePositionstring'object-center'Any Tailwind object-* class.
patternstring''Pattern name — see XMarkPatternBg.
patternOpacitynumber0.05Pattern opacity, 0–1.
parallaxbooleanfalseApply parallax to the background image.
parallaxSpeednumber0.3Parallax intensity, 0.1–1.0.

Slots

SlotDescription
backgroundReplace the auto-rendered background image / pattern entirely.
defaultSection content (rendered inside the container).

AI Context

category: Layout
package: "@xenterprises/nuxt-x-marketing"
components:
  - XMarkSection
use-when: >
  Wrapping content in a vertically-padded, max-width-contained section with a
  consistent background scheme (variant + pattern + image). This is the layout
  primitive every marketing page is built on top of — wrap hero, features,
  pricing, testimonials, FAQ, etc. in XMarkSection to apply padding, container
  width, and background in one shot.
typical-page-section: Anywhere in a marketing page that needs padding + container + background.
Copyright © 2026