-
Notifications
You must be signed in to change notification settings - Fork 38
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
401 changed files
with
9,153 additions
and
10,366 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,8 @@ | ||
import styled from 'styled-components' | ||
import { Box } from 'ooni-components' | ||
const BlockText = ({ className, ...props }) => ( | ||
<div | ||
className={`bg-gray-100 border-l border-blue-600 p-3 font-base ${className}`} | ||
{...props} | ||
/> | ||
) | ||
|
||
const BlockText = styled(Box)` | ||
background-color: ${props => props.theme.colors.gray0}; | ||
border-left: 10px solid ${props => props.theme.colors.blue5}; | ||
` | ||
|
||
BlockText.defaultProps = { | ||
p: 3, | ||
fontSize: 1, | ||
} | ||
|
||
export default BlockText | ||
export default BlockText |
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,29 +1,25 @@ | ||
import NLink from 'next/link' | ||
import { Box, Button, Flex, Heading, Text } from 'ooni-components' | ||
import { Button } from 'ooni-components' | ||
import { FormattedMessage } from 'react-intl' | ||
|
||
const CallToActionBox = ({title, text}) => { | ||
const CallToActionBox = ({ title, text }) => { | ||
return ( | ||
<Flex my={4} bg='gray3' flexWrap='wrap'> | ||
<Box width={1} mx={4} my={2}> | ||
<Heading h={4}> | ||
{title} | ||
</Heading> | ||
<Text fontSize={2}> | ||
{text} | ||
</Text> | ||
</Box> | ||
<Flex alignItems='center' mx={4} my={4} flexDirection={['column', 'row']}> | ||
<Box mr={4} mb={[3, 0]}> | ||
<NLink href='https://ooni.org/install'> | ||
<div className="flex my-8 bg-gray-400 flex-wrap"> | ||
<div className="w-full mx-8 my-2"> | ||
<h4>{title}</h4> | ||
<div className="text-xl">{text}</div> | ||
</div> | ||
<div className="flex items-center m-8 flex-col md:flex-row"> | ||
<div className="mr-8 mb-4 md:mb-0"> | ||
<NLink href="https://ooni.org/install"> | ||
<Button> | ||
<FormattedMessage id='Country.Overview.NoData.Button.InstallProbe' /> | ||
<FormattedMessage id="Country.Overview.NoData.Button.InstallProbe" /> | ||
</Button> | ||
</NLink> | ||
</Box> | ||
</Flex> | ||
</Flex> | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} | ||
|
||
export default CallToActionBox | ||
export default CallToActionBox |
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 was deleted.
Oops, something went wrong.
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,32 +1,32 @@ | ||
import Flag from 'components/Flag' | ||
import { GridBox } from 'components/VirtualizedGrid' | ||
import { Box, Flex, Text } from 'ooni-components' | ||
|
||
const CountryList = ({ countries, itemsPerRow = 6, gridGap = 3 }) => { | ||
const gridTemplateColumns = ['1fr 1fr', '1fr 1fr', '1fr 1fr 1fr 1fr', [...Array(itemsPerRow)].map((i) => ('1fr')).join(' ')] | ||
import { Text } from 'ooni-components' | ||
|
||
const CountryList = ({ countries, itemsPerRow = 6 }) => { | ||
return ( | ||
<Box sx={{ | ||
display: 'grid', | ||
gridGap, | ||
gridTemplateColumns | ||
}}> | ||
// lg:grid-cols-${itemsPerRow} is added to the safelist in tailwindConfig.config.js | ||
<div | ||
className={`grid gap-2 grid-cols-2 md:grid-cols-4 lg:grid-cols-${itemsPerRow}`} | ||
> | ||
{countries.map((c) => ( | ||
<GridBox | ||
key={c.alpha_2} | ||
href={`/country/${c.alpha_2}`} | ||
title={ | ||
<Flex mb={2} alignItems='center'> | ||
<Box alignSelf='start'><Flag countryCode={c.alpha_2} size={22} border /></Box> | ||
<Text fontSize={1} fontWeight='bold' ml={2} lineHeight='24px'>{c.localisedName}</Text> | ||
</Flex> | ||
<div className="flex mb-2 items-center"> | ||
<div className="self-start"> | ||
<Flag countryCode={c.alpha_2} size={22} border /> | ||
</div> | ||
<Text fontSize={1} fontWeight="bold" ml={2} lineHeight="24px"> | ||
{c.localisedName} | ||
</Text> | ||
</div> | ||
} | ||
count={c.count} | ||
/> | ||
)) | ||
} | ||
</Box> | ||
))} | ||
</div> | ||
) | ||
} | ||
|
||
export default CountryList | ||
export default CountryList |
Oops, something went wrong.