11'use client' ;
22
33import Image from 'next/image' ;
4+ import Link from 'next/link' ;
45import { useRouter } from 'next/navigation' ;
5- import { SearchInput , Text } from 'opub-ui' ;
6+ import { SearchInput , Tag , Text } from 'opub-ui' ;
7+
68import { cn } from '@/lib/utils' ;
79import Styles from '../page.module.scss' ;
810
@@ -13,10 +15,38 @@ export const Content = () => {
1315 router . push ( `/datasets?query=${ encodeURIComponent ( value ) } ` ) ;
1416 }
1517 } ;
18+ const Metrics = [
19+ {
20+ label : 'Datasets' ,
21+ count : '2k' ,
22+ } ,
23+ {
24+ label : 'Use Cases' ,
25+ count : '15' ,
26+ } ,
27+
28+ {
29+ label : 'Consumers' ,
30+ count : '24k' ,
31+ } ,
32+ {
33+ label : 'Publishers' ,
34+ count : '56' ,
35+ } ,
36+ ] ;
37+
38+ const Sectors = [
39+ 'Budgets' ,
40+ 'Child Rights' ,
41+ 'Disaster Risk Reduction' ,
42+ 'Climate Finance' ,
43+ 'Law And Justice' ,
44+ 'Urban Development' ,
45+ ] ;
1646 return (
17- < main className = ' bg-primaryBlue py-10 lg:py-20 md:px-8' >
18- < div className = "flex items-center container justify-center gap-20 " >
19- < div className = "flex flex-col lg:w-2/5 gap-11 " >
47+ < main className = " bg-primaryBlue py-10 md:px-8 lg:py-20" >
48+ < div className = "container flex items-center justify-around gap-20 " >
49+ < div className = "flex flex-col gap-11 lg:w-[49%] " >
2050 < div className = "flex flex-col" >
2151 < Text variant = "heading3xl" color = "onBgDefault" >
2252 Collaborate to advance
@@ -32,6 +62,21 @@ export const Content = () => {
3262 with CivicDataLab{ ' ' }
3363 </ Text >
3464 </ div >
65+ < div className = "flex flex-wrap items-center gap-4 md:gap-0 lg:gap-0 " >
66+ { Metrics . map ( ( item , index ) => (
67+ < div
68+ key = { index }
69+ className = "flex flex-col border-x-[1px] border-solid border-tertiaryAccent px-4"
70+ >
71+ < Text variant = "heading3xl" className = " text-secondaryOrange" >
72+ { item . count }
73+ </ Text >
74+ < Text color = "onBgDefault" className = " w-20" >
75+ { item . label }
76+ </ Text >
77+ </ div >
78+ ) ) }
79+ </ div >
3580 < div className = "w-full" >
3681 < SearchInput
3782 className = { cn ( Styles . Search ) }
@@ -42,6 +87,23 @@ export const Content = () => {
4287 withButton
4388 />
4489 </ div >
90+ < div className = "flex flex-wrap gap-4" >
91+ { Sectors . map ( ( item , index ) => (
92+ < div key = { index } >
93+ < Tag
94+ variation = "outlined"
95+ textColor = "var(--surface-default)"
96+ borderColor = "var(--orange-secondary-color)"
97+ >
98+ < Link href = { `/datasets?sectors=${ item } ` } target = "_blank" >
99+ < Text fontWeight = "semibold" color = "onBgDefault" >
100+ { item }
101+ </ Text >
102+ </ Link >
103+ </ Tag >
104+ </ div >
105+ ) ) }
106+ </ div >
45107 </ div >
46108 < div className = " hidden lg:block" >
47109 < Image
0 commit comments