Overview
The brands component displays a responsive grid of brand logos, allowing customers to browse products by brand. It includes an optional title and “View All” button to link to the complete brands page.Location
Component path
Configuration
Intwilight.json, this component is identified by key 25f6cf26-a53f-4954-9b32-739b311b32c7.
Available fields
Section heading displayed above the brand grid. Default: “Browse All Brands” (en) / “تصفح من خلال العلامات التجارية” (ar)
Selected brands to display. Multiple selection, searchable.
Usage example
Template structure
Brand object
Each brand in thecomponent.brands array contains:
Link to the brand’s product listing page
Brand logo image URL
Brand name (used for alt text)
Grid layout
The grid adapts based on the number of brands:5 or fewer brands
- Mobile: 2 columns
- Desktop: 5 columns
- Standard brand item sizing
More than 5 brands
- Mobile: 2 columns
- Desktop: 4 columns
- Every 3rd brand spans 2 rows for visual variety
Featured brand styling
When there are more than 5 brands, some brands span multiple rows:Display all button
The “View All” button appears when the theme setting is enabled:Background styling
The component uses a light gray background:Responsive spacing
- Top padding:
pt-8(mobile) tosm:pt-12(desktop) - Bottom padding:
pb-8(mobile) tosm:pb-20(desktop) - Gap between brands:
gap-4(mobile) tolg:gap-8(large screens)
Styling classes
The component uses these main CSS classes:.s-block--logos-slider: Main container styling.s-block--full-bg: Full background treatment.s-block__title: Header section with title and “View All” link.brand-item: Individual brand container with hover effects.s-block__display-all: “View All” link styling
Accessibility
- Proper alt text with brand name
- Semantic
<h2>for section title - Width and height attributes for layout stability
Image sizing
Brand logos:- Maximum height constraint:
max-h-full - Declared dimensions: 400×300 pixels
- Automatically scales within brand item container
The “View All” button only appears when the
is_more_button_enabled theme setting is active. This setting is shared across multiple homepage components.