<div class="js-component relative component-spacer-padding">
    <div class="bg-grey-gradient absolute top-0 left-0 w-full h-full z-0"></div>
    <div class="container relative">
        <div class="max-w-screen-xl mx-auto">

            <div class="text-center mb-8 lg:mb-12">
                <h2 class="text-6xl  block font-heading font-medium leading-tight text-alpha">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 max-w-none 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">

            <picture class="block overflow-hidden h-full rounded-2xl w-full">

                <img class="lazyload h-full object-cover rounded-2xl w-full" alt="" width="1200" height="750" data-sizes="auto" data-srcset="/front-end/images/test-imagery/example2@16-10@1200w.jpg 1200w" data-src="/front-end/images/test-imagery/example2@16-10@1200w.jpg">

            </picture>

        </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 textColourClass = theme.textColour %}
    {% set richTextColourClass = theme.richTextColour %}
    {% set bgClass = theme.bgColour %}
    {% set spacer = "component-spacer-padding" %}
{% else %}
    {% set bgColourClass = 'bg-grey-50' %}
    {% set textColourClass = 'text-grey-800' %}
    {% set richTextColourClass = '' %}
    {% 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>
    <div class="container relative">
        <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": {
    "src": "images/test-imagery/example2@16-10@1200w.jpg",
    "srcSet": [
      {
        "url": "images/test-imagery/example2@16-10@1200w.jpg",
        "size": "1200"
      }
    ]
  },
  "buttonColour": "default",
  "theme": {
    "bgColour": "bg-grey-gradient",
    "textColour": "text-white",
    "richTextColour": "prose-white"
  }
}
  • Handle: @media-content-panel-style-2-component--grey-background
  • 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.