Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update header and footer #96

Merged
merged 3 commits into from
Feb 16, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
add an integrations column to header and make header data extensible
  • Loading branch information
winkerVSbecks committed Feb 7, 2024
commit 78c81bf8ea0d78d19e2fc89c46a52445377a23e0
103 changes: 59 additions & 44 deletions src/Footer/data.tsx
Original file line number Diff line number Diff line change
@@ -1,65 +1,77 @@
import React from 'react';
import { FooterColumn, FooterSocialItem, HomeItem } from './types';
import { FooterProps } from './Footer';

const FakeLinkWrapper = (props: any) => (
// eslint-disable-next-line jsx-a11y/anchor-has-content
<a data-fake-link-wrapper="true" {...props} />
);

export const footerColumns: FooterColumn[] = [
export const footerColumns: FooterProps['columns'] = [
{
title: 'Product',
links: [
{ title: 'Pricing', href: '/pricing', LinkWrapper: FakeLinkWrapper },
{ title: 'About', href: '/company/about', LinkWrapper: FakeLinkWrapper },
{ title: 'Jobs', href: '/company/careers', LinkWrapper: FakeLinkWrapper },
{ title: 'Pricing', href: '/pricing' },
{ title: 'About', href: '/company/about' },
{ title: 'Jobs', href: '/company/careers' },
{ title: 'Terms of Service', href: '/docs/terms-of-service' },
{ title: 'Privacy', href: '/docs/privacy-policy' },
{ title: 'Status', href: 'https://status.chromatic.com/' },
{ title: 'Security • SOC 2', href: '/security' },
{ title: 'Contact Sales', href: '/sales' },
],
},
{
title: 'Features',
links: [
{ title: 'UI Tests', href: '/features/test' },
{
title: 'Terms of Service',
href: '/docs/terms-of-service',
LinkWrapper: FakeLinkWrapper,
title: 'Visual test',
href: '/features/visual-test',
},
{
title: 'Privacy',
href: '/docs/privacy-policy',
LinkWrapper: FakeLinkWrapper,
title: 'Interaction test',
href: '/features/interaction-test',
},
{ title: 'TurboSnap', href: '/features/turbosnap' },
{ title: 'UI Review', href: '/features/review' },
{ title: 'Publish', href: '/features/publish' },
{ title: 'Figma plugin', href: '/features/figma-plugin' },
{
title: 'Status',
href: 'http://status.chromatic.com/',
LinkWrapper: FakeLinkWrapper,
title: 'Storybook',
href: '/storybook',
},
{
title: 'Security • SOC 2',
href: '/docs/security',
LinkWrapper: FakeLinkWrapper,
title: 'Playwright',
href: '/playwright',
},
{
title: 'Cypress',
href: '/cypress',
},
{ title: 'Contact Sales', href: '/sales', LinkWrapper: FakeLinkWrapper },
],
},
{
title: 'Features',
links: [
{ title: 'UI Tests', href: '/features/test' },
{ title: 'UI Review', href: '/features/publish' },
{ title: 'Document', href: '/features/document' },
{ title: 'Visual test', href: '/features/test' },
{ title: 'Interaction test', href: '/docs/interactions' },
{ title: 'TurboSnap', href: '/docs/turbosnap' },
{ title: 'Figma plugin', href: '/features/figma-plugin' },
],
},
{
title: 'Customers',
links: [
{ title: 'Made for Storybook', href: '/solutions/storybook' },
{ title: 'Frontend teams', href: '/solutions/frontend' },
{ title: 'Design systems', href: '/solutions/design-systems' },
{ title: 'Digital agencies', href: '/solutions/agencies' },
{
title: 'Frontend teams',
href: '/solutions/frontend',
},
{
title: 'Design systems',
href: '/solutions/design-systems',
},
{
title: 'Digital agencies',
href: '/solutions/agencies',
},
{
title: 'Netlify',
href: '/customers/netlify',
},
{
title: 'Monday.com',
href: '/customers/monday',
},
{ title: 'Collective.work', href: '/customers/collective' },
{
title: 'Collective.work',
href: '/customers/collective',
},
],
},
{
Expand Down Expand Up @@ -101,17 +113,20 @@ export const footerColumns: FooterColumn[] = [
},
];

export const footerSocialLinks: FooterSocialItem[] = [
export const footerSocialLinks: FooterProps['socialLinks'] = [
{ title: 'github', icon: 'github', href: 'https://github.com/chromaui/' },
{ title: 'twitter', icon: 'twitter', href: 'https://twitter.com/chromaui' },
{
title: 'twitter',
icon: 'twitter',
href: 'https://twitter.com/chromaticcom',
},
{
title: 'youtube',
icon: 'youtube',
href: 'https://youtube.com/@chromaticui',
},
];

export const homeLink: HomeItem = {
export const homeLink: FooterProps['homeLink'] = {
href: '/',
LinkWrapper: FakeLinkWrapper,
};
2 changes: 1 addition & 1 deletion src/Header/NavDesktopContent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ const Column = styled.div<{ bg: keyof typeof color; index: number }>`
`;

const Separator = styled.div<{ index: number }>`
padding-top: ${({ index }) => (index > 0 ? spacing[5] : spacing[3])};
padding-top: ${spacing[3]};
padding-left: ${spacing[3]};
padding-right: ${spacing[3]};
padding-bottom: ${spacing[2]};
Expand Down
Loading
Loading