-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'd/ui-fixes' of github.com:vocdoni/ui-scaffold into d/ui…
…-fixes
- Loading branch information
Showing
15 changed files
with
76 additions
and
77 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,20 +1,18 @@ | ||
import { Box, Button, Card, CardBody, Flex, Img, Text } from '@chakra-ui/react' | ||
import { Box, Card, CardBody, Flex, Img, Text } from '@chakra-ui/react' | ||
import { Trans } from 'react-i18next' | ||
import empty from '/assets/illustrations/2.png' | ||
|
||
export const NoResultsFiltering = () => { | ||
return ( | ||
<Card variant='no-elections' minH='100%' maxW='650' m='80px auto'> | ||
<CardBody> | ||
<Flex justifyContent={'center'}> | ||
<Img src={empty} /> | ||
</Flex> | ||
<Box mt='50px' textAlign='center'> | ||
<Text as='h3' fontSize='md' fontWeight='bold'> | ||
<Trans i18nKey='no_results_filtering'>Your current search filter returns no results</Trans> | ||
</Text> | ||
</Box> | ||
</CardBody> | ||
</Card> | ||
) | ||
} | ||
export const NoResultsFiltering = () => ( | ||
<Card variant='no-elections' minH='100%' maxW='650' m='80px auto'> | ||
<CardBody> | ||
<Flex justifyContent={'center'}> | ||
<Img src={empty} /> | ||
</Flex> | ||
<Box mt='50px' textAlign='center'> | ||
<Text as='h3' fontSize='md' fontWeight='bold'> | ||
<Trans i18nKey='no_results_filtering'>Your current search filter returns no results</Trans> | ||
</Text> | ||
</Box> | ||
</CardBody> | ||
</Card> | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,10 @@ | ||
import { Box, Flex, Link } from '@chakra-ui/react' | ||
import { useTranslation } from 'react-i18next' | ||
import { Link as ReactRouterLink } from 'react-router-dom' | ||
import { useSubscription } from '~components/Auth/Subscription' | ||
import { VocdoniLogo } from '~components/Layout/Logo' | ||
import { PlanId } from '~constants' | ||
|
||
const SaasFooter = () => { | ||
const { t } = useTranslation() | ||
const { subscription } = useSubscription() | ||
const isCustom = subscription?.plan.id === PlanId.Custom | ||
const isFree = subscription?.plan.id === PlanId.Free | ||
|
||
return ( | ||
<Box bgColor={'process_create.bg_light'} _dark={{ bgColor: 'process_create.bg_dark' }}> | ||
|
@@ -29,13 +24,13 @@ const SaasFooter = () => { | |
<Box minW='100px'> | ||
<VocdoniLogo /> | ||
</Box> | ||
<Link variant='footer' as={ReactRouterLink} to='' mt='5px' style={{ transform: 'scale(0.8)' }}> | ||
<Link variant='footer' as={ReactRouterLink} to='' mt='5px' fontSize={'sm'}> | ||
{t('terms_and_conditions', { defaultValue: 'Terms and Conditions' })} | ||
</Link> | ||
<Link variant='footer' as={ReactRouterLink} to='' mt='5px' style={{ transform: 'scale(0.8)' }}> | ||
<Link variant='footer' as={ReactRouterLink} to='' mt='5px' fontSize={'sm'}> | ||
{t('privacy_policy', { defaultValue: 'Privacy Policy' })} | ||
</Link> | ||
<Link variant='footer' mt='5px' href='mailto:[email protected]' style={{ transform: 'scale(0.8)' }}> | ||
<Link variant='footer' mt='5px' href='mailto:[email protected]' fontSize={'sm'}> | ||
[email protected] | ||
</Link> | ||
</Flex> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18ef675
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 Deployed on https://67a1cd9429c65db60400cbfb--vocdoni-app-dev.netlify.app
18ef675
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🚀 Deployed on https://67a1cd9955b045d09ba18b57--vocdoni-app-stg.netlify.app