Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Petr Šlézar
PA165 - Movies Recommender Catalogue
Commits
7581714a
Commit
7581714a
authored
Jun 18, 2022
by
Daniel Puchala
Browse files
feat: changes to the page with invalid login
parent
9f4bb349
Changes
1
Hide whitespace changes
Inline
Side-by-side
frontend/src/components/Login.tsx
View file @
7581714a
...
...
@@ -17,7 +17,6 @@ export const Login = () => {
navigate
(
'
/pa165/
'
,
{
replace
:
true
});
}
else
{
setIsError
(
true
);
alert
(
'
Invalid credentials
'
);
}
}
...
...
@@ -25,7 +24,7 @@ export const Login = () => {
<
div
className
=
"h-[100vh]"
>
<
Header
/>
<
div
className
=
"grid place-items-center h-[90%]"
>
{
isError
&&
<
div
className
=
"text-
2
xl text-center font-bold mt-auto text-red-
9
00"
>
Invalid credentials
</
div
>
}
{
isError
&&
<
div
className
=
"text-
3
xl text-center font-bold mt-auto
mb-4
text-red-
6
00"
>
Invalid credentials
</
div
>
}
<
form
onSubmit
=
{
handleSubmit
}
className
=
{
`flex flex-col w-1/4 gap-3 border-2 border-black rounded-lg bg-slate-300 p-4 mb-auto
${
isError
||
'
mt-auto
'
}
`
}
>
<
p
className
=
"text-2xl text-center font-bold"
>
Login
</
p
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment