Skip to content

Commit

Permalink
Merge pull request #1 from Crypto-Arsenal/clean
Browse files Browse the repository at this point in the history
merge
  • Loading branch information
Hsin1025 authored Jul 14, 2023
2 parents 27bfc60 + 6ba74e0 commit 98cd80c
Show file tree
Hide file tree
Showing 2 changed files with 488 additions and 227 deletions.
97 changes: 97 additions & 0 deletions src/components/Community.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
import {
Center,
Text,
Button,
useColorModeValue,
Wrap,
} from '@chakra-ui/react';
import {
FaDiscord,
FaLinkedin,
FaMediumM,
FaReddit,
FaTwitter,
} from 'react-icons/fa';
import { BsInstagram, BsTelegram } from 'react-icons/bs';
import { useTranslation } from 'react-i18next';

const communityList = [
{
href: 'https://discord.gg/DfVSwYprvK',
icon: <FaDiscord />,
text: 'Discord',
},
{
href: 'links.twitter',
icon: <FaTwitter />,
text: 'Twitter',
},
{
href: 'https://t.me/TG_Crypto_Arsenal',
icon: <BsTelegram />,
text: 'Telegram',
},
{
href: 'links.instagram',
icon: <BsInstagram />,
text: 'Instagram',
},
{
href: 'links.medium',
icon: <FaMediumM />,
text: 'Medium',
},
{
href: 'https://www.linkedin.com/company/crypto-arsenal',
icon: <FaLinkedin />,
text: 'LinkedIn',
},
{
href: 'https://www.reddit.com/r/CryptoArsenal',
icon: <FaReddit />,
text: 'Reddit',
},
{
href: 'https://www.tradingview.com/u/Crypto-Arsenal/',
icon: (
<>
<svg
width='20'
height='20'
viewBox='0 0 36 27'
xmlns='http://www.w3.org/2000/svg'
>
<path
d='M14 22H7V11H0V4h14v18zM28 22h-8l7.5-18h8L28 22z'
fill='currentColor'
></path>
<circle cx='20' cy='8' r='4' fill='currentColor'></circle>
</svg>
</>
),
text: 'TradingView',
},
];

export default function Community() {
const { t } = useTranslation();
return (
<Wrap spacing='2px' justify='center' mt={6}>
{communityList.map((community) => (
<Button
as='a'
href={t(community.href)}
target='_blank'
variant={'outline'}
leftIcon={community.icon}
bg={useColorModeValue('gray.50', 'gray.800')}
size={'sm'}
>
<Center>
<Text>{community.text}</Text>
</Center>
</Button>
))}
</Wrap>
);
}
Loading

0 comments on commit 98cd80c

Please sign in to comment.