update styles of no result component

This commit is contained in:
Max Alekseenko
2024-04-29 14:43:44 +02:00
parent a3e3fcae90
commit c736532460
3 changed files with 22 additions and 19 deletions
File diff suppressed because one or more lines are too long

Before

Width:  |  Height:  |  Size: 3.8 KiB

After

Width:  |  Height:  |  Size: 7.3 KiB

+1 -1
View File
@@ -28,7 +28,7 @@ const EmptySearchResult = ({ favoriteApps, selectedCategoryId }: Props) => (
No matching apps found.
{ 'suggestIdeasFormUrl' in feature && (
<>
{ ' ' }Have a groundbreaking idea or app suggestion?{ ' ' }
{ ' ' }Have a groundbreaking idea or app suggestion?<br/>
<LinkExternal href={ feature.suggestIdeasFormUrl }>Share it with us</LinkExternal>
</>
) }
+10 -12
View File
@@ -16,23 +16,21 @@ const EmptySearchResult = ({ text }: Props) => {
display="flex"
flexDirection="column"
alignItems="center"
justifyContent="center"
mt="50px"
>
<Icon as={ emptySearchResultIcon } boxSize={ 60 }/>
<Icon
as={ emptySearchResultIcon }
w={{ base: '160px', sm: '240px' }}
h="auto"
mb={{ base: 4, sm: 6 }}
/>
<Heading
as="h3"
marginBottom={ 2 }
fontSize={{ base: '2xl', sm: '3xl' }}
fontWeight="semibold"
>
<Heading as="h4" size="sm" mb={ 2 }>
No results
</Heading>
<Text
fontSize={{ base: 'sm' }}
variant="secondary"
align="center"
>
<Text fontSize={{ base: 'sm', sm: 'md' }} align="center">
{ text }
</Text>
</Box>