|
1 | | -'use client'; |
| 1 | +import Image from 'next/image'; |
| 2 | +import { SearchInput, Text } from 'opub-ui'; |
2 | 3 |
|
3 | | -import { IconBrandTabler } from '@tabler/icons-react'; |
4 | | -import { useTranslations } from 'next-intl'; |
5 | | -import { Button, ButtonGroup, Icon, Text } from 'opub-ui'; |
6 | | - |
7 | | -import { Icons } from '@/components/icons'; |
8 | | - |
9 | | -export function Content() { |
10 | | - const t = useTranslations('home'); |
| 4 | +import { cn } from '@/lib/utils'; |
| 5 | +import Styles from '../page.module.scss'; |
11 | 6 |
|
| 7 | +export const Content = () => { |
12 | 8 | return ( |
13 | | - <> |
14 | | - <IconBrandTabler size={64} color="black" /> |
15 | | - <Text variant="heading4xl" as="h1" alignment="center"> |
16 | | - {t('title')} |
17 | | - </Text> |
18 | | - <Text |
19 | | - color="subdued" |
20 | | - variant="bodyLg" |
21 | | - as="p" |
22 | | - alignment="center" |
23 | | - className="mb-4" |
24 | | - > |
25 | | - {t('subtitle')} |
26 | | - </Text> |
27 | | - <ButtonGroup> |
28 | | - <Button variant="interactive" kind="secondary" url="/chart"> |
29 | | - <Text variant="headingMd">Go to Charts</Text> |
30 | | - </Button> |
31 | | - <Button |
32 | | - variant="interactive" |
33 | | - kind="primary" |
34 | | - url="/dashboard/user/datasets" |
35 | | - icon={<Icon source={Icons.share} color="onBgDefault" />} |
36 | | - > |
37 | | - <Text color="onBgDefault" variant="headingMd"> |
38 | | - {t('cta')} |
39 | | - </Text> |
40 | | - </Button> |
41 | | - </ButtonGroup> |
42 | | - </> |
| 9 | + <main> |
| 10 | + <div className="flex items-center justify-center gap-20 bg-primaryBlue p-8 lg:p-16"> |
| 11 | + <div className="flex flex-col gap-11"> |
| 12 | + <div className="flex flex-col"> |
| 13 | + <Text variant="heading3xl" color="onBgDefault"> |
| 14 | + Collaborate to advance |
| 15 | + </Text> |
| 16 | + <Text |
| 17 | + variant="heading3xl" |
| 18 | + color="onBgDefault" |
| 19 | + className=" text-tertiaryAccent" |
| 20 | + > |
| 21 | + Data-driven Impact and Action |
| 22 | + </Text> |
| 23 | + <Text variant="heading3xl" color="onBgDefault"> |
| 24 | + with CivicDataLab{' '} |
| 25 | + </Text> |
| 26 | + </div> |
| 27 | + <div className="w-full"> |
| 28 | + <SearchInput |
| 29 | + className={cn(Styles.Search)} |
| 30 | + label={''} |
| 31 | + placeholder="Search for any data" |
| 32 | + name={''} |
| 33 | + withButton |
| 34 | + /> |
| 35 | + </div> |
| 36 | + </div> |
| 37 | + <div className=' hidden lg:block'> |
| 38 | + <Image |
| 39 | + src={'/homepage_illustartion.png'} |
| 40 | + width={500} |
| 41 | + height={400} |
| 42 | + alt="illustartion" |
| 43 | + /> |
| 44 | + </div> |
| 45 | + </div> |
| 46 | + </main> |
43 | 47 | ); |
44 | | -} |
| 48 | +}; |
0 commit comments