From d34fee3701a17a90a22930ad19264ea5904abe90 Mon Sep 17 00:00:00 2001 From: Antoine M Date: Mon, 21 Oct 2024 16:56:30 +0200 Subject: [PATCH] introducing the card --- .../artisans/card-artisans.css | 58 +++++++++++++++++ .../artisans/card-artisans.php | 65 +++++++++++++++++++ 2 files changed, 123 insertions(+) create mode 100644 template-components/artisans/card-artisans.css create mode 100644 template-components/artisans/card-artisans.php diff --git a/template-components/artisans/card-artisans.css b/template-components/artisans/card-artisans.css new file mode 100644 index 0000000..1b24d32 --- /dev/null +++ b/template-components/artisans/card-artisans.css @@ -0,0 +1,58 @@ +.card-artisans { + @apply bg-white rounded-lg shadowed; + &__thumbnail { + @apply w-full h-32 lg:h-48 object-cover rounded-t-xl; + } + &__inner { + @apply p-6; + } + &__title { + @apply !text-2xl font-bold text-patrimoine-sante-securite !my-0; + } + &__team-members { + @apply font-bold !my-0; + } + &__taxonomy-tags { + @apply flex flex-wrap gap-2 mt-4; + .taxonomy-tag { + @apply bg-patrimoine-sante-securite-light text-patrimoine-sante-securite rounded-lg text-sm px-3 py-1; + } + } + + &__adresse { + @apply font-normal underline-offset-4 inline-flex !mt-6 w-full; + &:before { + @apply inline-flex mr-3 h-6 w-6 bg-center bg-contain bg-no-repeat; + content: ''; + background-image: url('../resources/img/Homegrade_repertoire-adresse.svg'); + } + } + &__phone { + @apply font-semibold underline-offset-4 inline-flex w-full; + &:before { + @apply inline-flex mr-3 h-6 w-6 bg-center bg-contain bg-no-repeat; + content: ''; + background-image: url('../resources/img/Homegrade_repertoire-telephone.svg'); + } + } + &__email { + @apply text-primary underline font-semibold underline-offset-4 inline-flex w-full; + &:before { + @apply inline-flex mr-3 h-6 w-6 bg-center bg-contain bg-no-repeat; + content: ''; + background-image: url('../resources/img/Homegrade_repertoire-mail.svg'); + } + } + &__website { + @apply text-primary underline font-semibold underline-offset-4 inline-flex w-full; + &:before { + @apply inline-flex mr-3 h-6 w-6 bg-center bg-contain bg-no-repeat; + content: ''; + background-image: url('../resources/img/Homegrade_repertoire-site.svg'); + } + } + + .cta--read-more { + @apply mt-6; + } +} diff --git a/template-components/artisans/card-artisans.php b/template-components/artisans/card-artisans.php new file mode 100644 index 0000000..c4ead73 --- /dev/null +++ b/template-components/artisans/card-artisans.php @@ -0,0 +1,65 @@ + + + +
+ +
+ +

+ + +

+ $member) : ?> + + +

+ + +
+ $term) : ?> + name; ?> + +
+ + + +

+ + + + + + + + + + + + + + + + +   + + +
\ No newline at end of file