mirror of
https://github.com/cpvalente/ontime.git
synced 2026-08-16 04:43:35 +00:00
305d6b6476
* chore: update documentation links * fix: sentry has no access to error context * style: clarify event history * fix: issue with clipboard write in safari * style: clarify event history * refactor: improvements to follow logic in rundown * refactor: improvements in go mode * several style tweaks and small improvements
69 lines
2.2 KiB
TypeScript
69 lines
2.2 KiB
TypeScript
import { Modal, ModalBody, ModalCloseButton, ModalContent, ModalHeader, ModalOverlay } from '@chakra-ui/react';
|
|
|
|
import { ReactComponent as OntimeLogo } from '@/assets/images/ontime-logo.svg';
|
|
|
|
import { version } from '../../../../package.json';
|
|
import { gitbookUrl, githubUrl } from '../../../externals';
|
|
import ModalLink from '../ModalLink';
|
|
|
|
import UpdateChecker from './UpdateChecker';
|
|
|
|
import styles from '../Modal.module.scss';
|
|
|
|
interface AboutModalProps {
|
|
isOpen: boolean;
|
|
onClose: () => void;
|
|
}
|
|
|
|
export default function AboutModal(props: AboutModalProps) {
|
|
const { isOpen, onClose } = props;
|
|
|
|
return (
|
|
<Modal
|
|
size='sm'
|
|
isOpen={isOpen}
|
|
onClose={onClose}
|
|
closeOnOverlayClick={false}
|
|
motionPreset='slideInBottom'
|
|
scrollBehavior='inside'
|
|
preserveScrollBarGap
|
|
variant='ontime-small'
|
|
>
|
|
<ModalOverlay />
|
|
<ModalContent>
|
|
<ModalHeader>
|
|
About Ontime
|
|
<ModalCloseButton />
|
|
</ModalHeader>
|
|
|
|
<ModalBody className={styles.body}>
|
|
<div className={styles.twoColumn}>
|
|
<OntimeLogo className={styles.logo} />
|
|
<div>
|
|
<div className={styles.padBottom}>
|
|
<span className={styles.sectionTitle}>Ontime</span>
|
|
Free Open Source Software for managing rundowns and event timers
|
|
<ModalLink href='https://www.getontime.no'>www.getontime.no</ModalLink>
|
|
</div>
|
|
<div className={styles.padBottom}>
|
|
<span className={styles.sectionTitle}>Current version</span>
|
|
|
|
{`You are currently using Ontime ${version}`}
|
|
</div>
|
|
<div className={styles.padBottom}>
|
|
<span className={styles.sectionTitle}>Docs</span>
|
|
<ModalLink href={gitbookUrl}>Read the docs over at GitBook</ModalLink>
|
|
</div>
|
|
<div>
|
|
<span className={styles.sectionTitle}>Github</span>
|
|
<ModalLink href={githubUrl}>Follow the project on GitHub</ModalLink>
|
|
</div>
|
|
<UpdateChecker version={version} />
|
|
</div>
|
|
</div>
|
|
</ModalBody>
|
|
</ModalContent>
|
|
</Modal>
|
|
);
|
|
}
|