source: frontend/src/screens/SigninScreen.js@ b612ab1

Last change on this file since b612ab1 was b612ab1, checked in by Nace Gjorgjievski <nace.gorgievski123@…>, 23 months ago

Basic functions added

  • Property mode set to 100644
File size: 1.5 KB
Line 
1import Container from "react-bootstrap/Container";
2import Form from "react-bootstrap/Form";
3import { Helmet } from "react-helmet-async";
4import Button from "react-bootstrap/Button";
5import "../styles/SigninScreen.css";
6import React from "react";
7import { Link, useLocation } from "react-router-dom";
8
9function SigninScreen() {
10 const { search } = useLocation();
11 const redirectInUrl = new URLSearchParams(search).get("redirect");
12 const redirect = redirectInUrl ? redirectInUrl : "/";
13 return (
14 <div className="pageContainer">
15 <Container className="main">
16 <Helmet>
17 <title>Најави се</title>
18 </Helmet>
19 <h1>Најави се</h1>
20 <Form className="formCointainer">
21 <Form.Group controlId="email">
22 <Form.Label>Email</Form.Label>
23 <Form.Control type="email" required />
24 </Form.Group>
25 <Form.Group controlId="password">
26 <Form.Label>Лозинка</Form.Label>
27 <Form.Control type="email" required />
28 </Form.Group>
29 <div className="submitBtnContainer">
30 <Button variant="danger" size="lg" type="submit">
31 Најави се
32 </Button>
33 </div>
34 <div className="registerParagraph">
35 Нов корисник?{" "}
36 <Link to={`/signup?redirect=${redirect}`}>Регистрирај се</Link>
37 </div>
38 </Form>
39 </Container>
40 </div>
41 );
42}
43
44export default SigninScreen;
Note: See TracBrowser for help on using the repository browser.