diff --git a/src/components/UI/downloads/DownloadsSection.tsx b/src/components/UI/downloads/DownloadsSection.tsx index 365bb49411..41b9ea9487 100644 --- a/src/components/UI/downloads/DownloadsSection.tsx +++ b/src/components/UI/downloads/DownloadsSection.tsx @@ -1,4 +1,4 @@ -import { Box, Image, Stack } from '@chakra-ui/react'; +import { Center, Flex, Image, Stack, Text } from '@chakra-ui/react'; import { FC } from 'react'; interface Props { @@ -6,10 +6,11 @@ interface Props { id: string; imgSrc?: string; imgAltText?: string; + sectionDescription?: React.ReactNode; sectionTitle: string; } -export const DownloadsSection: FC = ({ children, imgSrc, imgAltText, sectionTitle, id }) => { +export const DownloadsSection: FC = ({ children, imgSrc, imgAltText, sectionDescription, sectionTitle, id }) => { return ( {!!imgSrc && ( @@ -19,18 +20,39 @@ export const DownloadsSection: FC = ({ children, imgSrc, imgAltText, sect )} - - - {sectionTitle} - - + +
+ + {sectionTitle} + +
+
+ + { + sectionDescription && ( + +
+ {sectionDescription} +
+
+ ) + } + - {children} + {children} ); }; diff --git a/src/pages/downloads.tsx b/src/pages/downloads.tsx index acdcea53c4..8fb07754e0 100644 --- a/src/pages/downloads.tsx +++ b/src/pages/downloads.tsx @@ -89,8 +89,9 @@ const DownloadsPage: NextPage = () => { - - + These are the current and previous stable releases of go-ethereum, updated automatically when a new version is tagged in our{' '} @@ -98,8 +99,9 @@ const DownloadsPage: NextPage = () => { GitHub repository. - - + } + sectionTitle='Stable releases' + > {/* TODO: swap test data for real data */} @@ -118,8 +120,9 @@ const DownloadsPage: NextPage = () => { - - + These are the develop snapshots of go-ethereum, updated automatically when a new commit is pushed into our{' '} @@ -127,8 +130,9 @@ const DownloadsPage: NextPage = () => { GitHub repository. - - + } + sectionTitle='Develop builds' + > {/* TODO: swap for real data */} @@ -147,13 +151,15 @@ const DownloadsPage: NextPage = () => { - - + All the binaries available from this page are signed via our build server PGP keys: - - + } + sectionTitle='OpenPGP Signatures' + > {/* TODO: swap for real data */} @@ -168,7 +174,7 @@ const DownloadsPage: NextPage = () => { - + You can import the build server public keys by grabbing the individual keys directly