Files
no-copy-frontend/src/app/[locale]/login/page.tsx
T

64 lines
1.9 KiB
TypeScript
Raw Normal View History

2025-11-25 17:13:16 +07:00
import { Metadata } from 'next';
2025-11-27 13:48:24 +07:00
import styles from '@/app/styles/login.module.scss'
import LogoIcon from '@/app/ui/logo-icon';
import Link from 'next/link';
import LoginForm from '@/app/ui/login-form';
2025-12-10 16:39:13 +07:00
import LanguageSwitcher from '@/app/components/LanguageSwitcher';
import { useTranslations } from 'next-intl';
2025-11-25 17:13:16 +07:00
export const metadata: Metadata = {
title: 'Login',
};
2025-12-04 17:10:51 +07:00
export default function Page() {
2025-12-10 16:39:13 +07:00
const t = useTranslations('Login-register-form');
2025-11-25 17:13:16 +07:00
return (
2025-11-27 13:48:24 +07:00
<div className={`${styles['login-container-wrapper']}`}>
2025-12-10 16:39:13 +07:00
<div className={`${styles['login-container-language']}`}>
<LanguageSwitcher />
</div>
2025-11-27 13:48:24 +07:00
<div className={`${styles['login-container']}`}>
<div className={`${styles['logo']}`}>
<LogoIcon />
<h1>NO COPY</h1>
2025-12-10 16:39:13 +07:00
<p>
{t('copyright-protection')}
</p>
2025-11-27 13:48:24 +07:00
</div>
<LoginForm />
<div className="divider">
2025-12-10 16:39:13 +07:00
<span>
{t('or-log-in-via')}
</span>
2025-11-27 13:48:24 +07:00
</div>
<div className={`${styles['register-link']}`}>
2025-12-10 16:39:13 +07:00
<p>{t('no-account')}?
<Link href="register"> {t('register')}</Link>
</p>
2025-11-27 13:48:24 +07:00
</div>
<div className={`${styles['features']}`}>
<div className={`${styles['feature']}`}>
<svg className={`${styles['feature-icon']}`} viewBox="0 0 24 24" fill="currentColor">
<path d="M9 12l2 2 4-4m6 2a9 9 0 11-18 0 9 9 0 0118 0z"></path>
</svg>
2025-12-10 16:39:13 +07:00
{t('protecting-watermark')}
2025-11-27 13:48:24 +07:00
</div>
<div className={`${styles['feature']}`}>
<svg className={`${styles['feature-icon']}`} viewBox="0 0 24 24" fill="currentColor">
<path d="M13 10V3L4 14h7v7l9-11h-7z"></path>
</svg>
2025-12-10 16:39:13 +07:00
{t('monitoring-violations')}
2025-11-27 13:48:24 +07:00
</div>
<div className={`${styles['feature']}`}>
<svg className={`${styles['feature-icon']}`} viewBox="0 0 24 24" fill="currentColor">
<path d="M12 1L3 5v6c0 5.55 3.84 9.74 9 11 5.16-1.26 9-5.45 9-11V5l-9-4z"></path>
</svg>
2025-12-10 16:39:13 +07:00
{t('safe-storage')}
2025-11-27 13:48:24 +07:00
</div>
</div>
</div>
2025-11-25 17:13:16 +07:00
</div>
);
}