diff --git a/modules/custom/az_card/az_card.libraries.yml b/modules/custom/az_card/az_card.libraries.yml index ab894c6f77..f93c823f41 100644 --- a/modules/custom/az_card/az_card.libraries.yml +++ b/modules/custom/az_card/az_card.libraries.yml @@ -5,12 +5,12 @@ az_card: az_card_no_follow: css: component: - css/az-card-no-follow.css: {} + components/az-card/az-card-no-follow.css: {} js: - js/az-card-no-follow.js: {} + components/az-card/az-card-no-follow.js: {} dependencies: - core/drupal.nodelist.foreach az_card_title_hover: css: component: - css/az-card-title-hover.css: {} + components/az-card/az-card-title-hover.css: {} diff --git a/modules/custom/az_card/css/az-card-no-follow.css b/modules/custom/az_card/components/az-card/az-card-no-follow.css similarity index 98% rename from modules/custom/az_card/css/az-card-no-follow.css rename to modules/custom/az_card/components/az-card/az-card-no-follow.css index 3fd8f43193..8bf832d4d8 100644 --- a/modules/custom/az_card/css/az-card-no-follow.css +++ b/modules/custom/az_card/components/az-card/az-card-no-follow.css @@ -2,4 +2,4 @@ .az-card-no-follow, .az-card-no-follow.btn:not(:disabled):not(.disabled) { cursor: not-allowed; -} +} \ No newline at end of file diff --git a/modules/custom/az_card/js/az-card-no-follow.js b/modules/custom/az_card/components/az-card/az-card-no-follow.js similarity index 100% rename from modules/custom/az_card/js/az-card-no-follow.js rename to modules/custom/az_card/components/az-card/az-card-no-follow.js diff --git a/modules/custom/az_card/css/az-card-title-hover.css b/modules/custom/az_card/components/az-card/az-card-title-hover.css similarity index 99% rename from modules/custom/az_card/css/az-card-title-hover.css rename to modules/custom/az_card/components/az-card/az-card-title-hover.css index c7ab534c92..e91d76e2d6 100644 --- a/modules/custom/az_card/css/az-card-title-hover.css +++ b/modules/custom/az_card/components/az-card/az-card-title-hover.css @@ -15,4 +15,4 @@ .card-body .visually-hidden { display: block; position: static !important; -} +} \ No newline at end of file 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 @@ +