Card Product Horizontal: No Button

Interaction

The sds-scaleInteraction defines the background scale on interaction with the component.

The data-sds-move-with-shadow attribute defines the animation of the child element sticking to the scaled shape's edge.

Should the component not be interacted with, remove sds-scaleInteraction and replace it with sds-boxShadowActive. Remove the data attribute on any children that have it.

The title link uses stretched-link to open the product page from the card surface. Set titleHref for that destination. When present, the button remains a separate action above the stretched link; set buttonHref and buttonText for it. Set hideButton to true for a card with only the title action.

Variant classes

Classes for various variants include:

  • -cardProductRowSmall
  • -cardProductRow
<article class="sds-cardProduct sds-box  sds-scaleInteraction -boxInsetMd -cardProductRow">
    <div class="sds-cardProduct__inner sds-stackXl">
        <div class="sds-cardProduct__mainContent">

            <div class="sds-cardProduct__img text-center">
                <img src="https://sds.apart.lu/media/illustrations/svg750x560/hero/sdsillu-unlockofflinecedies.svg" alt="" class="img-fluid">
            </div>
            <div class="sds-cardProduct__text sds-stackSm d-lg-flex flex-lg-column justify-content-lg-center flex-grow-1">
                <div class="sds-cardProduct__header">
                    <div class="sds-metaColor sds-textHelperSmall">La classique</div>

                    <ul class="sds-cardProduct__headerBtnGroup sds-btnGroup -btnGroupWrap justify-content-end">
                        <li>
                            <span class="sds-badge badge -badgeHighlight -badgeMuted">

                                badge

                            </span>
                        </li>
                    </ul>

                </div>
                <div class="sds-cardProduct__textContent sds-stackLg">
                    <div class="sds-stackXs">
                        <h3 class="h3">
                            <a href="#card-action" class="stretched-link">Prêt personnel</a>
                        </h3>
                        <p>Empruntez au meilleur taux pour financer vos dépenses importantes</p>
                    </div>

                </div>
            </div>

        </div>

    </div>
</article>
{% extends "@card-product-frame" %}
{% block header %}
	<div class="{{ namespace }}cardProduct__img text-center">
		<img src="{{ img }}" alt="" class="img-fluid">
	</div>
	<div class="{{ namespace }}cardProduct__text {{ namespace }}stackSm d-lg-flex flex-lg-column justify-content-lg-center flex-grow-1">
		<div class="{{ namespace }}cardProduct__header">
			<div class="{{ namespace }}metaColor {{ namespace }}textHelperSmall">{{ meta }}</div>
			{% if badge %}
			<ul class="{{ namespace }}cardProduct__headerBtnGroup {{ namespace }}btnGroup -btnGroupWrap justify-content-end">
				<li>
					{% render "@badge--highlight-muted" %}
				</li>
			</ul>
			{% endif %}
		</div>
		<div class="{{ namespace }}cardProduct__textContent {{ namespace }}stackLg">
			<div class="{{ namespace }}stackXs">
				<h3 class="h3">
					<a href="{{ titleHref or '#!' }}" class="stretched-link">{{ title }}</a>
				</h3>
				<p>{{ text }}</p>
			</div>
			{% if not hideButton %}
				<div class="{{ namespace }}aboveClickArea">
					{% render "@btn-secondary--icon-right", {
						eltType: "a",
						href: buttonHref or "#!",
						text: buttonText or "{Label}",
						icon: "icon-arrownext"
					}, true %}
				</div>
			{% endif %}
		</div>
	</div>
{% endblock %}
{% block body %}
{% endblock %}