|
1 | | -import React from 'react'; |
2 | 1 | import Image from 'next/image'; |
3 | 2 | import Link from 'next/link'; |
4 | | -import { IconBinary, IconBinaryTree } from '@tabler/icons-react'; |
5 | 3 | import { Icon, Text } from 'opub-ui'; |
6 | 4 |
|
7 | 5 | import { Icons } from '@/components/icons'; |
8 | 6 |
|
9 | 7 | 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 | + ]; |
10 | 26 | return ( |
11 | 27 | <> |
12 | 28 | <div className="bg-primaryBlue"> |
@@ -36,22 +52,20 @@ const MainFooter = () => { |
36 | 52 | </div> |
37 | 53 |
|
38 | 54 | <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 | + ))} |
51 | 65 | </div> |
52 | 66 | </div> |
53 | 67 | </div> |
54 | | - <div className=" flex flex-wrap gap-6 justify-between"> |
| 68 | + <div className=" flex flex-wrap justify-between gap-6"> |
55 | 69 | <div className=" flex gap-6"> |
56 | 70 | <Link href={'#'}> |
57 | 71 | <Text color="onBgDefault"> About Us</Text> |
|
0 commit comments