|
|
@ -1,8 +1,13 @@ |
|
|
|
import { Code, Link, ListItem, Stack, Text, UnorderedList } from '@chakra-ui/react'; |
|
|
|
import { Center, Code, Flex, Link, ListItem, Stack, Text, UnorderedList } from '@chakra-ui/react'; |
|
|
|
import type { NextPage } from 'next'; |
|
|
|
import type { NextPage } from 'next'; |
|
|
|
import { useState } from 'react'; |
|
|
|
import { useState } from 'react'; |
|
|
|
|
|
|
|
|
|
|
|
import { DownloadsHero, DownloadsSection, DownloadsTable, SpecificVersionsSection } from '../components/UI/downloads'; |
|
|
|
import { |
|
|
|
|
|
|
|
DownloadsHero, |
|
|
|
|
|
|
|
DownloadsSection, |
|
|
|
|
|
|
|
DownloadsTable, |
|
|
|
|
|
|
|
SpecificVersionsSection |
|
|
|
|
|
|
|
} from '../components/UI/downloads'; |
|
|
|
import { DataTable } from '../components/UI'; |
|
|
|
import { DataTable } from '../components/UI'; |
|
|
|
|
|
|
|
|
|
|
|
import { |
|
|
|
import { |
|
|
@ -105,19 +110,37 @@ const DownloadsPage: NextPage = () => { |
|
|
|
{/* TODO: swap test data for real data */} |
|
|
|
{/* TODO: swap test data for real data */} |
|
|
|
<DownloadsTable data={testDownloadData.slice(0, amountStableReleases)} /> |
|
|
|
<DownloadsTable data={testDownloadData.slice(0, amountStableReleases)} /> |
|
|
|
|
|
|
|
|
|
|
|
<Stack sx={{ mt: '0 !important' }}> |
|
|
|
<Flex |
|
|
|
<Link as='button' variant='button-link-secondary' onClick={showMoreStableReleases}> |
|
|
|
sx={{ mt: '0 !important' }} |
|
|
|
<Text |
|
|
|
flexDirection={{ base: 'column', md: 'row' }} |
|
|
|
fontFamily='"JetBrains Mono", monospace' |
|
|
|
justifyContent='space-between' |
|
|
|
fontWeight={700} |
|
|
|
> |
|
|
|
textTransform='uppercase' |
|
|
|
<Stack p={4} display={{ base: 'none', md: 'block' }}> |
|
|
|
textAlign='center' |
|
|
|
<Center> |
|
|
|
p={4} |
|
|
|
{/* TODO: swap testDownloadData with actual data */} |
|
|
|
> |
|
|
|
<Text> |
|
|
|
Show older releases |
|
|
|
Showing {amountStableReleases} latest releases of a total{' '} |
|
|
|
</Text> |
|
|
|
{testDownloadData.length} releases |
|
|
|
</Link> |
|
|
|
</Text> |
|
|
|
</Stack> |
|
|
|
</Center> |
|
|
|
|
|
|
|
</Stack> |
|
|
|
|
|
|
|
<Stack |
|
|
|
|
|
|
|
sx={{ mt: '0 !important' }} |
|
|
|
|
|
|
|
borderLeft={{ base: 'none', md: '2px solid #11866f' }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<Link as='button' variant='button-link-secondary' onClick={showMoreStableReleases}> |
|
|
|
|
|
|
|
<Text |
|
|
|
|
|
|
|
fontFamily='"JetBrains Mono", monospace' |
|
|
|
|
|
|
|
fontWeight={700} |
|
|
|
|
|
|
|
textTransform='uppercase' |
|
|
|
|
|
|
|
textAlign='center' |
|
|
|
|
|
|
|
p={4} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
Show older releases |
|
|
|
|
|
|
|
</Text> |
|
|
|
|
|
|
|
</Link> |
|
|
|
|
|
|
|
</Stack> |
|
|
|
|
|
|
|
</Flex> |
|
|
|
</DownloadsSection> |
|
|
|
</DownloadsSection> |
|
|
|
|
|
|
|
|
|
|
|
<DownloadsSection |
|
|
|
<DownloadsSection |
|
|
@ -136,19 +159,37 @@ const DownloadsPage: NextPage = () => { |
|
|
|
{/* TODO: swap for real data */} |
|
|
|
{/* TODO: swap for real data */} |
|
|
|
<DownloadsTable data={testDownloadData.slice(0, amountDevelopBuilds)} /> |
|
|
|
<DownloadsTable data={testDownloadData.slice(0, amountDevelopBuilds)} /> |
|
|
|
|
|
|
|
|
|
|
|
<Stack sx={{ mt: '0 !important' }}> |
|
|
|
<Flex |
|
|
|
<Link as='button' variant='button-link-secondary' onClick={showMoreDevelopBuilds}> |
|
|
|
sx={{ mt: '0 !important' }} |
|
|
|
<Text |
|
|
|
flexDirection={{ base: 'column', md: 'row' }} |
|
|
|
fontFamily='"JetBrains Mono", monospace' |
|
|
|
justifyContent='space-between' |
|
|
|
fontWeight={700} |
|
|
|
> |
|
|
|
textTransform='uppercase' |
|
|
|
<Stack p={4} display={{ base: 'none', md: 'block' }}> |
|
|
|
textAlign='center' |
|
|
|
<Center> |
|
|
|
p={4} |
|
|
|
{/* TODO: swap testDownloadData with actual data */} |
|
|
|
> |
|
|
|
<Text> |
|
|
|
Show older releases |
|
|
|
Showing {amountDevelopBuilds} latest releases of a total{' '} |
|
|
|
</Text> |
|
|
|
{testDownloadData.length} releases |
|
|
|
</Link> |
|
|
|
</Text> |
|
|
|
</Stack> |
|
|
|
</Center> |
|
|
|
|
|
|
|
</Stack> |
|
|
|
|
|
|
|
<Stack |
|
|
|
|
|
|
|
sx={{ mt: '0 !important' }} |
|
|
|
|
|
|
|
borderLeft={{ base: 'none', md: '2px solid #11866f' }} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
<Link as='button' variant='button-link-secondary' onClick={showMoreStableReleases}> |
|
|
|
|
|
|
|
<Text |
|
|
|
|
|
|
|
fontFamily='"JetBrains Mono", monospace' |
|
|
|
|
|
|
|
fontWeight={700} |
|
|
|
|
|
|
|
textTransform='uppercase' |
|
|
|
|
|
|
|
textAlign='center' |
|
|
|
|
|
|
|
p={4} |
|
|
|
|
|
|
|
> |
|
|
|
|
|
|
|
Show older releases |
|
|
|
|
|
|
|
</Text> |
|
|
|
|
|
|
|
</Link> |
|
|
|
|
|
|
|
</Stack> |
|
|
|
|
|
|
|
</Flex> |
|
|
|
</DownloadsSection> |
|
|
|
</DownloadsSection> |
|
|
|
|
|
|
|
|
|
|
|
<DownloadsSection |
|
|
|
<DownloadsSection |
|
|
|