feat: update front layout

This commit is contained in:
Maël Gangloff
2024-07-26 23:55:12 +02:00
parent f72f6df546
commit 133850da1c
9 changed files with 214 additions and 40 deletions

View File

@@ -1,4 +1,4 @@
import React, {createContext, useContext, useEffect, useState} from "react";
import React, {createContext, useContext, useState} from "react";
import {Alert, Button, Card, Flex, Form, Input} from "antd";
import {login} from "../utils/api";
import {useNavigate} from "react-router-dom";
@@ -28,7 +28,6 @@ export default function Page() {
return <Flex gap="middle" align="center" justify="center" vertical><Card
title="Log in"
style={{width: 500}}
>
{error &&
<Alert
@@ -68,6 +67,11 @@ export default function Page() {
Submit
</Button>
</Form.Item>
<Form.Item wrapperCol={{offset: 8, span: 16}}>
<Button type="primary" htmlType="button" href="/login/oauth">
Log in with SSO
</Button>
</Form.Item>
</Form>
</Card>
</Flex>