-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #82 from balancer/feat/make-navbar-shared
feat: make navbar/footer shared
- Loading branch information
Showing
54 changed files
with
1,960 additions
and
953 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
20 changes: 20 additions & 0 deletions
20
apps/beets-frontend-v3/lib/components/footer/FooterContainer.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { BeetsLogoType } from '../imgs/BeetsLogoType' | ||
import { useNavData } from '../navs/useNavData' | ||
import { useFooterData } from './useFooterData' | ||
import { Footer } from '@repo/lib/shared/components/navs/Footer' | ||
|
||
export function FooterContainer() { | ||
const { linkSections, legalLinks } = useFooterData() | ||
const { getSocialLinks } = useNavData() | ||
|
||
return ( | ||
<Footer | ||
linkSections={linkSections} | ||
socialLinks={getSocialLinks()} | ||
legalLinks={legalLinks} | ||
title="AMMs made easy" | ||
subTitle="Beets is a battle-tested toolkit for true AMM experimentation and innovation." | ||
logoType={<BeetsLogoType />} | ||
/> | ||
) | ||
} |
49 changes: 49 additions & 0 deletions
49
apps/beets-frontend-v3/lib/components/footer/useFooterData.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
import { LinkSection } from '@repo/lib/shared/components/navs/footer.types' | ||
|
||
export function useFooterData() { | ||
const linkSections: LinkSection[] = [ | ||
{ | ||
title: 'Build on Beets', | ||
links: [ | ||
{ label: 'Home', href: '/' }, | ||
|
||
{ label: 'Docs', href: 'https://docs.beets.fi', isExternal: true }, | ||
{ | ||
label: 'Prototype on v3', | ||
href: 'https://github.com/balancer/scaffold-balancer-v3', | ||
isExternal: true, | ||
}, | ||
], | ||
}, | ||
{ | ||
title: 'Use Beets protocol', | ||
links: [ | ||
{ label: 'Explore pools', href: '/pools' }, | ||
{ label: 'Swap tokens', href: '/swap' }, | ||
{ label: 'View portfolio', href: '/portfolio' }, | ||
{ label: 'Get maBEETS', href: 'https://beets.fi/mabeets', isExternal: true }, | ||
], | ||
}, | ||
{ | ||
title: 'Ecosystem', | ||
links: [ | ||
{ label: 'Governance', href: 'https://snapshot.org/#/beets.eth', isExternal: true }, | ||
{ | ||
label: 'Bug bounties', | ||
href: 'https://immunefi.com/bug-bounty/balancer', | ||
isExternal: true, | ||
}, | ||
{ label: 'Analytics', href: 'https://beets.defilytica.com', isExternal: true }, | ||
{ | ||
label: 'Brand assets', | ||
href: 'https://brand.beets.fi/', | ||
isExternal: true, | ||
}, | ||
], | ||
}, | ||
] | ||
|
||
const legalLinks = [{ label: 'Terms of use', href: '/terms-of-use' }] | ||
|
||
return { linkSections, legalLinks } | ||
} |
Oops, something went wrong.