stremio-web/src/routes/Calendar/Placeholder/Placeholder.tsx

47 lines
1.6 KiB
TypeScript

// Copyright (C) 2017-2024 Smart code 203358507
import React from 'react';
import { useTranslation } from 'react-i18next';
import Icon from '@stremio/stremio-icons/react';
import { Button, Image } from 'stremio/components';
import styles from './Placeholder.less';
const Placeholder = () => {
const { t } = useTranslation();
return (
<div className={styles['placeholder']}>
<div className={styles['title']}>
{t('CALENDAR_NOT_LOGGED_IN')}
</div>
<div className={styles['image-container']}>
<Image
className={styles['image']}
src={require('/images/calendar_placeholder.png')}
alt={' '}
/>
</div>
<div className={styles['overview']}>
<div className={styles['point']}>
<Icon className={styles['icon']} name={'megaphone'} />
<div className={styles['text']}>
{t('NOT_LOGGED_IN_NOTIFICATIONS')}
</div>
</div>
<div className={styles['point']}>
<Icon className={styles['icon']} name={'calendar-thin'} />
<div className={styles['text']}>
{t('NOT_LOGGED_IN_CALENDAR')}
</div>
</div>
</div>
<div className={styles['button-container']}>
<Button className={styles['button']} href={'#/intro?form=login'}>
{t('LOG_IN')}
</Button>
</div>
</div>
);
};
export default Placeholder;