Accordion

Small hero

Donec ullamcorper nulla non.

Aenean lacinia bibendum nulla sed consectetur, egestas eget quam.

<!-- hero.blade.php -->
<section class="c-hero c-hero--image c-hero--default c-hero--small c-hero--apply-rounded-corners c-hero--apply-shadows c-hero--overlay" role="region" aria-label="Hero" data-uid="673ed3497e61b">
    <div class="c-hero__image" style="background-image: url('https://picsum.photos/id/1026/1500/1000');" data-js-toggle-item="toggle-animation" data-js-toggle-class="u-animation--pause">
    </div>
            <div class="c-hero__overlay"></div>
    
    
    
        <div class="o-container c-hero__container">
            
            
            <div class="c-hero__content" style="">
                
    
                    <!-- typography.blade.php  (hasSeenH1)  original: h1 -->
<h1 class="c-typography c-hero__title c-typography__variant--h1" data-uid="673ed3497e6d6">
    Donec ullamcorper nulla non.
</h1>    
    
                <!-- typography.blade.php  (hasSeenH1)  original: p -->
<p class="c-typography c-hero__body c-typography__variant--p" data-uid="673ed3497e711">
    Aenean lacinia bibendum nulla sed consectetur, egestas eget quam.
</p>    
    
    
    
    <div class="c-hero__inner-blocks u-hide-empty"><InnerBlocks /></div>

</div>
        </div>
    </section>
@hero([
    "image" => "https://picsum.photos/id/1026/1500/1000",
    "size" => "small",
    "overlay" => "neutral",
    "title" => "Donec ullamcorper nulla non.",
    "paragraph" => "Aenean lacinia bibendum nulla sed consectetur, egestas eget quam."
])
@endhero

Normal hero

Donec ullamcorper nulla non metus auctor fringilla.

Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras justo odio, dapibus ac facilisis in, egestas eget quam.

<!-- hero.blade.php -->
<section class="c-hero c-hero--image c-hero--default c-hero--normal c-hero--apply-rounded-corners c-hero--apply-shadows c-hero--overlay" role="region" aria-label="Hero" data-uid="673ed3497e9b1">
    <div class="c-hero__image" style="background-image: url('https://picsum.photos/id/1026/1500/1000');" data-js-toggle-item="toggle-animation" data-js-toggle-class="u-animation--pause">
    </div>
            <div class="c-hero__overlay"></div>
    
    
    
        <div class="o-container c-hero__container">
            
            
            <div class="c-hero__content" style="">
                
    
                    <!-- typography.blade.php  (hasSeenH1)  original: h1 -->
<h2 class="c-typography c-hero__title c-typography__variant--h1" data-uid="673ed3497ea0f">
    Donec ullamcorper nulla non metus auctor fringilla.
</h2>    
                <!-- typography.blade.php  (hasSeenH1)  original: span -->
<span class="c-typography c-hero__byline c-typography__variant--h2" data-uid="673ed3497ea41">
    This is a byline
</span>    
                <!-- typography.blade.php  (hasSeenH1)  original: p -->
<p class="c-typography c-hero__body c-typography__variant--p" data-uid="673ed3497ea6d">
    Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras justo odio, dapibus ac facilisis in, egestas eget quam.
</p>    
    
    
    
    <div class="c-hero__inner-blocks u-hide-empty"><InnerBlocks /></div>

</div>
        </div>
    </section>
@hero([
    "image" => "https://picsum.photos/id/1026/1500/1000",
    "size" => "normal",
    "overlay" => "neutral",
    "title" => "Donec ullamcorper nulla non metus auctor fringilla.",
    "byline" => "This is a byline",
    "paragraph" => "Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras justo odio, dapibus ac facilisis in, egestas eget quam."
])
@endhero

Large hero

Donec ullamcorper nulla non metus auctor fringilla.

Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras justo odio, dapibus ac facilisis in, egestas eget quam.

<!-- hero.blade.php -->
<section class="c-hero c-hero--image c-hero--default c-hero--large c-hero--apply-rounded-corners c-hero--apply-shadows c-hero--overlay" role="region" aria-label="Hero" data-uid="673ed3497edc6">
    <div class="c-hero__image" style="background-image: url('https://picsum.photos/id/1026/1500/1000');" data-js-toggle-item="toggle-animation" data-js-toggle-class="u-animation--pause">
    </div>
            <div class="c-hero__overlay"></div>
    
    
    
        <div class="o-container c-hero__container">
            
            
            <div class="c-hero__content" style="">
                
    
                    <!-- typography.blade.php  (hasSeenH1)  original: h1 -->
<h2 class="c-typography c-hero__title c-typography__variant--h1" data-uid="673ed3497ee1f">
    Donec ullamcorper nulla non metus auctor fringilla.
</h2>    
                <!-- typography.blade.php  (hasSeenH1)  original: span -->
<span class="c-typography c-hero__byline c-typography__variant--h2" data-uid="673ed3497ee4e">
    This is a byline
</span>    
                <!-- typography.blade.php  (hasSeenH1)  original: p -->
<p class="c-typography c-hero__body c-typography__variant--p" data-uid="673ed3497ee8b">
    Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras justo odio, dapibus ac facilisis in, egestas eget quam.
</p>    
    
    
    
    <div class="c-hero__inner-blocks u-hide-empty"><InnerBlocks /></div>

</div>
        </div>
    </section>
@hero([
    "image" => "https://picsum.photos/id/1026/1500/1000",
    "size" => "large",
    "overlay" => "vibrant",
    "title" => "Donec ullamcorper nulla non metus auctor fringilla.",
    "byline" => "This is a byline",
    "paragraph" => "Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Morbi leo risus, porta ac consectetur ac, vestibulum at eros. Cras justo odio, dapibus ac facilisis in, egestas eget quam."
])
@endhero

Large hero (Without text)

<!-- hero.blade.php -->
<section class="c-hero c-hero--image c-hero--default c-hero--large c-hero--apply-rounded-corners c-hero--apply-shadows" role="region" aria-label="Hero" data-uid="673ed3497f125">
    <div class="c-hero__image" style="background-image: url('https://picsum.photos/id/1027/1500/1000');" data-js-toggle-item="toggle-animation" data-js-toggle-class="u-animation--pause">
    </div>
    
    
    </section>
@hero([
    "image" => "https://picsum.photos/id/1027/1500/1000",
    "size" => "large"
])
@endhero

With content background color

Donec ullamcorper nulla.

Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla.

<!-- hero.blade.php -->
<section class="c-hero c-hero--image c-hero--default c-hero--normal c-hero--apply-rounded-corners c-hero--apply-shadows c-hero--has-content-background-color" role="region" aria-label="Hero" data-uid="673ed3497f30e">
    <div class="c-hero__image" style="background-image: url('https://fastly.picsum.photos/id/1026/1500/1000.jpg?hmac=Jtdb98ZCenyIyfC6ENZwUMLCzTz7Yl2hZBmGW8TCfUI');" data-js-toggle-item="toggle-animation" data-js-toggle-class="u-animation--pause">
    </div>
    
    
    
        <div class="o-container c-hero__container">
            
            
            <div class="c-hero__content" style="background-color: #FFFFFF;">
                
    
                    <!-- typography.blade.php  (hasSeenH1)  original: h1 -->
<h2 class="c-typography c-hero__title c-typography__variant--h1" data-uid="673ed3497f369">
    Donec ullamcorper nulla.
</h2>    
                <!-- typography.blade.php  (hasSeenH1)  original: span -->
<span class="c-typography c-hero__byline c-typography__variant--h2" data-uid="673ed3497f398">
    This is a byline
</span>    
                <!-- typography.blade.php  (hasSeenH1)  original: p -->
<p class="c-typography c-hero__body c-typography__variant--p" data-uid="673ed3497f3c2">
    Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla.
</p>    
    
    
    
    <div class="c-hero__inner-blocks u-hide-empty"><InnerBlocks /></div>

</div>
        </div>
    </section>
@hero([
    "image" => "https://fastly.picsum.photos/id/1026/1500/1000.jpg?hmac=Jtdb98ZCenyIyfC6ENZwUMLCzTz7Yl2hZBmGW8TCfUI",
    "size" => "normal",
    "overlay" => "neutral",
    "title" => "Donec ullamcorper nulla.",
    "byline" => "This is a byline",
    "paragraph" => "Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla.",
    "contentBackgroundColor" => "#FFFFFF"
])
@endhero

Content alignment

Donec ullamcorper nulla.

Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla.

<!-- hero.blade.php -->
<section class="c-hero c-hero--image c-hero--default c-hero--normal c-hero--content-vertical__center c-hero--content-horizontal__center c-hero--apply-rounded-corners c-hero--apply-shadows c-hero--has-content-background-color" role="region" aria-label="Hero" data-uid="673ed3497f692">
    <div class="c-hero__image" style="background-image: url('https://fastly.picsum.photos/id/1026/1500/1000.jpg?hmac=Jtdb98ZCenyIyfC6ENZwUMLCzTz7Yl2hZBmGW8TCfUI');" data-js-toggle-item="toggle-animation" data-js-toggle-class="u-animation--pause">
    </div>
    
    
    
        <div class="o-container c-hero__container">
            
            
            <div class="c-hero__content" style="background-color: #FFFFFF;">
                
    
                    <!-- typography.blade.php  (hasSeenH1)  original: h1 -->
<h2 class="c-typography c-hero__title c-typography__variant--h1" data-uid="673ed3497f6ea">
    Donec ullamcorper nulla.
</h2>    
                <!-- typography.blade.php  (hasSeenH1)  original: span -->
<span class="c-typography c-hero__byline c-typography__variant--h2" data-uid="673ed3497f718">
    This is a byline
</span>    
                <!-- typography.blade.php  (hasSeenH1)  original: p -->
<p class="c-typography c-hero__body c-typography__variant--p" data-uid="673ed3497f742">
    Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla.
</p>    
    
    
    
    <div class="c-hero__inner-blocks u-hide-empty"><InnerBlocks /></div>

</div>
        </div>
    </section>
@hero([
    "image" => "https://fastly.picsum.photos/id/1026/1500/1000.jpg?hmac=Jtdb98ZCenyIyfC6ENZwUMLCzTz7Yl2hZBmGW8TCfUI",
    "size" => "normal",
    "overlay" => "neutral",
    "title" => "Donec ullamcorper nulla.",
    "byline" => "This is a byline",
    "paragraph" => "Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla.",
    "contentBackgroundColor" => "#FFFFFF",
    "contentAlignmentHorizontal" => "center",
    "contentAlignmentVertical" => "center",
])
@endhero

Text alignment

Donec ullamcorper nulla.

Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla.

<!-- hero.blade.php -->
<section class="c-hero c-hero--image c-hero--default c-hero--normal c-hero--content-vertical__center c-hero--content-horizontal__right c-hero--text-align__right c-hero--apply-rounded-corners c-hero--apply-shadows c-hero--has-content-background-color" role="region" aria-label="Hero" data-uid="673ed3497fb2f">
    <div class="c-hero__image" style="background-image: url('https://fastly.picsum.photos/id/1026/1500/1000.jpg?hmac=Jtdb98ZCenyIyfC6ENZwUMLCzTz7Yl2hZBmGW8TCfUI');" data-js-toggle-item="toggle-animation" data-js-toggle-class="u-animation--pause">
    </div>
    
    
    
        <div class="o-container c-hero__container">
            
            
            <div class="c-hero__content" style="background-color: #FFFFFF;">
                
    
                    <!-- typography.blade.php  (hasSeenH1)  original: h1 -->
<h2 class="c-typography c-hero__title c-typography__variant--h1" data-uid="673ed3497fb87">
    Donec ullamcorper nulla.
</h2>    
                <!-- typography.blade.php  (hasSeenH1)  original: span -->
<span class="c-typography c-hero__byline c-typography__variant--h2" data-uid="673ed3497fbb5">
    This is a byline
</span>    
                <!-- typography.blade.php  (hasSeenH1)  original: p -->
<p class="c-typography c-hero__body c-typography__variant--p" data-uid="673ed3497fbf3">
    Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla.
</p>    
    
    
    
    <div class="c-hero__inner-blocks u-hide-empty"><InnerBlocks /></div>

</div>
        </div>
    </section>
@hero([
    "image" => "https://fastly.picsum.photos/id/1026/1500/1000.jpg?hmac=Jtdb98ZCenyIyfC6ENZwUMLCzTz7Yl2hZBmGW8TCfUI",
    "size" => "normal",
    "overlay" => "neutral",
    "title" => "Donec ullamcorper nulla.",
    "byline" => "This is a byline",
    "paragraph" => "Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla.",
    "textColor" => false,
    "contentBackgroundColor" => "#FFFFFF",
    "textAlignment" => "right",
    "contentAlignmentHorizontal" => "right",
    "contentAlignmentVertical" => "center",
])
@endhero

Button

Donec ullamcorper nulla.

Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla.

Button
<!-- hero.blade.php -->
<section class="c-hero c-hero--image c-hero--default c-hero--normal c-hero--apply-rounded-corners c-hero--apply-shadows c-hero--has-content-background-color" role="region" aria-label="Hero" data-uid="673ed3497ff20">
    <div class="c-hero__image" style="background-image: url('https://fastly.picsum.photos/id/1026/1500/1000.jpg?hmac=Jtdb98ZCenyIyfC6ENZwUMLCzTz7Yl2hZBmGW8TCfUI');" data-js-toggle-item="toggle-animation" data-js-toggle-class="u-animation--pause">
    </div>
    
    
    
        <div class="o-container c-hero__container">
            
            
            <div class="c-hero__content" style="background-color: #FFFFFF;">
                
    
                    <!-- typography.blade.php  (hasSeenH1)  original: h1 -->
<h2 class="c-typography c-hero__title c-typography__variant--h1" data-uid="673ed34980012">
    Donec ullamcorper nulla.
</h2>    
                <!-- typography.blade.php  (hasSeenH1)  original: span -->
<span class="c-typography c-hero__byline c-typography__variant--h2" data-uid="673ed3498003e">
    This is a byline
</span>    
                <!-- typography.blade.php  (hasSeenH1)  original: p -->
<p class="c-typography c-hero__body c-typography__variant--p" data-uid="673ed34980067">
    Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla.
</p>    
    
                <a class="c-button u-margin__top--2 c-button__filled c-button__filled--primary c-button--md" target="_top" type="button" href="#" aria-label="Button" data-uid="673ed349800b9">   
     <span class="c-button__label">         
        
                    <span class="c-button__label-text ">
                Button
            </span>
        
    </span> </a>    
    
    <div class="c-hero__inner-blocks u-hide-empty"><InnerBlocks /></div>

</div>
        </div>
    </section>
@hero([
    "image" => "https://fastly.picsum.photos/id/1026/1500/1000.jpg?hmac=Jtdb98ZCenyIyfC6ENZwUMLCzTz7Yl2hZBmGW8TCfUI",
    "size" => "normal",
    "overlay" => "neutral",
    "title" => "Donec ullamcorper nulla.",
    "byline" => "This is a byline",
    "paragraph" => "Aenean lacinia bibendum nulla sed consectetur. Aenean lacinia bibendum nulla sed consectetur. Donec ullamcorper nulla non metus auctor fringilla.",
    "contentBackgroundColor" => "#FFFFFF",
    "buttonArgs" => ["href" => "#", "text" => "Button", "color" => "primary", "classList" => ["u-margin__top--2"]]
])
@endhero

Multi column hero


Warning: The parameter "content" is not recognized in the component "hero" in /var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php on line 231

This is a title

Nullam quis risus eget urna mollis ornare vel eu leo. Maecenas sed diam eget risus varius blandit sit amet non magna. Etiam porta sem malesuada magna mollis euismod. Donec ullamcorper nulla non metus auctor fringilla.

<br />
<b>Warning</b>:  The parameter <b>"content"</b> is not recognized in the component <b>"hero"</b> in <b>/var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Register.php</b> on line <b>231</b><br />
<!-- hero.blade.php -->
<section class="c-hero c-hero--image c-hero--twoColumn c-hero--normal c-hero--apply-rounded-corners c-hero--apply-shadows" role="region" aria-label="Hero" data-uid="673ed3498039c">
    <div class="c-hero__background" style="">
    </div>
        <div class="o-container">
                  <!-- group.blade.php -->
<div class="c-group c-hero__content o-grid u-flex-direction--row--reverse c-group--horizontal c-group--flex-wrap-wrap" data-uid="673ed349804ba">
    <div class="c-hero__group">
                        <!-- image.blade.php -->
<figure class="c-image u-margin__bottom--0 c-hero__group-image" data-uid="673ed34980428">
     
        <img src="https://picsum.photos/id/1026/1500/1000" alt="" class="c-image__image" />
            </figure>

                </div>
                <div class="c-hero__group">
                        <!-- group.blade.php -->
<div class="c-group c-hero__group-content c-group--vertical c-group--justify-content-center" data-uid="673ed34980485">
    <!-- typography.blade.php  (hasSeenH1)  original: p -->
<p class="c-typography c-typography__variant--h1" data-uid="673ed349802d1">
    This is a title
</p>            <!-- typography.blade.php  (hasSeenH1)  original: p -->
<p class="c-typography c-typography__variant--body" data-uid="673ed34980303">
    Nullam quis risus eget urna mollis ornare vel eu leo. Maecenas sed diam eget risus varius blandit sit amet non magna. Etiam porta sem malesuada magna mollis euismod. Donec ullamcorper nulla non metus auctor fringilla.
</p>
</div>                </div>
</div>        </div></section>
@hero([
    "image" => "https://picsum.photos/id/1026/1500/1000",
    'heroView' => 'twoColumn'
])
    @slot('content')
        @typography([
            'variant' => 'h1'
        ])
            This is a title
        @endtypography
        @typography([
            'variant' => 'body'
        ])
            Nullam quis risus eget urna mollis ornare vel eu leo. Maecenas sed diam eget risus varius blandit sit amet non magna. Etiam porta sem malesuada magna mollis euismod. Donec ullamcorper nulla non metus auctor fringilla.
        @endtypography
    @endslot
@endhero

Blade component parameters

Key Default value Type Available values Description
image false boolean - Background image
imageFocus {"top":30,"left":50} array - Where to focus in the background.
video false boolean - Display a video as a background. This option will replace image.
size normal string - Ratio (normal, large)
title string - The title text
byline string - The byline text
paragraph string - The body text.
stretch false boolean - Always stretch the hero vertically. Makes the hero the width of the viewport. Requires a centered container.
animation false boolean - Name of the animation
ariaLabel Hero string - Label provided for accessibility tools such as screen readers
heroView default string - Select which view to display
customHeroData false boolean - An array containing the custom data for the selected view (heroView).
meta false boolean - The meta text
background false boolean - Image or a color
textColor string - The color of the text.
textAlignment left string - Alignment texts. Supports "left", "center" and "right".
contentBackgroundColor string - The background color for texts in the content area.
contentAlignmentVertical bottom string - Vertical placement of the content: top|center|bottom.
contentAlignmentHorizontal left string - -
contentApplyRoundedCorners true boolean - Apply rounded corners to content if contentBackgroundColor is set.
contentApplyShadows true boolean - Apply shadows to content if contentBackgroundColor is set.
buttonArgs [] array - Add a @button by passing @button component arguments. If button is treated as a link, all te text elements in the content gets wrapped with this link.
poster false boolean - Poster image for the video
overlay string - Add an overlay over an image to make text more legible
id string - The DOM id of the component.
classList [] array - Array containing wrapping classes array
attributeList [] array - Array containing keys and values rendered as attributes
containerAware false boolean true/false Makes the component container aware. Appends modifiers --size--xs/sm/md/lg to the component.
Settings location: /var/www/webroot/ROOT/vendor/helsingborg-stad/component-library/source/php/Component/Hero/hero.json