{% from "/macros/profile/profile-navigation.html" import profileNavigation %} {% from "/macros/profile/profile-action-button.html" import productActionButton %} {% from "/macros/profile-image.html" import productImageLarge %} {% from "/macros/simple-tooltip.html" import simpleTooltip %} {% macro productHeadCard(app) %} {% set summary = app.summary %} {% set categories = app.categories %} {% set navigation = app.navigation %} {% set leads = app.leads %} {% set actions = app.callToActions %} {% set applicationType = app.config.type %}
{{ productImageLarge(summary.logoSrc, null, summary.productRibbon) }}

{{ summary.title }}

{{ summary.details }}
{% if categories and categories.items and categories.items.length %} {% for category in categories.items %} {{ category.label }} {% endfor %} {% endif %}
{% set smallCTAOptions = { buttonSize: 'small', isAddToCartStyle: true } %} {% set largeCTAOptions = { buttonSize: 'large', isAddToCartStyle: true } %} {% if actions.items.length > 2 %}
{% for action in actions.items %} {{ productActionButton(action, largeCTAOptions, applicationType) }} {% endfor %}
{% for action in actions.items %} {{ productActionButton(action, smallCTAOptions, applicationType) }} {% endfor %}
{% else %} {% for action in actions.items %} {{ productActionButton(action, largeCTAOptions, applicationType) }} {% endfor %} {% endif %}

{{ actions.caption.text | safe }} {{ simpleTooltip(actions.caption.tooltip, "bottom") }}

{{ profileNavigation(navigation.items, actions) }}
{% endmacro %}