Skip to content

Commit

Permalink
Add ecosystem submenu with partners button to the menu
Browse files Browse the repository at this point in the history
  • Loading branch information
Breno committed Nov 8, 2024
1 parent cd3a1ac commit e2b7dbb
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 9 deletions.
23 changes: 15 additions & 8 deletions src/components/HeaderNavbar/Resources/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ import {
import { hideOnMobile, longLinkList } from '../styles.module.less';
import Carousel from '../../Carousel';
import SuccessIcon from '../../../svgs/success.svg';
import { listen, read } from './items';
import { listen, read, partners } from './items';
import ResourcesLink from './Link';

const iconSize = 16;
Expand Down Expand Up @@ -73,13 +73,20 @@ const HeaderNavbarResources = ({ active, setActive }) => {
</MenuAccordionButton>
<MenuAccordionContent>
<Card>
<CardItem
className={clsx(hideOnMobile, longLinkList)}
title="CASE STUDIES"
items={caseStudiesItems}
onlyContent
active={active}
/>
<ColumnWithTwoRows>
<CardItem
title="ECOSYSTEM"
items={partners}
onlyContent
/>
<CardItem
className={clsx(hideOnMobile, longLinkList)}
title="CASE STUDIES"
items={caseStudiesItems}
onlyContent
active={active}
/>
</ColumnWithTwoRows>
<ColumnWithTwoRows>
<CardItem title="READ" items={read} onlyContent />
<CardItem title="LISTEN" items={listen} onlyContent />
Expand Down
14 changes: 13 additions & 1 deletion src/components/HeaderNavbar/Resources/items.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ import { StaticImage } from 'gatsby-plugin-image';
import * as React from 'react';
import { statusPageUrl, webinarsUrl } from '../../../../shared';
import DocIcon from '../../../svgs/file.svg';
import SuccessIcon from '../../../svgs/success.svg';

const iconSize = 18;
const iconSize = 16;

export const read = [
{
Expand Down Expand Up @@ -71,3 +72,14 @@ export const tours = [
to: webinarsUrl,
},
];

export const partners = [
{
name: 'PARTNERS',
to: '/partners/',
description: 'Browse our directory of partners',
Image: () => (
<SuccessIcon color="#5072EB" width={iconSize} height={iconSize} />
),
},
];

0 comments on commit e2b7dbb

Please sign in to comment.