Skip to content

Commit aad245a

Browse files
authored
Merge pull request #294 from CivicDataLab/292-redesign-footer
Redesign footer: updated layout and social icons order
2 parents cf9505e + ee13d50 commit aad245a

File tree

1 file changed

+41
-93
lines changed

1 file changed

+41
-93
lines changed

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

Lines changed: 41 additions & 93 deletions
Original file line numberDiff line numberDiff line change
@@ -9,113 +9,61 @@ import styles from './styles.module.scss';
99
const MainFooter = () => {
1010
const socialMedia = [
1111
{
12-
icon: Icons.twitter,
13-
link: 'https://twitter.com/civicdatalab',
12+
icon: Icons.github,
13+
link: 'https://github.com/civicdatalab',
1414
},
1515
{
1616
icon: Icons.linkedin,
1717
link: 'https://www.linkedin.com/company/civicdatalab',
1818
},
1919
{
20-
icon: Icons.facebook,
21-
link: 'https://facebook.com/civicdatalab',
20+
icon: Icons.twitter,
21+
link: 'https://twitter.com/civicdatalab',
2222
},
2323
{
24-
icon: Icons.github,
25-
link: 'https://github.com/civicdatalab',
24+
icon: Icons.facebook,
25+
link: 'https://facebook.com/civicdatalab',
2626
},
2727
];
2828
return (
29-
<>
30-
<div className="bg-primaryBlue">
31-
<div className="flex flex-col gap-8 p-6 lg:px-28 lg:py-10">
32-
<div className="flex flex-wrap items-center justify-between gap-8 ">
33-
{' '}
34-
<Link href="/">
35-
<div className="flex items-center gap-2">
36-
<div className="group relative h-[38px] w-[38px] overflow-hidden rounded-full">
37-
{/* Static Logo */}
38-
<div className="absolute inset-0 transition-opacity duration-300 group-hover:opacity-0">
39-
<Image
40-
src="/globe_logo.png"
41-
alt="Logo"
42-
layout="fill"
43-
objectFit="contain"
44-
/>
45-
</div>
46-
47-
{/* Globe GIF on Hover */}
48-
<div className="absolute inset-0 opacity-0 transition-opacity duration-300 group-hover:opacity-100">
49-
<Image
50-
src="/globe.gif"
51-
alt="Globe"
52-
layout="fill"
53-
objectFit="contain"
54-
/>
55-
</div>
56-
</div>
57-
<Text
58-
variant="headingXl"
59-
className="text-surfaceDefault"
60-
as="h1"
61-
>
62-
CivicDataSpace
63-
</Text>
64-
</div>
29+
<div className="bg-primaryBlue">
30+
<div className="flex flex-wrap items-center justify-between p-4 lg:px-20 lg:py-6">
31+
<div className="flex gap-6 uppercase">
32+
<Link href={'/about-us'}>
33+
<Text color="onBgDefault">About Us</Text>
34+
</Link>
35+
<Link href={'mailto:[email protected]'}>
36+
<Text color="onBgDefault">Contact Us</Text>
37+
</Link>
38+
</div>
39+
<div className="flex items-center gap-2 text-white">
40+
<Text color="onBgDefault">made by</Text>
41+
<Link
42+
href={'https://www.civicdatalab.in'}
43+
target="_blank"
44+
className="h-8 w-8"
45+
>
46+
<Image src={'/cdl.svg'} width={28} height={28} alt="CDL logo" />
47+
</Link>
48+
</div>
49+
<div className="flex gap-3">
50+
{socialMedia.map((item, index) => (
51+
<Link
52+
key={index}
53+
href={item.link}
54+
target="_blank"
55+
className="h-10 w-10 rounded-5 bg-tertiaryAccent p-2"
56+
>
57+
<Icon
58+
className={cn(styles.FooterIcons)}
59+
source={item.icon}
60+
size={24}
61+
/>
6562
</Link>
66-
<div className=" flex flex-col gap-2 lg:items-end">
67-
<div>
68-
{' '}
69-
<Text
70-
color="highlight"
71-
variant="headingMd"
72-
className=" font-semi-bold text-secondaryOrange"
73-
>
74-
Follow Us
75-
</Text>
76-
</div>
77-
78-
<div className=" flex gap-3">
79-
{socialMedia.map((item, index) => (
80-
<Link
81-
key={index}
82-
href={item.link}
83-
target="_blank"
84-
className=" h-10 w-10 rounded-5 bg-tertiaryAccent p-2"
85-
>
86-
<Icon
87-
className={cn(styles.FooterIcons)}
88-
source={item.icon}
89-
size={24}
90-
/>
91-
</Link>
92-
))}
93-
</div>
94-
</div>
95-
</div>
96-
<div className=" flex flex-wrap items-end justify-between gap-6">
97-
<div className=" flex gap-6 uppercase">
98-
<Link href={'/about-us'}>
99-
<Text color="onBgDefault"> About Us</Text>
100-
</Link>
101-
<Link href={'mailto:[email protected]'}>
102-
<Text color="onBgDefault"> Contact Us</Text>
103-
</Link>
104-
</div>
105-
<div className=" flex items-end gap-2">
106-
<Text color="onBgDefault"> made by</Text>
107-
<Link
108-
href={'https://www.civicdatalab.in'}
109-
target="_blank"
110-
className=" h-8 w-8"
111-
>
112-
<Image src={'/cdl.svg'} width={32} height={32} alt="logo" />
113-
</Link>
114-
</div>
115-
</div>
63+
))}
11664
</div>
11765
</div>
118-
</>
66+
</div>
11967
);
12068
};
12169

0 commit comments

Comments
 (0)