fix: change and sizes and spacing of advisories content

This commit is contained in:
RadoslavDimchev 2023-08-31 17:11:56 +03:00
parent 5677438919
commit 53e3b1efb0

View File

@ -7,22 +7,19 @@ type AdvisoriesContentProps = {
} }
const AdvisoriesContent = ({ title, content }: AdvisoriesContentProps) => { const AdvisoriesContent = ({ title, content }: AdvisoriesContentProps) => {
return ( return (
<YStack space={'$3'}> <YStack space={'$1'} style={{ width: '70%' }}>
<Stack style={{ marginBottom: '5%' }}> <Stack style={{ marginBottom: '5%' }}>
<Text size={27} weight={400}> <Text size={27} weight={400}>
{title} {title}
</Text> </Text>
</Stack> </Stack>
<YStack space={'$6'}> <YStack space={'$4'}>
{content.length && {content.map(row => (
content.map(row => { <Text key={row} size={19}>
return (
<Text key={row} size={15}>
{row} {row}
</Text> </Text>
) ))}
})} <Text size={19}>
<Text size={15}>
<Link <Link
to={'https://github.com/ethereum/consensus-specs'} to={'https://github.com/ethereum/consensus-specs'}
style={{ textDecorationLine: 'underline', color: '#484848' }} style={{ textDecorationLine: 'underline', color: '#484848' }}
@ -30,7 +27,7 @@ const AdvisoriesContent = ({ title, content }: AdvisoriesContentProps) => {
The Ethereum consensus layer specification The Ethereum consensus layer specification
</Link> </Link>
</Text> </Text>
<Text size={15} weight={'semibold'}> <Text size={19} weight={'semibold'}>
<Link <Link
to={'https://github.com/ethereum/consensus-specs'} to={'https://github.com/ethereum/consensus-specs'}
style={{ textDecorationLine: 'underline', color: '#2A4CF4', fontWeight: 'bold' }} style={{ textDecorationLine: 'underline', color: '#2A4CF4', fontWeight: 'bold' }}