aladdin-website

How to Add a Card with a Reveal Item

Reveal cards are regular card.html components that show a “More Info” (or similar) button. When the button is clicked, it reveals a list of bullets and then hides the button (one-way reveal).

Quick Start

  1. Wrap your cards in a container with data-reveals
  2. Include website/components/shared/card.html
  3. Provide reveal_text and at least reveal_bullet1
  4. Provide a unique card_id per card

Basic Example

<div class="card__wrapper" data-reveals>
  {% include "website/components/shared/card.html" with
    image="https://aladdin.ie/files/website/images/epay-logo.webp"
    title="ePayments"
    description="Collect money for books, fees, tours and more — all within Aladdin."
    theme="epayments"
    card_id="epayments-reveal"
    reveal_text="More Info"
    reveal_bullet1="Collect credit / debit card ePayments from parents online via Aladdin."
    reveal_bullet2="Collected money is deposited directly to school bank account"
    reveal_bullet3="Flexible collection options such as payment due dates and variable amounts."
  %}
</div>

How It Works

Parameters (Card Reveal)

Provided via the card.html include:

File Locations

Real-World Example

See ui/website/components/home/add-ons.html — it uses reveal cards for each add-on.