From 24bbcac97f09be990c809c2fe68c4152ef30e28c Mon Sep 17 00:00:00 2001 From: Schalk Neethling Date: Sun, 28 Jan 2024 01:56:31 +0200 Subject: [PATCH] fix card layout --- src/components/OurInvestors/index.js | 12 ++++++------ src/components/PanelDiscussions/index.js | 12 ++++-------- src/components/cards/BaseCard/index.js | 13 +++++++++++++ src/pages/enterprise-sso/index.js | 6 +++++- 4 files changed, 28 insertions(+), 15 deletions(-) diff --git a/src/components/OurInvestors/index.js b/src/components/OurInvestors/index.js index 8983bc7f..34991319 100644 --- a/src/components/OurInvestors/index.js +++ b/src/components/OurInvestors/index.js @@ -8,24 +8,28 @@ const OurInvestors = () => { { bio: 'OSS Capital is the first and only early-stage VC exclusively dedicated to backing leading COSS (commercial open source) startup founders on a global basis since 2018.', cardImg: 'ossc', + ctaCopy: 'Learn more about OSS Capital', investorName: 'OSS Capital', url: 'https://oss.capital/', }, { bio: 'We support visionary founders across Europe as they build the next generation of B2B software companies.', cardImg: 'nauta', + ctaCopy: 'Learn more about Nauta Capital', investorName: 'Nauta Capital', url: 'https://www.nautacapital.com/', }, { bio: 'Building a transformative business is a hard and lonely challenge. We pride ourselves on providing genuine, long-term support and also knowing when to step back.', cardImg: 'mmc', + ctaCopy: 'Learn more about MMC', investorName: 'MMC', url: 'https://mmc.vc/', }, { bio: 'Telefónica’s initiative designed to scale, invest in startups, and bring innovation everywhere in the world.', cardImg: 'wayra', + ctaCopy: 'Learn more about Wayra', investorName: 'Wayra', url: 'https://www.wayra.com/', }, @@ -44,16 +48,12 @@ const OurInvestors = () => {

{investor.bio}

- {`Learn more about ${investor.investorName}`}
))} diff --git a/src/components/PanelDiscussions/index.js b/src/components/PanelDiscussions/index.js index f669a1db..c7f63c12 100644 --- a/src/components/PanelDiscussions/index.js +++ b/src/components/PanelDiscussions/index.js @@ -92,7 +92,10 @@ const PanelDiscussions = () => { className="panel-dicsussions-list-entry" key={panelDiscussion.dateTime} > - +

{panelDiscussion.title}

  • {speaker}
  • ))} - - Watch On YouTube -
    ))} diff --git a/src/components/cards/BaseCard/index.js b/src/components/cards/BaseCard/index.js index b7dbcceb..7c80a5a8 100644 --- a/src/components/cards/BaseCard/index.js +++ b/src/components/cards/BaseCard/index.js @@ -8,7 +8,11 @@ const BaseCard = ({ children, cardImage, centered, + ctaCopy, + ctaURL, height = '250', + showCTA = true, + targetNewWindow = false, width = '250', }) => { return ( @@ -19,6 +23,15 @@ const BaseCard = ({ )} {children} + {showCTA && ( + + {ctaCopy} + + )} ); }; diff --git a/src/pages/enterprise-sso/index.js b/src/pages/enterprise-sso/index.js index 0426ece9..224fb771 100644 --- a/src/pages/enterprise-sso/index.js +++ b/src/pages/enterprise-sso/index.js @@ -86,7 +86,11 @@ const EnterpriseSSO = () => {