Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
22 lines (21 sloc) 1.04 KB
<section class="sf-banner" :style="'background-image: url(' + image + '); background-color: ' + background +';'">
<div class="sf-banner__container">
<!--@slot Banner subtitle. Slot content will replace default <h2> tag-->
<slot name="subtitle" v-bind="{subtitle}">
<h2 class="sf-banner__subtitle" v-if="subtitle">{{ subtitle }}</h2>
</slot>
<!--@slot Banner title. Slot content will replace default <h1> tag-->
<slot name="title" v-bind="{title}">
<h1 class="sf-banner__title" v-if="title">{{ title }}</h1>
</slot>
<!--@slot Banner description. Slot content will replace default <p> tag-->
<slot name="description" v-bind="{description}">
<p class="sf-banner__description" v-if="description">{{ description }}</p>
</slot>
<!--@slot Call to action section. Slot content will replace default SfButton component-->
<slot name="call-to-action" v-bind="{buttonText}">
<SfButton class="sf-banner__call-to-action" v-if="buttonText">{{ buttonText }}</SfButton>
</slot>
<slot />
</div>
</section>
You can’t perform that action at this time.