@@ -18,6 +18,7 @@ const statsInfo: any = graphql(`
1818 totalPublishedDatasets
1919 totalPublishers
2020 totalPublishedUsecases
21+ totalOrganizations
2122 }
2223 }
2324` ) ;
@@ -49,19 +50,27 @@ export const Content = () => {
4950 {
5051 label : 'Datasets' ,
5152 count : Stats ?. data ?. stats ?. totalPublishedDatasets ,
53+ link : '/datasets' ,
5254 } ,
5355 {
5456 label : 'Use Cases' ,
5557 count : Stats ?. data ?. stats ?. totalPublishedUsecases ,
58+ link : '/usecases' ,
5659 } ,
5760
5861 {
5962 label : 'Publishers' ,
6063 count : Stats ?. data ?. stats ?. totalPublishers ,
64+ link : '/publishers' ,
6165 } ,
66+ // {
67+ // label: 'Users',
68+ // count: Stats?.data?.stats?.totalUsers,
69+ // },
6270 {
63- label : 'Users' ,
64- count : Stats ?. data ?. stats ?. totalUsers ,
71+ label : 'Organizations' ,
72+ count : Stats ?. data ?. stats ?. totalOrganizations ,
73+ link : '/publishers' ,
6574 } ,
6675 ] ;
6776
@@ -73,6 +82,7 @@ export const Content = () => {
7382 'Law And Justice' ,
7483 'Urban Development' ,
7584 ] ;
85+
7686 return (
7787 < main className = "bg-primaryBlue py-6 md:px-8 md:py-10 lg:py-20" >
7888 < div className = "container flex items-center justify-around gap-20 px-10 md:px-12 lg:px-8 " >
@@ -90,17 +100,22 @@ export const Content = () => {
90100 ) : (
91101 < div className = "flex flex-wrap items-center gap-4 md:gap-0 lg:gap-0 " >
92102 { Metrics . map ( ( item , index ) => (
93- < div
94- key = { index }
95- className = "flex flex-col border-x-[1px] border-solid border-tertiaryAccent px-4"
96- >
97- < Text variant = "heading3xl" className = " text-secondaryOrange" >
98- { item . count }
99- </ Text >
100- < Text color = "onBgDefault" className = " w-20 " >
101- { item . label }
102- </ Text >
103- </ div >
103+ < Link key = { `${ item . label } _${ index } ` } href = { item . link } >
104+ < div
105+ key = { index }
106+ className = "flex flex-col border-x-[1px] border-solid border-tertiaryAccent px-4"
107+ >
108+ < Text
109+ variant = "heading3xl"
110+ className = " text-secondaryOrange"
111+ >
112+ { item . count }
113+ </ Text >
114+ < Text color = "onBgDefault" className = " w-20 " >
115+ { item . label }
116+ </ Text >
117+ </ div >
118+ </ Link >
104119 ) ) }
105120 </ div >
106121 ) }
0 commit comments