mirror of
https://github.com/cupcakearmy/unpixel.git
synced 2026-04-02 20:35:22 +00:00
initial commit
This commit is contained in:
36
src/front/settings/About.tsx
Normal file
36
src/front/settings/About.tsx
Normal 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
|
||||
Reference in New Issue
Block a user