From b1f20dcd7dbcd977393503e8d4bd30c50cbe4d86 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pablo=20Arag=C3=B3n?= Date: Wed, 17 Jan 2024 08:55:10 +0100 Subject: [PATCH] 3206 eventcard limit description lengths (#3484) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * feat(#3206): change mock data Signed-off-by: Pablo Aragón * feat(#3206): truncate EventsCard description Signed-off-by: Pablo Aragón * feat(#3206): UICard content sticked to the bottom, EventsCar description to the top Signed-off-by: Pablo Aragón * feat(#3206): toggle description into UiCard Signed-off-by: Pablo Aragón * fix(#3206): refactor description limited by char length Signed-off-by: Pablo Aragón * fix: card ctas inline * fix(ui-card): remove extra spacing after header * chore: remove unnecessary line --------- Signed-off-by: Pablo Aragón Co-authored-by: Eddybrando Vásquez --- components/Events/EventsCard.vue | 13 +- components/Ui/DataTable/UiDataTable.vue | 4 +- components/Ui/UiCard.vue | 114 +++++++++++++++--- .../events/upcoming-community-events.json | 2 +- pages/events/fall-fest.vue | 5 +- pages/events/index.vue | 9 +- pages/events/seminar-series.vue | 20 +-- pages/events/summer-school-2022.vue | 5 +- pages/events/summer-school-2023.vue | 5 +- utils/event-schema-org.ts | 2 +- 10 files changed, 125 insertions(+), 54 deletions(-) diff --git a/components/Events/EventsCard.vue b/components/Events/EventsCard.vue index d82e8c15a1..e734e7627a 100644 --- a/components/Events/EventsCard.vue +++ b/components/Events/EventsCard.vue @@ -10,10 +10,8 @@ :segment="segment" :vertical-layout="verticalLayout" :alt-text="altText" + :description="description" > -
- -
@@ -46,12 +44,13 @@ interface Props { types?: string[]; title: string; image: string; + description?: string; altText?: string; institution?: string; location?: string; date?: string; time?: string | null; - to: string; + to?: string; ctaLabel?: string; segment?: CtaClickedEventProp | undefined; verticalLayout?: boolean; @@ -68,6 +67,8 @@ withDefaults(defineProps(), { segment: undefined, time: undefined, verticalLayout: false, + description: undefined, + to: "", regions: () => [], }); @@ -76,10 +77,6 @@ withDefaults(defineProps(), { @use "~/assets/scss/carbon.scss"; .events-card { - &__description { - margin-bottom: carbon.$spacing-06; - } - &__detail { display: flex; align-items: center; diff --git a/components/Ui/DataTable/UiDataTable.vue b/components/Ui/DataTable/UiDataTable.vue index d367eb4e28..45b29dfe53 100644 --- a/components/Ui/DataTable/UiDataTable.vue +++ b/components/Ui/DataTable/UiDataTable.vue @@ -16,14 +16,14 @@