{# LIBRARIES #}
{{ attach_library('ui_patterns/intro.intro_lib') }}

{# VARIABLES #}
{% set intro_classes = intro_classes|default('') %}
{% set button_classes = button_classes|default('btn-outline-custom-color fw-bold border-2') %}
{% set attributes = attributes|default(create_attribute()) %}

{% set classes = [
  'sf-intro',
  intro_classes,
] %}

{# TEMPLATE #}
<div {{ attributes.addClass(classes) }}>
  <div class="mb-3">
    {{ content|raw }}
  </div>
  {% if link %}
    {% include '@atoms/tm-links/standard/standard.twig' with {
      'text': link['title'],
      'url': link['url'],
      'attributes': link['attributes'],
      'class': 'btn mb-0 ' ~ button_classes,
    } only %}
  {% endif %}
</div>
