<a class="w-full h-full block transition ease-in-out duration-300 hover:shadow-xl group rounded-2xl overflow-hidden relative before:h-[80%] before:opacity-60 before:bg-gradient-to-t before:from-black before:to-transparent before:w-full before:bottom-0 before:left-0 before:absolute before:z-10 " href="./index.html">
<div class=" absolute text-white w-full p-7 bottom-0 z-20 lg:px-12">
<div>
<div class="flex-2 flex gap-5 justify-between items-end">
<h2 class=" text-white font-bold block text-xl md:text-4xl ">Lorem ipsum</h2>
<div class="w-8 h-8">
<div class="w-8 h-8 rounded-full bg-alpha text-white relative overflow-hidden">
<div class="absolute w-full h-full flex flex-nowrap top-0 left-0 -translate-x-full transition ease-in-out duration-500 group-hover:translate-x-0">
<div class="w-full h-full justify-center flex items-center flex-shrink-0">
<div class="-rotate-90 group-aria-expanded:rotate-180 w-[50%] h-[50%] -mr-0.5">
<svg class="fill-current text-white w-4 h-4 transition-colors ease-in-out">
<use href="/front-end/sprite.svg?v=1.2#icon-chevron"></use>
</svg>
</div>
</div>
<div class="w-full h-full justify-center flex items-center flex-shrink-0">
<div class="-rotate-90 group-aria-expanded:rotate-180 w-[50%] h-[50%] -mr-0.5">
<svg class="fill-current text-white w-4 h-4 transition-colors ease-in-out">
<use href="/front-end/sprite.svg?v=1.2#icon-chevron"></use>
</svg>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<picture class="block overflow-hidden w-full">
<img class="lazyload transition ease-in-out duration-300 group-hover:scale-110 w-full" alt="" width="1200" height="1200" data-sizes="auto" data-srcset="/front-end/images/test-imagery/example1@1-1@1200w.jpg 1200w" data-src="/front-end/images/test-imagery/example1@1-1@1200w.jpg">
</picture>
</a>
<a class="w-full h-full block transition ease-in-out duration-300 hover:shadow-xl group rounded-2xl overflow-hidden relative {% if backgroundColour %} bg-grey-50 {% else %} before:h-[80%] before:opacity-60 before:bg-gradient-to-t before:from-black before:to-transparent before:w-full before:bottom-0 before:left-0 before:absolute before:z-10 {% endif %}" href="{{ link | path }}">
<div class="{% if not backgroundColour %} absolute {% else %} flex flex-col h-full justify-between {% endif %} text-white w-full p-7 bottom-0 z-20 {%if large %}lg:px-12{% endif %}">
<div>
<div class="flex-2 flex gap-5 justify-between items-end">
<h2 class="{% if backgroundColour %}text-grey-700 {% else %} text-white {% endif %} font-bold block {%if large %} text-xl md:text-4xl {%else %} text-xl md:text-2xl {% endif %}">{{ heading }}</h2>
{% if not backgroundColour %}
<div class="w-8 h-8">
<div class="w-8 h-8 rounded-full bg-alpha text-white relative overflow-hidden">
<div class="absolute w-full h-full flex flex-nowrap top-0 left-0 -translate-x-full transition ease-in-out duration-500 group-hover:translate-x-0">
<div class="w-full h-full justify-center flex items-center flex-shrink-0">
<div class="-rotate-90 group-aria-expanded:rotate-180 w-[50%] h-[50%] -mr-0.5">
{% render "@icon", { name: "icon-chevron", modifier: 'fill-current text-white w-4 h-4 transition-colors ease-in-out' } %}
</div>
</div>
<div class="w-full h-full justify-center flex items-center flex-shrink-0">
<div class="-rotate-90 group-aria-expanded:rotate-180 w-[50%] h-[50%] -mr-0.5">
{% render "@icon", { name: "icon-chevron", modifier: 'fill-current text-white w-4 h-4 transition-colors ease-in-out' } %}
</div>
</div>
</div>
</div>
</div>
{% endif %}
</div>
{% if description and backgroundColour %}
<p class="text-xl mt-3 leading-tight {% if backgroundColour %}text-grey-600 {% else %} text-white {% endif %}">{{ description }}</p>
{% endif %}
</div>
{% if description and backgroundColour %}
<div class="flex w-full justify-end">
<div class="w-8 h-8">
<div class="w-8 h-8 rounded-full bg-alpha text-white relative overflow-hidden">
<div class="absolute w-full h-full flex flex-nowrap top-0 left-0 -translate-x-full transition ease-in-out duration-500 group-hover:translate-x-0">
<div class="w-full h-full justify-center flex items-center flex-shrink-0">
<div class="-rotate-90 group-aria-expanded:rotate-180 w-[50%] h-[50%] -mr-0.5">
{% render "@icon", { name: "icon-chevron", modifier: 'fill-current text-white w-4 h-4 transition-colors ease-in-out' } %}
</div>
</div>
<div class="w-full h-full justify-center flex items-center flex-shrink-0">
<div class="-rotate-90 group-aria-expanded:rotate-180 w-[50%] h-[50%] -mr-0.5">
{% render "@icon", { name: "icon-chevron", modifier: 'fill-current text-white w-4 h-4 transition-colors ease-in-out' } %}
</div>
</div>
</div>
</div>
</div>
</div>
{% endif %}
</div>
{% if not backgroundColour %}
{% render "@image-frame", { src: image.src, srcSet: image.srcSet, width: image.width, height: image.height, xsmMax: image.xsmMax, smMax: image.smMax, mdMax: image.mdMax, modifier: 'transition ease-in-out duration-300 group-hover:scale-110' } %}
{% endif %}
</a>
{
"siteName": "Gigaclear Pattern Library",
"link": "./index",
"heading": "Lorem ipsum",
"description": "Lorem ipsum dolor sit amet, consectetur adipiscing elit",
"image": {
"src": "images/test-imagery/example1@1-1@1200w.jpg",
"width": 1200,
"height": 1200,
"srcSet": [
{
"url": "images/test-imagery/example1@1-1@1200w.jpg",
"size": "1200"
}
]
},
"large": true
}
No notes defined.