Overview
This component displays a product slider overlaid on a custom background image with a title and description. It’s perfect for showcasing featured products within a themed or branded context.Location
Component path
Configuration
Intwilight.json, this component is identified by key 9a758d20-2ce4-4782-91fe-c04466464588.
Available fields
Background image URL. Recommended size: 1233×500 pixels
Main heading displayed on the background
Descriptive text displayed below the title, line-clamped to 2 lines with max width
Selected products to display in the slider (min: 1, max: 8)
Link for the “View All” button. When empty or set to ”#”, the button is hidden.
Usage example
Template structure
Features
Background layer
The background section includes:- Full-width background image
- Responsive padding (smaller on mobile, larger on desktop)
- Container-constrained content
- Title with bold, large font
- Description with line clamping and max width
Product slider
The product section:- Uses negative margin (
-mt-62) to overlay the background - Displays selected products using
<salla-products-slider> - Maps product IDs for the
source-valueattribute - Optional “View All” button based on
display_all_url
Product selection
Display all button
Link types
Thedisplay_all_url supports these link sources:
- products
- categories
- brands
- pages
- blog_articles
- blog_categories
- offers_link
- brands_link
- blog_link
- custom (external URL)
Responsive behavior
Background section
- Mobile:
pt-8(2rem top padding) - Desktop:
sm:pt-20(5rem top padding)
Text sizing
- Title:
text-lg font-bold leading-12 - Description:
text-sm mb-8 line-clamp-2 max-w-lg
Styling
The component uses these main CSS classes:.s-block--slider-with-bg: Main container styling.s-block--full-bg: Full background treatment.slider-bg: Background image container-mt-62: Negative margin to overlay product slider on background
Web component
The<salla-products-slider> component:
- Automatically handles product display
- Includes responsive carousel behavior
- Shows product cards with standard styling
- Adds “View All” button when URL is provided
The description text is limited to 2 lines with
line-clamp-2 and has a maximum width of max-w-lg to maintain readability.