-
Notifications
You must be signed in to change notification settings - Fork 96
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
9 changed files
with
213 additions
and
15 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
import { Box, Link } from 'theme-ui' | ||
|
||
interface VpnItemProps { | ||
url: string | ||
children: React.ReactNode | ||
} | ||
|
||
const VpnItem = ({ url, children }: VpnItemProps) => { | ||
return ( | ||
<Link | ||
href={url} | ||
sx={{ | ||
border: '1px solid', | ||
borderRadius: '4px', | ||
borderColor: 'grey', | ||
p: '16px', | ||
mb: '16px', | ||
display: 'block', | ||
textDecoration: 'none', | ||
color: 'text', | ||
'&:hover': { | ||
borderColor: 'primary', | ||
}, | ||
}} | ||
target="_blank" | ||
> | ||
{children} | ||
<Box | ||
sx={{ | ||
color: 'primaryDark', | ||
textDecoration: 'none', | ||
'&:hover': { | ||
textDecoration: 'underline', | ||
}, | ||
}} | ||
> | ||
Learn more | ||
</Box> | ||
</Link> | ||
) | ||
} | ||
|
||
export default VpnItem |
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 |
---|---|---|
@@ -0,0 +1,32 @@ | ||
import { Box, Image } from 'theme-ui' | ||
import Page from '../../Components/Page' | ||
import VpnItem from './VpnItem' | ||
import nordLogo from '../../../assets/nord.svg' | ||
import protonLogo from '../../../assets/proton.svg' | ||
|
||
interface VpnPageProps { | ||
tab: string | ||
} | ||
|
||
const VpnPage = ({ tab }: VpnPageProps) => { | ||
return ( | ||
<Page isCurrentTab={tab === 'vpn'} title={'VPN Recommendations'}> | ||
<VpnItem url="https://go.nordvpn.net/aff_c?offer_id=658&aff_id=79520"> | ||
<Image src={nordLogo} alt="Vpn logo" variant="vpnLogo" /> | ||
<li>Verified zero-logs policy & no IP leaks</li> | ||
<li>5,600+ servers in 59 countries</li> | ||
<li>24/7 live chat support</li> | ||
</VpnItem> | ||
<VpnItem url="https://go.getproton.me/aff_c?offer_id=26&aff_id=3825"> | ||
<Image src={protonLogo} alt="Proton logo" variant="vpnLogo" /> | ||
<Box> | ||
<li>Verified zero-logs policy & no IP leaks</li> | ||
<li>1,885 servers in 67 countries</li> | ||
<li>All apps are open-source & audited</li> | ||
</Box> | ||
</VpnItem> | ||
</Page> | ||
) | ||
} | ||
|
||
export default VpnPage |
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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