Skip to content

Commit fa4ff1e

Browse files
committed
add socialMedia links
1 parent ce54fe4 commit fa4ff1e

File tree

1 file changed

+29
-15
lines changed

1 file changed

+29
-15
lines changed

app/[locale]/dashboard/components/main-footer.tsx

Lines changed: 29 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,28 @@
1-
import React from 'react';
21
import Image from 'next/image';
32
import Link from 'next/link';
4-
import { IconBinary, IconBinaryTree } from '@tabler/icons-react';
53
import { Icon, Text } from 'opub-ui';
64

75
import { Icons } from '@/components/icons';
86

97
const MainFooter = () => {
8+
const socialMedia = [
9+
{
10+
icon: Icons.twitter,
11+
link: 'https://twitter.com/civicdatalab',
12+
},
13+
{
14+
icon: Icons.linkedin,
15+
link: 'https://www.linkedin.com/company/civicdatalab',
16+
},
17+
{
18+
icon: Icons.facebook,
19+
link: 'https://facebook.com/civicdatalab',
20+
},
21+
{
22+
icon: Icons.github,
23+
link: 'https://github.com/civicdatalab',
24+
},
25+
];
1026
return (
1127
<>
1228
<div className="bg-primaryBlue">
@@ -36,22 +52,20 @@ const MainFooter = () => {
3652
</div>
3753

3854
<div className=" flex gap-3">
39-
<div className=" h-10 w-10 rounded-5 bg-secondaryOrange p-2">
40-
<Icon source={Icons.twitter} size={24} color="highlight" />
41-
</div>
42-
<div className=" h-10 w-10 rounded-5 bg-secondaryOrange p-2">
43-
<Icon source={Icons.linkedin} size={24} color="highlight" />
44-
</div>
45-
<div className=" h-10 w-10 rounded-5 bg-secondaryOrange p-2">
46-
<Icon source={Icons.facebook} size={24} color="highlight" />
47-
</div>
48-
<div className=" h-10 w-10 rounded-5 bg-secondaryOrange p-2">
49-
<Icon source={Icons.github} size={24} color="highlight" />
50-
</div>
55+
{socialMedia.map((item, index) => (
56+
<Link
57+
key={index}
58+
href={item.link}
59+
target="_blank"
60+
className=" h-10 w-10 rounded-5 bg-tertiaryAccent p-2"
61+
>
62+
<Icon source={item.icon} size={24} />
63+
</Link>
64+
))}
5165
</div>
5266
</div>
5367
</div>
54-
<div className=" flex flex-wrap gap-6 justify-between">
68+
<div className=" flex flex-wrap justify-between gap-6">
5569
<div className=" flex gap-6">
5670
<Link href={'#'}>
5771
<Text color="onBgDefault"> About Us</Text>

0 commit comments

Comments
 (0)