Skip to content

Commit 84a3c7a

Browse files
authored
Merge pull request #55 from CivicDataLab/53-add-footer
Add Footer
2 parents e338c3e + 64fa396 commit 84a3c7a

File tree

5 files changed

+124
-0
lines changed

5 files changed

+124
-0
lines changed

app/[locale]/(user)/layout.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
'use client';
22

33
import React from 'react';
4+
import Image from 'next/image';
5+
import Link from 'next/link';
46
import { notFound, usePathname } from 'next/navigation';
7+
import { Icon, Text } from 'opub-ui';
58

9+
import { Icons } from '@/components/icons';
10+
import MainFooter from '../dashboard/components/main-footer';
611
import { MainNav } from '../dashboard/components/main-nav';
712

813
interface UserLayoutProps {
@@ -29,6 +34,9 @@ export default function Layout({ children }: UserLayoutProps) {
2934
<MainNav hideSearch={hideSearch} />
3035
</header>
3136
<>{children}</>
37+
<footer>
38+
<MainFooter />
39+
</footer>
3240
</div>
3341
);
3442
}
Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
import React from 'react';
2+
import Image from 'next/image';
3+
import Link from 'next/link';
4+
import { Icon, Text } from 'opub-ui';
5+
6+
import { Icons } from '@/components/icons';
7+
8+
const MainFooter = () => {
9+
return (
10+
<>
11+
<div
12+
style={{
13+
backgroundColor: 'var( --background-alpha-medium)',
14+
}}
15+
>
16+
<div className="flex flex-wrap items-center justify-start gap-8 p-10 md:justify-center lg:justify-center lg:gap-32 ">
17+
<div className="flex gap-8 ">
18+
<div className="flex items-center gap-2">
19+
<Icon source={Icons.logo} size={24} color="success" />
20+
<Text variant="headingLg" className="text-surfaceDefault" as="h1">
21+
CivicDataSpace
22+
</Text>
23+
</div>
24+
<div>
25+
<Image src={'/cdl.svg'} width={96} alt={'cdl'} height={94} />
26+
</div>
27+
</div>
28+
<div className=" flex gap-6">
29+
<Link href={'#'} className=" text-baseIndigoSolid2">
30+
About Us
31+
</Link>
32+
<Link href={'#'} className=" text-baseIndigoSolid2">
33+
Sitemap
34+
</Link>
35+
<Link href={'#'} className=" text-baseIndigoSolid2">
36+
Contact Us
37+
</Link>
38+
</div>
39+
<div className=" flex flex-col gap-2">
40+
<Text
41+
color="highlight"
42+
className=" font-bold text-borderWarningSubdued"
43+
>
44+
Follow Us
45+
</Text>
46+
<div className=" flex gap-3">
47+
<div className=" h-10 w-10 rounded-5 bg-baseBlueSolid8 p-2">
48+
<Icon source={Icons.twitter} size={24} color="onBgDefault" />
49+
</div>
50+
<div className=" h-10 w-10 rounded-5 bg-baseBlueSolid8 p-2">
51+
<Icon source={Icons.linkedin} size={24} color="onBgDefault" />
52+
</div>
53+
<div className=" h-10 w-10 rounded-5 bg-baseBlueSolid8 p-2">
54+
<Icon source={Icons.facebook} size={24} color="onBgDefault" />
55+
</div>
56+
<div className=" h-10 w-10 rounded-5 bg-baseBlueSolid8 p-2">
57+
<Icon source={Icons.github} size={24} color="onBgDefault" />
58+
</div>
59+
</div>
60+
</div>
61+
</div>
62+
</div>
63+
<div className=" bg-baseBlueSolid6 p-2">
64+
<div className=" m-auto flex items-center gap-2 md:pl-4 lg:w-5/6 lg:pl-8">
65+
<Icon source={Icons.info} size={24} />
66+
67+
<Text variant="bodyMd">
68+
This Platform is designed, developed and hosted by CivicDataLab for
69+
Open Data PLatform
70+
</Text>
71+
</div>
72+
</div>
73+
</>
74+
);
75+
};
76+
77+
export default MainFooter;

app/[locale]/dashboard/layout.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import React from 'react';
44

5+
import MainFooter from './components/main-footer';
56
import { MainNav } from './components/main-nav';
67

78
interface DashboardLayoutProps {
@@ -20,6 +21,9 @@ export default function Layout({ children }: DashboardLayoutProps) {
2021
<MainNav />
2122
</header>
2223
<>{children}</>
24+
<footer>
25+
<MainFooter />
26+
</footer>
2327
</div>
2428
);
2529
}

components/icons.tsx

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ import {
33
IconArrowRight,
44
IconBarrierBlock,
55
IconBellFilled,
6+
IconBrandFacebookFilled,
7+
IconBrandGithubFilled,
8+
IconBrandLinkedin,
9+
IconBrandTwitterFilled,
610
IconCircleCheckFilled,
711
IconCloudUpload,
812
IconDatabase,
@@ -66,4 +70,8 @@ export const Icons: {
6670
pencil: IconPencil,
6771
fileUpload: IconFileUpload,
6872
plus: IconPlus,
73+
twitter: IconBrandTwitterFilled,
74+
facebook: IconBrandFacebookFilled,
75+
linkedin: IconBrandLinkedin,
76+
github: IconBrandGithubFilled,
6977
};

public/cdl.svg

Lines changed: 27 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)