Skip to content

Commit 4d470e9

Browse files
Fix section sizing
1 parent e3b7d4a commit 4d470e9

5 files changed

Lines changed: 31 additions & 7 deletions

File tree

src/routes/Countries/Components/keyFindings.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ export function KeyFindings({
2525
}) {
2626
const keyFindingContent = (
2727
<div className='flex flex-col gap-2'>
28-
<P className='uppercase' size='xs' weight='bold' marginBottom='none'>
28+
<P className='uppercase' size='xs' marginBottom='none'>
2929
Key finding {index}
3030
</P>
3131
<H5 weight='bold' marginBottom='none'>

src/routes/Countries/countryPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function CountryPage() {
2929
<section id='header' className='mx-auto w-full bg-primary-gray-200 py-20'>
3030
<div className='mx-auto max-w-[1920px] px-4 sm:px-6 lg:px-8'>
3131
<div className='w-full md:w-1/2'>
32-
<P className='uppercase' size='xs' weight='bold' marginBottom='none'>
32+
<P className='uppercase' size='xs' marginBottom='none'>
3333
Country report
3434
</P>
3535
<Spacer size='2xl' />

src/routes/aboutPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { H1, P } from '@undp/design-system-react/Typography';
55

66
export function About() {
77
return (
8-
<div className='mx-auto my-8 w-full max-w-[1920px] px-4'>
8+
<div className='mx-auto my-8 w-full max-w-[1920px] px-4 sm:px-6 lg:px-8'>
99
<H1 size='sm'>About</H1>
1010
<Spacer size='2xl' />
1111
<P>

src/routes/dataExplorer.tsx

Lines changed: 27 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,35 @@
11
import type { AnyRoute } from '@tanstack/react-router';
22
import { createRoute } from '@tanstack/react-router';
3-
import { H1 } from '@undp/design-system-react/Typography';
3+
import { Button } from '@undp/design-system-react/Button';
4+
import { Spacer } from '@undp/design-system-react/Spacer';
5+
import { H1, H4, P } from '@undp/design-system-react/Typography';
6+
import { DownloadIcon } from 'lucide-react';
47

58
export function dataExplorer() {
69
return (
7-
<div className='mx-auto my-8 w-full max-w-[1920px] px-4'>
8-
<H1 size='sm'>Data Explorer</H1>
10+
<div className='mx-auto my-8 w-full'>
11+
<section id='data-explorer' className='mx-auto w-full max-w-[1920px] px-4 sm:px-6 lg:px-8'>
12+
<H1 size='sm'>Data Explorer</H1>
13+
<Spacer size='2xl' />
14+
<div className='h-[70vh] w-full bg-primary-gray-200 p-6 md:p-10' />
15+
</section>
16+
<Spacer size='2xl' />
17+
<section id='download-data' className='mx-auto w-full max-w-[1920px] px-4 sm:px-6 lg:px-8'>
18+
<button
19+
type='button'
20+
className='flex w-full flex-col bg-primary-gray-200 p-6 hover:bg-primary-gray-300 md:p-10'
21+
>
22+
<H4 weight='bold'>Download Data</H4>
23+
<P size='lg' marginBottom='none'>
24+
Lorem ipsum dolor sit amet consectetur. Consequat tempus.
25+
</P>
26+
<Spacer size='2xl' />
27+
<Button variant='link-without-icon' padding='none' className='w-fit'>
28+
Download <DownloadIcon className='text-accent-red' />
29+
</Button>
30+
</button>
31+
</section>
32+
<Spacer size='8xl' />
933
</div>
1034
);
1135
}

src/routes/resourcesPage.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export function Resource() {
4141
},
4242
];
4343
return (
44-
<div className='mx-auto my-8 w-full max-w-[1920px] px-4'>
44+
<div className='mx-auto my-8 w-full max-w-[1920px] px-4 sm:px-6 lg:px-8'>
4545
<H1 size='sm'>Resources</H1>
4646
<Spacer size='2xl' />
4747
<Grid noOfCol={{ base: 1, sm: 2, md: 4, lg: 6 }}>

0 commit comments

Comments
 (0)