1
0
mirror of synced 2025-12-25 02:17:36 -05:00

Random fixes (#19867)

* fix introLinks rendering to show primary button

* fix LearningTrack text overflow issue
This commit is contained in:
Mike Surowiec
2021-06-11 12:15:27 -07:00
committed by GitHub
parent 21e9c06200
commit 3cbc8f67bd
2 changed files with 13 additions and 34 deletions

View File

@@ -33,44 +33,23 @@ export const LandingHero = () => {
dangerouslySetInnerHTML={{ __html: intro }}
/>
{/* idea to abstract the introLinks into something more component-like */}
{/* {introLinks.map((link) => {
{introLinks &&
Object.entries(introLinks).filter(([key, link])=> {
return link && !key.includes('raw')
}).map(([key, link], i) => {
if (!link) {
return null
}
return (
<FullLink
href={link.href}
className={cx(
'btn-mktg btn-large f4 mt-3 mr-3',
link.secondary && 'btn-outline-mktg'
)}
key={link}
href={link}
className={cx('btn-mktg bt-large f4 mt-3 mr-3', i !== 0 && 'btn-outline-mktg')}
>
{t(link.translationKeyLabel)}
{t(key)}
</FullLink>
)
})} */}
{introLinks?.quickstart && (
<FullLink href={introLinks.quickstart} className="btn-mktg btn-large f4 mt-3 mr-3">
{t('quickstart')}
</FullLink>
)}
{introLinks?.reference && (
<FullLink
href={introLinks.reference}
className="btn-mktg btn-outline-mktg btn-large f4 mt-3 mr-3"
>
{t('reference')}
</FullLink>
)}
{introLinks?.overview && (
<FullLink
href={introLinks.overview}
className="btn-mktg btn-outline-mktg btn-large f4 mt-3 mr-3"
>
{t('overview')}
</FullLink>
)}
})}
</div>
{product_video && (