initial commit

This commit is contained in:
2021-04-06 15:03:44 +02:00
commit 606832a141
21 changed files with 9238 additions and 0 deletions

View File

@@ -0,0 +1,36 @@
import React, { useCallback } from 'react'
import { shell } from 'electron'
const Link: React.FC<{ text: string; link: string }> = ({ text, link }) => {
const fn = useCallback(
(e: any) => {
e.preventDefault()
shell.openExternal(link)
},
[link]
)
return (
<a onClick={fn} href={link}>
{' '}
{text}{' '}
</a>
)
}
const About: React.FC = () => {
return (
<div>
<h3 className="ma0 mb2">About</h3>
<p>
UnPixel aims at helping you following the 20/20/20 rule to alleviate stress on the eyes caused by Computer
Vision Syndrome (CVS).
<br />
Read more
<Link text="here" link="https://en.wikipedia.org/wiki/Computer_vision_syndrome" /> and
<Link text="here." link="https://www.aoa.org/healthy-eyes/eye-and-vision-conditions/computer-vision-syndrome" />
</p>
</div>
)
}
export default About