diff --git a/examples/next/public/discord.svg b/examples/next/public/discord.svg new file mode 100644 index 00000000..b4ca26f4 --- /dev/null +++ b/examples/next/public/discord.svg @@ -0,0 +1,18 @@ + + + + + diff --git a/examples/next/public/github.svg b/examples/next/public/github.svg new file mode 100644 index 00000000..5a9a1f46 --- /dev/null +++ b/examples/next/public/github.svg @@ -0,0 +1,21 @@ + + + + + diff --git a/examples/next/public/twitter.svg b/examples/next/public/twitter.svg new file mode 100644 index 00000000..46a33e5f --- /dev/null +++ b/examples/next/public/twitter.svg @@ -0,0 +1,18 @@ + + + + + diff --git a/examples/next/public/youtube.svg b/examples/next/public/youtube.svg new file mode 100644 index 00000000..4f8014f9 --- /dev/null +++ b/examples/next/public/youtube.svg @@ -0,0 +1,11 @@ + + + + Layer 1 + + + \ No newline at end of file diff --git a/examples/next/src/app/components/Footer.tsx b/examples/next/src/app/components/Footer.tsx new file mode 100644 index 00000000..41fa9f50 --- /dev/null +++ b/examples/next/src/app/components/Footer.tsx @@ -0,0 +1,142 @@ +import React from 'react' +import { Box, Button, Image, Text, useMediaQuery, useTheme } from '@0xsequence/design-system' + +interface BottomPageLink { + label: string + url: string +} + +export const bottomPageLinks: BottomPageLink[] = [ + { + label: 'Terms', + url: 'https://sequence.xyz/terms' + }, + { + label: 'About', + url: 'https://github.com/0xsequence/kit' + }, + { + label: 'Blog', + url: 'https://sequence.xyz/blog' + }, + { + label: 'Builder', + url: 'https://sequence.build' + }, + { + label: 'Docs', + url: 'https://docs.sequence.xyz/wallet/connectors/kit/kit/overview' + } +] + +interface SocialLinks { + id: string + url: string + icon: string +} + +export const socialLinks: SocialLinks[] = [ + { + id: 'discord', + url: 'https://discord.gg/sequence', + icon: 'discord.svg' + }, + { + id: 'twitter', + url: 'https://www.twitter.com/0xsequence', + icon: 'twitter.svg' + }, + { + id: 'youtube', + url: 'https://www.youtube.com/channel/UC1zHgUyV-doddTcnFNqt62Q', + icon: 'youtube.svg' + }, + { + id: 'github', + url: 'https://github.com/0xsequence', + icon: 'github.svg' + } +] + +export const Footer = () => { + const { theme } = useTheme() + const isMobile = useMediaQuery('isMobile') + + const onClickLinkUrl = (url: string) => { + if (typeof window !== 'undefined') { + window.open(url) + } + } + + const Links = () => { + return ( + + {bottomPageLinks.map((link, index) => ( + - + <> +
+ ) } diff --git a/examples/next/src/utils.ts b/examples/next/src/utils.ts new file mode 100644 index 00000000..0646c91b --- /dev/null +++ b/examples/next/src/utils.ts @@ -0,0 +1,7 @@ +export const truncateAddress = (address: string, minPrefix: number = 20, minSuffix: number = 3): string => { + if (minPrefix + minSuffix >= 40) { + return address + } else { + return `${address.substring(0, 2 + minPrefix)}…${address.substring(address.length - minSuffix)}` + } +}