[New] - Advertising Card - Canopy / Messaging Framework #1212
Replies: 7 comments 11 replies
-
@AlexandruHoisan thanks for submitting this discussion 👍 Here are my notes: New lg-card-hero-image component:
I personally would use the Promo card and modify that instead of creating a new component. @alexcanning what do you think? The New lg-card-hero-brand-icon component could also be a promo card with an input of I don’t think it matters if the image is an For the other suggestions:
@alexcanning any opinion on these last two points? |
Beta Was this translation helpful? Give feedback.
-
@elenagarrone If we do use the existing Promo Card, would this be the approach you had in mind? We would maybe add a class of 'lg-advertising-card' based on a boolean property and just modify the other classes when inside this 'lg-advertising-card' parent class? Doing it like this we would avoid having any breaking changes, I think :) |
Beta Was this translation helpful? Give feedback.
-
The naming and the organisation in the library need a bit of work. I've been talking to Lauren and Tom about how they planned to name the component and where it should sit in the library. We think it should live in Patterns - https://octopus.do/isoi50rn4/p/u55sf6xhg4/content |
Beta Was this translation helpful? Give feedback.
-
Thanks for the feedback @elenagarrone and @alexcanning . I’m more inclined to go with the general approach outlined by @AlexandruHoisan, rather than update the existing Promo Cards component, because;
Let me know your thoughts, happy to discuss on a call if easier :) |
Beta Was this translation helpful? Give feedback.
-
Just had a chat with @alexcanning and we agree on the cards approach @owensgit and @AlexandruHoisan outlined 👍 The cards will be shown as part of the Patterns section within Storybook and their name should be generic. Things that we need:
Similar to what @AlexandruHoisan proposed in the first post, the API could look something like this: Variant with image at the top:
Variant with image at the bottom:
|
Beta Was this translation helpful? Give feedback.
-
The new promotional cards are available as part of v10.13.0. There are still a couple of things that need to be done:
|
Beta Was this translation helpful? Give feedback.
-
We've been working on creating a card group component that delivers the capability of cards having the same height in #1289. This is now available as part of v11.6.0. Left to do:
|
Beta Was this translation helpful? Give feedback.
-
Type of request
New or Modification - To be discussed
Component, pattern, template, helper or foundation?
New example for the Card component.
Potentially new components for the Card component.
Nature of request
As part of the new Messaging Framework work that our team is looking at, we would need a Advertising card to be added to Canopy to allow to be easily used throughout all the projects, to fit for purpose.
The first Phase is the 'General Advertising' cards and to see how they look, check out the Design link at the section 'General Advertising'.
The second Phase would be the 'Tailored Advertisings' cards and to see how they look, check out the Design link at the section 'Tailored Advertising' (Ignore the banner component as that will come later).
Designs: https://www.figma.com/file/iYCsbVcJuJxIDkruYvq2i2/SSOPT_Messaging-framework?node-id=459%3A127728&mode=dev
Documentation Confluence Page: https://landg.atlassian.net/wiki/spaces/CAN/pages/5962268957/Promo+cards+documentation
For the moment, those will be used alongside with the already existing 'Promo Cards'(because they are used also by other apps) but will take their place eventually.
We intend to build them as Examples of the already existing Card component and have 2 potential approaches in mind:
New lg-card-hero-image component
- By default just places an image at the top of the card in a normal img tag, so it can be used just like that.
- With variant="advertising" :
- Handles layout on mobile, tablet, desktop as per advertising designs
- Sets the background image on a div and centres image inside the div using background-size: cover and background-position: center
- Consider using role="img" and aria-label for a11y
New lg-card-hero-brand-icon component
- As per lg-card-hero-image above but for brand icons
Suggested API:
General Advertising example with API:
The first approach seems more clean and we would standardise the usage of images or Icons on the cards, but up for discussion :)
Other suggestions:
Create a 'roundedCornerSize' directive:
Add new options to lgVariant directive - "tailored-green", "tailored-yellow", etc. (will be needed for the Tailored Advertising)
PS: We did think of using the existing Promo cards and maybe add variants to that, but there are quite a few differences(image sizes, layout overlapping, font styles and more) that we would have to take into account and felt like we would constrain ourselves going forward with whatever might be we want to implement in the future. Also I was not sure it was worth it as they might get decommission at some point in the future, when we swap them with those other cards.
Beta Was this translation helpful? Give feedback.
All reactions