32 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
			
		
		
	
	
			32 lines
		
	
	
		
			1.4 KiB
		
	
	
	
		
			HTML
		
	
	
	
	
	
{% set title = title | default(value="Call to Action") %}
 | 
						|
{% set description = description | default(value="") %}
 | 
						|
{% set button_text = button_text | default(value="Learn More") %}
 | 
						|
{% set button_link = button_link | default(value="#") %}
 | 
						|
{% set bg_color = bg_color | default(value="bg-indigo-100") %}
 | 
						|
{% set text_color = text_color | default(value="text-indigo-800") %}
 | 
						|
{% set button_color = button_color | default(value="bg-indigo-600") %}
 | 
						|
{% set button_text_color = button_text_color | default(value="text-white") %}
 | 
						|
 | 
						|
<div class="relative {{ bg_color }} {{ text_color }} rounded-lg shadow-md overflow-hidden my-8">
 | 
						|
  <div class="px-6 py-8 md:p-10 md:flex md:items-center md:justify-between">
 | 
						|
    <div class="md:flex-1">
 | 
						|
      <h3 class="text-2xl font-bold">{{ title }}</h3>
 | 
						|
      {% if description %}
 | 
						|
      <p class="mt-2 text-base">{{ description }}</p>
 | 
						|
      {% endif %}
 | 
						|
      {% if caller %}
 | 
						|
        <div class="mt-4">
 | 
						|
          {{ caller() }}
 | 
						|
        </div>
 | 
						|
      {% endif %}
 | 
						|
    </div>
 | 
						|
    {% if button_text and button_link %}
 | 
						|
    <div class="mt-6 md:mt-0 md:ml-10 md:flex-shrink-0">
 | 
						|
      <a href="{{ button_link }}" class="block w-full md:w-auto rounded-md px-5 py-3 {{ button_color }} {{ button_text_color }} text-base font-medium text-center shadow hover:opacity-90 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-indigo-500">
 | 
						|
        {{ button_text }}
 | 
						|
      </a>
 | 
						|
    </div>
 | 
						|
    {% endif %}
 | 
						|
  </div>
 | 
						|
</div>
 |