<!-- RP 240409 Research card - Changed classes -->
<article class="n7-card sm:flex flex-1 max-w-[846px] gap-6 p-4 rounded shadow-md hover:shadow-xl is-card-fullclickable">
<!-- RP 240409 Research card - Changed classes -->
<div class="n7-card__image max-sm:hidden flex-shrink-0 h-0 sm:h-52
">
<img class="object-scale-down w-full h-full" alt="" src="/images/vertical-thumb.png" />
</div>
<div class="grid gap-4">
<div class="n7-card__heading flex flex-col-reverse gap-4">
<h3 class="n7-card__title flex items-center gap-6 text-xl font-medium">
<a class="grow hover:underline" href="">
Antiseptics and the Ocular Surface: In Vitro Antimicrobial Activity and Effects on Conjunctival and Corneal Epithelial Cells of a New Liposomal Ocular Spray Containing Biosecur Citrus Extract
</a>
<svg class="inline-block align-middle fill-current w-5 h-5 shrink-0" aria-hidden="true" focusable="false" role="img">
<use xlink:href="../../icons.svg#mini--arrow-right" />
</svg>
</h3>
</div>
<div class="flex gap-4 py-2 border-t-[1px] n7-border-gray-01">
<span class="text-sm n7-content-01 font-medium">AUTORI</span>
<span class="text-sm n7-content-02">Rita Mencucci - Emilia Ghelardi - Francesco Celandroni - Costanza Mazzantini - Alessandra Vecchione - Domenico Edoardo - Pellegrini Giampietro - Eleonora Favuzza - Elisa Landucci</span>
</div>
</div>
</article>
<!-- RP 240409 Research card - Changed classes -->
<article class="n7-card{% block classes %}{% if classes %} {{ classes }}{% endif %}{% endblock %}{% if fullClick %} is-card-fullclickable{% endif %}">
<!-- RP 240409 Research card - Changed classes -->
<div class="n7-card__image max-sm:hidden{% if thumbSize %} {{ thumbSize }}{% endif %}
{% if thumbAspectRatio %} {{ thumbAspectRatio }}{% endif %}">
{% if thumb %}
<img
class="{% if img.imgObjectFit %}{{ img.imgObjectFit }}{% else %}object-cover{% endif %} w-full h-full"
alt="{{ img.alt }}"
src="{{ img.path }}"
/>
{% endif %}
</div>
<div class="grid gap-4">
<div class="n7-card__heading flex flex-col-reverse gap-4">
<h3 class="n7-card__title flex items-center gap-6 {{ headingClasses }}">
<a class="grow hover:underline" href="">
{{ heading | safe }}
{% if ctaLink %}<span class="sr-only">: Read more</span>{% endif %}
</a>
{% render '@icon--small', { id: 'mini--arrow-right', classes: 'shrink-0', size: 'w-5 h-5' }, true %}
</h3>
</div>
{% block content %}
{% if 'is-empty' not in excerpt %}
<p class="n7-card__excerpt {{ excerptClasses }}">
{% if excerpt %}{{ excerpt }}{% else %}Neque blandit pellentesque nunc sed amet. Nisl, semper sed aliquam amet proin purus augue et.{% endif %}
</p>
{% endif %}
{% if authors %}
{% render '@authors', { label: 'AUTORI', names: 'Rita Mencucci - Emilia Ghelardi - Francesco Celandroni - Costanza Mazzantini - Alessandra Vecchione - Domenico Edoardo - Pellegrini Giampietro - Eleonora Favuzza - Elisa Landucci'}, true %}
{% endif %}
{% endblock %}
</div>
</article>
{
"categoryText": "Categoria",
"iconSize": "w-24 h-24",
"headingClasses": "text-xl font-medium",
"heading": "Antiseptics and the Ocular Surface: In Vitro Antimicrobial Activity and Effects on Conjunctival and Corneal Epithelial Cells of a New Liposomal Ocular Spray Containing Biosecur Citrus Extract",
"headingIcon": true,
"text": "Testo",
"excerpt": "is-empty",
"excerptClasses": "text-lg",
"ctaIcon": "mini--arrow-small-right",
"minisiteHidden": true,
"classes": "sm:flex flex-1 max-w-[846px] gap-6 p-4 rounded shadow-md hover:shadow-xl",
"fullClick": true,
"thumb": true,
"hasSideThumb": true,
"thumbSize": "flex-shrink-0 h-0 sm:h-52",
"img": {
"path": "/images/vertical-thumb.png",
"alt": "",
"imgObjectFit": "object-scale-down"
},
"authors": "Rita Mencucci - Emilia Ghelardi - Francesco Celandroni - Costanza Mazzantini - Alessandra Vecchione - Domenico Edoardo - Pellegrini Giampietro - Eleonora Favuzza - Elisa Landucci"
}
/* From INCLUSIVE COMPONENT LIBRARY by Heydon Pickering
* https://inclusive-components.design/
* card pattern:
* https://inclusive-components.design/cards/
* Create redundant click event on the whole card, using only
* card heading link
* A click handler on the card's container element
* simply triggers the click method on the link inside it
* Add also a delay in click, in order to detect if the user is selecting the text and not clicking
*/
const cards = document.querySelectorAll('.n7-card.is-card-fullclickable');
Array.prototype.forEach.call(cards, card => {
let down, up, link = card.querySelector('.n7-card__title a');
card.style.cursor = 'pointer';
card.onmousedown = () => down = +new Date();
card.onmouseup = () => {
up = +new Date();
if ((up - down) < 200) {
link.click();
}
}
});
Variable settings:
Add the component in the card with “true” value
Manage image thumb settings: