Skip to content

Commit 5a18e27

Browse files
committed
add primary section in homepage
1 parent fac0e52 commit 5a18e27

File tree

3 files changed

+45
-41
lines changed

3 files changed

+45
-41
lines changed
Lines changed: 44 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,48 @@
1-
'use client';
1+
import Image from 'next/image';
2+
import { SearchInput, Text } from 'opub-ui';
23

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';
116

7+
export const Content = () => {
128
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>
4347
);
44-
}
48+
};

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Content } from './components/Content';
22

33
export default async function Home() {
44
return (
5-
<div className="flex h-screen w-full flex-col items-center justify-center gap-2">
5+
<div className="h-screen bg-surfaceDefault">
66
<Content />
77
</div>
88
);

public/homepage_illustartion.png

257 KB
Loading

0 commit comments

Comments
 (0)