From 4cb06880f2818836a2be01ec63ef040404a9032e Mon Sep 17 00:00:00 2001 From: korgan00 Date: Thu, 12 Nov 2020 10:59:28 +0100 Subject: [PATCH] Updates advocate card (#1101) --- components/advocates/AdvocateCard.vue | 82 ++++++++----------- components/ui/AppCard.vue | 6 +- content/advocates/index/abraham-asfaw.md | 3 +- .../advocates/index/carmen-recio-valcarce.md | 3 +- content/advocates/index/hassi-norlen.md | 2 +- content/advocates/index/holly-cummins.md | 2 +- pages/events/index.vue | 12 ++- 7 files changed, 54 insertions(+), 56 deletions(-) diff --git a/components/advocates/AdvocateCard.vue b/components/advocates/AdvocateCard.vue index e44c8319c..f68bd152f 100644 --- a/components/advocates/AdvocateCard.vue +++ b/components/advocates/AdvocateCard.vue @@ -1,24 +1,21 @@ @@ -47,33 +39,25 @@ export default class AdvocateCard extends Vue { @import '~carbon-components/scss/globals/scss/typography'; .advocate-card { - --component-bg: #{$ui-01}; + margin-bottom: $layout-02; - text-align: center; - border: 1px solid $focus; - background-color: var(--component-bg); - - &__picture { - height: 350px; - background-repeat: no-repeat; - background-size: cover, cover, cover; - background-position: top center; + @include mq($until: large) { + margin-bottom: $layout-01; } - &__copy { - margin: $spacing-05 $spacing-07 $spacing-05; + &__location, &__contact { + @include type-style('body-long-01'); + display: flex; + align-items: center; } - &__name, &__focus-areas-title { - @include type-style('productive-heading-04'); + &__location { + margin-bottom: $spacing-03; } - &__focus-areas-title { - margin-top: $spacing-06; - } - - &__location, &__focus-areas { - @include type-style('body-short-02'); + &__icon { + margin-right: $spacing-03; + fill: currentColor; } } diff --git a/components/ui/AppCard.vue b/components/ui/AppCard.vue index fbe3cc0fa..f9b4328f3 100644 --- a/components/ui/AppCard.vue +++ b/components/ui/AppCard.vue @@ -9,7 +9,7 @@

{{ title }}

-
+
0 } @@ -87,6 +89,7 @@ export default class AppCard extends Vue { flex: 1; display: flex; flex-direction: column; + justify-content: space-between; } &__header { @@ -130,7 +133,6 @@ export default class AppCard extends Vue { &__description { @include type-style('body-long-01'); margin-top: $layout-02; - margin-bottom: $layout-02; } } diff --git a/content/advocates/index/abraham-asfaw.md b/content/advocates/index/abraham-asfaw.md index e2bb73552..5d7697541 100644 --- a/content/advocates/index/abraham-asfaw.md +++ b/content/advocates/index/abraham-asfaw.md @@ -1,8 +1,9 @@ --- name: Abraham Asfaw -image: abraham-asfaw.jpg +image: /images/advocates/abraham-asfaw.jpg location: New York, NY latitude: 40.71 longitude: -74 areas: Tutorials, Circuits +region: North America --- \ No newline at end of file diff --git a/content/advocates/index/carmen-recio-valcarce.md b/content/advocates/index/carmen-recio-valcarce.md index a4f564bee..16ce6dfe2 100644 --- a/content/advocates/index/carmen-recio-valcarce.md +++ b/content/advocates/index/carmen-recio-valcarce.md @@ -1,8 +1,9 @@ --- name: Carmen Recio Valcarce -image: carmen-recio-valcarce.png +image: /images/advocates/carmen-recio-valcarce.png location: Madrid, Spain latitude: 40.41 longitude: -3.7 areas: Community Building, Tutorials, Event Hosting +region: Europe --- \ No newline at end of file diff --git a/content/advocates/index/hassi-norlen.md b/content/advocates/index/hassi-norlen.md index eb9ba9aee..c586619e8 100644 --- a/content/advocates/index/hassi-norlen.md +++ b/content/advocates/index/hassi-norlen.md @@ -1,6 +1,6 @@ --- name: Hassi Norlen -image: hassi-norlen.png +image: /images/advocates/hassi-norlen.png location: Washington D.C. latitude: 38.89 longitude: -77.01 diff --git a/content/advocates/index/holly-cummins.md b/content/advocates/index/holly-cummins.md index 25669e83d..ea7a3599b 100644 --- a/content/advocates/index/holly-cummins.md +++ b/content/advocates/index/holly-cummins.md @@ -1,6 +1,6 @@ --- name: Holly Cummins -image: holly-cummins.png +image: /images/advocates/holly-cummins.png location: Surrey, United Kingdom latitude: 51.31 longitude: -0.55 diff --git a/pages/events/index.vue b/pages/events/index.vue index 25cef0bdc..4407192df 100644 --- a/pages/events/index.vue +++ b/pages/events/index.vue @@ -50,7 +50,9 @@ :image="emptyCard.img" :title="emptyCard.title" > - {{ emptyCard.description }} +
+ {{ emptyCard.description }} +