Improve responsiveness and structure

This commit is contained in:
2020-07-24 18:42:26 +02:00
parent 8d182a1177
commit 84a6cc4f4e
4 changed files with 79 additions and 56 deletions
+13 -12
View File
@@ -1,5 +1,5 @@
import React from 'react';
import { Box, Heading } from 'grommet';
import { Box, Text } from 'grommet';
import placeholder from '../assets/placeholder-music.jpg';
@@ -20,20 +20,13 @@ export const Other = ({
return (
<Box
round='xxsmall'
overflow='hidden'
align='center'
pad='small'
pad='xsmall'
onClick={() => handleClick(name)}
width='130px'
>
<Heading
level='4'
margin={{ bottom: 'small', top: 'small', left: 'small' }}
>
{name}
</Heading>
<Box
height='small'
width='small'
height='120px'
width='120px'
round='full'
background={{
repeat: 'no-repeat',
@@ -41,6 +34,14 @@ export const Other = ({
image: `url(${image})`,
}}
/>
<Text
margin={{ bottom: 'small', top: 'small', left: 'small' }}
textAlign='center'
weight='bold'
wordBreak='break-word'
>
{name}
</Text>
</Box>
);
};