<picture class="block overflow-hidden  w-full">

    <img class="lazyload  w-full" alt="" width="1200" height="900" data-sizes="auto" data-srcset="/front-end/images/test-imagery/example3@16-12@1200w.jpg 1200w 1200w" data-src="/front-end/images/test-imagery/example3@16-12@1200w.jpg">

</picture>
{% if modifier and 'w-' in modifier %} 
    {% set defaultImageWidth = "" %}
{% else %}
    {% set defaultImageWidth = "w-full" %}
{% endif %}

{% if frameModifier and 'w-' in frameModifier %} 
    {% set defaultFrameWidth = "" %}
{% else %}
    {% set defaultFrameWidth = "w-full" %}
{% endif %}

<picture class="block overflow-hidden {{frameModifier}} {{ defaultFrameWidth }}">
    {% set comma = joiner() %}
    {% if xsmMax %}
        <source media="(max-width: 640px)" width="{{xsmMax.width}}" height="{{xsmMax.height}}" srcset="{% for src in xsmMax.srcSet %}{{ comma() }}{{ src.url | asset }} {{ src.size }}w{% endfor %}">
    {% endif %}
    {% if smMax %}
        <source media="(max-width: 767px)" width="{{smMax.width}}" height="{{smMax.height}}" srcset="{% for src in smMax.srcSet %}{{ comma() }}{{ src.url | asset }} {{ src.size }}w{% endfor %}">
    {% endif %}
    {% if mdMax %}
        <source media="(max-width: 1023px)" width="{{mdMax.width}}" height="{{mdMax.height}}" srcset="{% for src in mdMax.srcSet %}{{ comma() }}{{ src.url | asset }} {{ src.size }}w{% endfor %}">
    {% endif %}
    {% if src %}
        <img class="lazyload {{ modifier }} {{ defaultImageWidth }}" alt="" width="{{width}}" height="{{height}}" data-sizes="auto" 
            data-srcset="{% for src in srcSet %}{{ comma() }}{{ src.url | asset }} {{ src.size }}w{% endfor %}"
            data-src="{{ src | asset }}">
    {% endif %}
</picture>
{
  "siteName": "MentorKit Pattern Library",
  "src": "images/test-imagery/example3@16-12@1200w.jpg",
  "srcSet": [
    {
      "url": "images/test-imagery/example3@16-12@1200w.jpg 1200w",
      "size": 1200
    }
  ],
  "width": 1200,
  "height": 900
}
  • Handle: @image-frame--16-12-aspect-ratio-crop
  • Preview:
  • Filesystem Path: fractal\components\01-micro\image-frame\image-frame.nunjucks

No notes defined.