From a0279d2e89899dd3a7b4704f28903d17f26ab129 Mon Sep 17 00:00:00 2001 From: David Celaya-Gonzalez <2702851+djcelaya@users.noreply.github.com> Date: Thu, 12 Mar 2026 15:20:31 -0700 Subject: [PATCH 1/6] Initial SDC conversion --- .../components/az-card/az-card.component.yml | 47 +++++++++++++ .../az_card/components/az-card/az-card.twig | 49 +++++++++++++ .../az_card/templates/az-card.html.twig | 69 +++++-------------- 3 files changed, 115 insertions(+), 50 deletions(-) create mode 100644 modules/custom/az_card/components/az-card/az-card.component.yml create mode 100644 modules/custom/az_card/components/az-card/az-card.twig diff --git a/modules/custom/az_card/components/az-card/az-card.component.yml b/modules/custom/az_card/components/az-card/az-card.component.yml new file mode 100644 index 0000000000..4f739e3336 --- /dev/null +++ b/modules/custom/az_card/components/az-card/az-card.component.yml @@ -0,0 +1,47 @@ +$schema: https://git.drupalcode.org/project/drupal/-/raw/11.x/core/assets/schemas/v1/metadata.schema.json +name: AZ Card +status: experimental +props: + type: object + properties: + media: + type: + - array + - 'null' + title: + type: + - string + - 'null' + body: + type: + - array + - 'null' + link: + type: + - array + - 'null' + link_url: + type: + - string + - object + - 'null' + title_style: + type: string + title_alignment: + type: string + title_level: + type: string + title_display: + type: string + has_media: + type: boolean + has_link: + type: boolean + has_body: + type: boolean + link_is_visually_hidden: + type: boolean + link_is_stretched: + type: boolean + link_label: + type: string diff --git a/modules/custom/az_card/components/az-card/az-card.twig b/modules/custom/az_card/components/az-card/az-card.twig new file mode 100644 index 0000000000..10e3a4f6a7 --- /dev/null +++ b/modules/custom/az_card/components/az-card/az-card.twig @@ -0,0 +1,49 @@ +