1
|
import logo from '/public/usp-logo.svg';
|
2
|
import Image from 'next/image';
|
3
|
import styles from '/styles/login.module.scss';
|
4
|
import { Col, Container, Row, Stack } from 'react-bootstrap';
|
5
|
|
6
|
/**
|
7
|
* Creates layout of a login screen.
|
8
|
* @param props Html structure of a login form.
|
9
|
* @returns The login screen.
|
10
|
*/
|
11
|
export function LoginLayout(props: LoginProps) {
|
12
|
return (
|
13
|
<Container>
|
14
|
<Row className="min-vh-100 align-items-center">
|
15
|
<Col md={8}>
|
16
|
<Stack gap={5}>
|
17
|
<div>
|
18
|
<Image
|
19
|
src={logo}
|
20
|
alt="Ústav státu a práva Akademie věd ČR"
|
21
|
></Image>
|
22
|
</div>
|
23
|
<h1 className={styles.title}>
|
24
|
Vítejte na stránkách Ústavu státu a práva Akademie věd ČR pro
|
25
|
anotaci dokumentů v rámci projektu TAČR TL03000152 - Umělá
|
26
|
inteligence, média a právo
|
27
|
</h1>
|
28
|
</Stack>
|
29
|
</Col>
|
30
|
<Col md={4}>
|
31
|
<main>{props.children}</main>
|
32
|
</Col>
|
33
|
</Row>
|
34
|
</Container>
|
35
|
);
|
36
|
}
|
37
|
|
38
|
/**
|
39
|
* Props prepared for the login form that is passed to the login layout.
|
40
|
*/
|
41
|
export type LoginProps = {
|
42
|
children: React.ReactNode;
|
43
|
};
|