<div class="js-component relative component-spacer-margin">
    <div class=" absolute top-0 left-0 w-full h-full z-0"></div>

    <div class="container relative z-20">
        <div class="max-w-screen-xl mx-auto">

            <div class="text-center mb-8 lg:mb-12">
                <h2 class="text-6xl lg:text-9xl block font-heading font-medium leading-tight text-bravo-900">Lorem ipsum dolor</h2>

                <div class="prose prose-p:leading-snug prose-ul:leading-normal prose-ol:leading-normal prose-lg lg:prose-xl mt-4 lg:mt-6  text-bravo-900 max-w-screen-sm mx-auto">
                    <p>Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.</p>
                </div>

            </div>

        </div>
        <div class="relative z-0 rounded-2xl lg:order-none lg:row-start-1 lg:col-start-8 lg:col-end-16">

            <div class="relative w-full h-full rounded-2xl">
                <div class="aspect-[16/10]"></div>
                <video preload="none" class="lazyload absolute object-cover w-full h-full top-0 left-0 rounded-2xl" muted autoplay loop playsinline>
                    <source src="https://player.vimeo.com/external/392924695.hd.mp4?s=5abd506422ab485f2e2174982ef5c07b2e309e38&amp;profile_id=175" type="video/mp4">
                </video>
            </div>

        </div>
    </div>
</div>
{% if buttonColour %}
    {% set buttonModifier = buttonColour %}
{% else %}
    {% set buttonModifier = 'default' %}
{% endif %} 

{% if flipped %}
    {% set imageContainer = 'order-1 lg:col-start-1 lg:col-end-8 lg:row-start-1' %}
    {% set descriptionContainer = 'order-2 lg:col-start-8 col-end-14 lg:justify-end' %}
{% else %}
    {% set imageContainer = 'lg:order-none lg:row-start-1 lg:col-start-8 lg:col-end-16' %}
    {% set descriptionContainer = 'lg:order-none lg:col-start-2 lg:col-end-8 relative' %}
{% endif %}

{% if buttonColour %}
    {% set buttonModifier = buttonColour %}
{% else %}
    {% set buttonModifier = 'default' %}
{% endif %}

{% if theme %}
    {% set bgColourClass = theme.bgColour %}
    {% set bgClass = theme.bgColour %}
    {% set spacer = "component-spacer-padding" %}
{% else %}
    {% set bgColourClass = 'bg-grey-50' %}
    {% set bgClass = "" %}
    {% set spacer = "component-spacer-margin" %}
{% endif %}

<div class="js-component relative {{ spacer }}">
    <div class="{{bgClass}} absolute top-0 left-0 w-full h-full z-0"></div>
    {% if theme.bgColour == 'gradient-dark' %}
        <div class="absolute w-full h-full top-0 left-0 bg-bravo-900 opacity-50 z-10"></div>
    {% endif %}
    <div class="container relative z-20">
        <div class="max-w-screen-xl mx-auto">
            {% render "@headline", headline %}
        </div>
        <div class="relative z-0 rounded-2xl {{imageContainer}}">
            {% if image %}
                {% render "@image-frame", { src: image.src, srcSet: image.srcSet, modifier: 'h-full object-cover rounded-2xl', frameModifier: 'h-full rounded-2xl', width: 1200, height: 750 } %}
            {% elseif backgroundVideo %}
                <div class="relative w-full h-full rounded-2xl">
                    <div class="aspect-[16/10]"></div>
                    <video preload="none" class="lazyload absolute object-cover w-full h-full top-0 left-0 rounded-2xl" muted autoplay loop playsinline>
                        <source src="{{backgroundVideo.src}}" type="video/mp4">
                    </video>
                </div>
            {% endif %}
        </div>
    </div>
</div>
{
  "siteName": "BIR Pattern Library",
  "componentModifier": "text-center",
  "headline": {
    "heading": "Lorem ipsum dolor",
    "summary": "Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.",
    "link": {
      "text": "Find out more",
      "url": "./index"
    },
    "preheading": "Heading Label"
  },
  "icon": "icon-play",
  "image": "",
  "heading": "Check this out - with video button",
  "description": "Mauris ultricies arcu rhoncus, venenatis nibh non, malesuada nisl. Nam varius finibus lectus at molestie. Proin venenatis nisi eu erat consectetur, sed gravida odio laoreet.",
  "backgroundVideo": {
    "src": "https://player.vimeo.com/external/392924695.hd.mp4?s=5abd506422ab485f2e2174982ef5c07b2e309e38&profile_id=175"
  },
  "link": {
    "text": "Play full video",
    "url": "https://www.youtube.com/embed/vqNZngMjgko",
    "modal": true,
    "id": "video-modal-1234",
    "renderAsButton": true
  }
}
  • Handle: @media-content-panel-style-2-component--video
  • Preview:
  • Filesystem Path: fractal\components\02-umbraco-repeatable-components\media-content-panel-style-2-component\media-content-panel-style-2-component.nunjucks
  • References (2): @headline, @image-frame

No notes defined.