Skip to content

Commit

Permalink
Merge pull request #69 from storybookjs/add-community-links
Browse files Browse the repository at this point in the history
Add conference and jobs board to header and footer
  • Loading branch information
winkerVSbecks authored Aug 22, 2023
2 parents 36f1273 + 3a59477 commit 91a3da1
Show file tree
Hide file tree
Showing 5 changed files with 48 additions and 1 deletion.
6 changes: 6 additions & 0 deletions src/components/Footer/Footer.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ const links = {
getInvolved: { url: '/community', linkWrapper: FakeGatsbyLink },
blog: { url: 'https://storybook.js.org/blog' },
hiring: { url: 'https://www.chromatic.com/company/jobs' },
jobsBoard: {
url: 'https://chromatic-ui.notion.site/Storybook-Jobs-Board-950e001e4a114a39980a5b09c3a3b3e1?pvs=4',
},
conferenceBoard: {
url: 'https://chromatic-ui.notion.site/Give-a-conference-talk-about-Storybook-e8d8e78d4d0a448a811a8d927194c527?pvs=4',
},
};

const Template = (args) => (
Expand Down
3 changes: 2 additions & 1 deletion src/components/Footer/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ const footerGroups = (links: Links) => ({
{ label: 'Integrations', link: links.integrations },
{ label: 'Get involved', link: links.getInvolved },
{ label: 'Blog', link: links.blog },
{ label: "We're hiring", link: links.hiring },
{ label: 'Find jobs', link: links.jobsBoard },
{ label: 'Speak at conferences', link: links.conferenceBoard },
],
showcase: [
{ label: 'Explore', link: links.showcase },
Expand Down
6 changes: 6 additions & 0 deletions src/components/Nav/Nav.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ const navLinks = {
getInvolved: { url: '/community', linkWrapper: FakeGatsbyLink },
blog: { url: 'https://storybook.js.org/blog' },
hiring: { url: 'https://www.chromatic.com/company/jobs' },
jobsBoard: {
url: 'https://chromatic-ui.notion.site/Storybook-Jobs-Board-950e001e4a114a39980a5b09c3a3b3e1?pvs=4',
},
conferenceBoard: {
url: 'https://chromatic-ui.notion.site/Give-a-conference-talk-about-Storybook-e8d8e78d4d0a448a811a8d927194c527?pvs=4',
},
};

const Template = (args) => (
Expand Down
26 changes: 26 additions & 0 deletions src/components/Nav/menus.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,22 @@ export const Community = ({ active, inverse, monochrome, navLinks }: Menu) => (
>
Blog and updates
</NavMenuItem>
<NavMenuItem
icon={<ColoredIcon icon="bookmarkhollow" color="seafoam" />}
description="Browse job board for roles that use Storybook"
href={navLinks.jobsBoard.url}
LinkWrapper={navLinks.jobsBoard.linkWrapper}
>
Find jobs
</NavMenuItem>
<NavMenuItem
icon={<ColoredIcon icon="globe" color="secondary" />}
description="Submit talks to conferences about Storybook"
href={navLinks.conferenceBoard.url}
LinkWrapper={navLinks.conferenceBoard.linkWrapper}
>
Speak at conferences
</NavMenuItem>
</NavMenu>
);

Expand Down Expand Up @@ -131,6 +147,16 @@ export const mobileGroups = (links: Links) => [
link: links.blog,
icon: <ColoredIcon icon="rss" color="purple" />,
},
{
label: 'Jobs board',
link: links.jobsBoard,
icon: <ColoredIcon icon="bookmarkhollow" color="seafoam" />,
},
{
label: 'Conference board',
link: links.conferenceBoard,
icon: <ColoredIcon icon="globe" color="secondary" />,
},
],
},
{
Expand Down
8 changes: 8 additions & 0 deletions src/components/links-context.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@ export interface Links {
hiring: LinkItem;
enterprise: LinkItem;
chromatic: LinkItem;
jobsBoard: LinkItem;
conferenceBoard: LinkItem;
}

export const defaultLinks = {
Expand All @@ -41,6 +43,12 @@ export const defaultLinks = {
getInvolved: { url: 'https://storybook.js.org/community' },
blog: { url: 'https://storybook.js.org/blog' },
hiring: { url: 'https://www.chromatic.com/company/jobs' },
jobsBoard: {
url: 'https://chromatic-ui.notion.site/Storybook-Jobs-Board-950e001e4a114a39980a5b09c3a3b3e1?pvs=4',
},
conferenceBoard: {
url: 'https://chromatic-ui.notion.site/Give-a-conference-talk-about-Storybook-e8d8e78d4d0a448a811a8d927194c527?pvs=4',
},
enterprise: {
url: 'https://www.chromatic.com/sales?utm_source=storybook_website&utm_medium=link&utm_campaign=storybook',
},
Expand Down

0 comments on commit 91a3da1

Please sign in to comment.