11'use client' ;
22
3+ import { graphql } from '@/gql' ;
4+ import { useQuery } from '@tanstack/react-query' ;
35import Image from 'next/image' ;
46import Link from 'next/link' ;
57import { useRouter } from 'next/navigation' ;
6- import { graphql } from '@/gql' ;
7- import { useQuery } from '@tanstack/react-query' ;
8- import { SearchInput , Spinner , Tag , Text } from 'opub-ui' ;
8+ import { SearchInput , Spinner , Text } from 'opub-ui' ;
99
10+ import { useTourTrigger } from '@/hooks/use-tour-trigger' ;
1011import { GraphQL } from '@/lib/api' ;
1112import { cn } from '@/lib/utils' ;
1213import Styles from '../page.module.scss' ;
13- import { useTourTrigger } from '@/hooks/use-tour-trigger' ;
1414
1515const statsInfo : any = graphql ( `
1616 query StatsList {
@@ -24,14 +24,6 @@ const statsInfo: any = graphql(`
2424 }
2525` ) ;
2626
27- // const tagsInfo: any = graphql(`
28- // query TagsData {
29- // tags {
30- // id
31- // value
32- // }
33- // }
34- // `);
3527
3628export const Content = ( ) => {
3729 const router = useRouter ( ) ;
@@ -42,9 +34,6 @@ export const Content = () => {
4234 const Stats : { data : any ; isLoading : any } = useQuery ( [ `statsDetails` ] , ( ) =>
4335 GraphQL ( statsInfo , { } , [ ] )
4436 ) ;
45- // const Tags: { data: any; isLoading: any } = useQuery([`tagDetails`], () =>
46- // GraphQL(tagsInfo, {}, [])
47- // );
4837
4938 const handleSearch = ( value : string ) => {
5039 if ( value ) {
@@ -68,38 +57,24 @@ export const Content = () => {
6857 count : Stats ?. data ?. stats ?. totalPublishers ,
6958 link : '/publishers' ,
7059 } ,
71- // {
72- // label: 'Users',
73- // count: Stats?.data?.stats?.totalUsers,
74- // },
7560 {
7661 label : 'Organizations' ,
7762 count : Stats ?. data ?. stats ?. totalOrganizations ,
7863 link : '/publishers' ,
7964 } ,
8065 ] ;
8166
82- const Sectors = [
83- 'Public Finance' ,
84- 'Law And Justice' ,
85- 'Climate Action' ,
86- 'Urban Development' ,
87- 'Gender' ,
88- 'Coastal' ,
89- 'Disaster Risk Reduction' ,
90- 'Child Rights'
91- ] ;
9267
9368 return (
94- < main className = "py-6 md:px-6 md:py-10 lg:py-16 " >
95- < div className = " flex justify-around gap-8 px-4 md:px-8 lg:px-18 " >
69+ < main className = "container py-10 md:px-8 lg:py-20 " >
70+ < div className = "flex justify-around gap-8 px-4 md:px-12 lg:px-12 " >
9671 < div className = "flex flex-col gap-11 lg:w-[60%]" >
9772 < div className = "flex flex-col gap-2" >
9873 < Text variant = "heading3xl" color = "onBgDefault" className = 'text-textOnBGDefault1' >
99- Discover datasets, AI use cases, and civic knowledge
74+ An Open-Source Platform for Collaborative Data-Driven Change
10075 </ Text >
10176 < Text variant = "headingLg" color = "onBgDefault" className = 'text-textOnBGDefault2' >
102- Open data and insights for public decision-making .
77+ Share datasets, knowledge resources, and AI use-cases for data changemakers .
10378 </ Text >
10479 </ div >
10580 < div className = "w-full" data-tour = "search-bar" >
@@ -133,7 +108,7 @@ export const Content = () => {
133108 : undefined
134109 }
135110 >
136- < div className = "flex h-[100px] flex-col text-start justify-center rounded-[8px] bg-surfaceStats px-10 py-10 text-center" >
111+ < div className = "flex h-[100px] flex-col justify-center rounded-[8px] bg-surfaceStats px-10 py-10 text-center" >
137112 < Text variant = "heading3xl" className = "text-primaryBlue" >
138113 { item . count }
139114 </ Text >
0 commit comments