Toggle navigation
Toggle navigation
This project
Loading...
Sign in
2020-1-capstone-design1
/
Triz_Project1
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
1
Merge Requests
0
Wiki
Snippets
Network
Create a new issue
Builds
Commits
Issue Boards
Authored by
sdy
2020-08-05 15:14:59 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
3c296bbd792f0aff52dcbdc478fa6a8004aa1579
3c296bbd
1 parent
c790d953
update auth style
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
18 deletions
front/src/Routes/Auth/AuthPresenter.js
front/src/Routes/Auth/AuthPresenter.js
View file @
3c296bb
...
...
@@ -2,7 +2,6 @@ import React from "react";
import
styled
from
"styled-components"
;
import
{
Link
}
from
"react-router-dom"
;
import
{
Helmet
}
from
"react-helmet"
;
import
Header
from
"../../Components/Header"
;
import
Input
from
"../../Components/Input"
;
import
Button
from
"../../Components/Button"
;
import
{
FontAwesomeIcon
}
from
"@fortawesome/react-fontawesome"
;
...
...
@@ -12,6 +11,7 @@ import {
faGithub
,
faGoogle
,
}
from
"@fortawesome/free-brands-svg-icons"
;
import
loginBackground
from
"../../Imgs/login-background4.jpg"
;
const
Wrapper
=
styled
.
div
`
width: 100%;
...
...
@@ -20,6 +20,19 @@ const Wrapper = styled.div`
flex-direction: column;
justify-content: center;
align-items: center;
background-image: url(
${
loginBackground
}
);
background-size: cover;
`
;
const
SubWrapper
=
styled
.
div
`
background-color: rgba(57, 65, 74, 0.5);
border-radius: 7px;
padding: 5%;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
color: white;
`
;
const
Box
=
styled
.
div
`
...
...
@@ -40,8 +53,9 @@ const StateChanger = styled(Box)`
`
;
const
ToggleSpan
=
styled
.
span
`
margin-left: 5px;
cursor: pointer;
color: #0
652dd
;
color: #0
79992
;
`
;
const
Form
=
styled
(
Box
)
`
...
...
@@ -75,6 +89,10 @@ const SocialLogin = styled(Box)`
opacity: 0.8;
`
;
const
StyledLink
=
styled
(
Link
)
`
color: white;
`
;
export
default
({
action
,
setAction
,
...
...
@@ -86,10 +104,12 @@ export default ({
onSubmit
,
})
=>
(
<>
<
Header
/>
<
Wrapper
>
<
SubWrapper
>
<
TitleContainer
>
<
StyledLink
to
=
"/"
>
<
Title
>
Linker
<
/Title
>
<
/StyledLink
>
<
/TitleContainer
>
<
Form
>
{
action
===
"logIn"
?
(
...
...
@@ -111,13 +131,8 @@ export default ({
<
form
onSubmit
=
{
onSubmit
}
>
<
Input
placeholder
=
{
"Email"
}
type
=
"email"
{...
email
}
/
>
<
Input
placeholder
=
{
"UserName"
}
{...
username
}
/
>
<
Input
placeholder
=
{
"PhoneNumber"
}
{...
phoneNum
}
/
>
<
Input
placeholder
=
{
"Password"
}
type
=
"password"
{...
password
}
/
>
<
Input
placeholder
=
{
"Password for validation"
}
type
=
"password"
{...
password2
}
/
>
<
Input
placeholder
=
{
"PhoneNumber"
}
{...
phoneNum
}
/
>
<
Button
text
=
{
"Sign Up"
}
/
>
<
/form
>
<
/
>
...
...
@@ -135,24 +150,28 @@ export default ({
)
:
(
<>
Did
you
have
an
account
?
<
ToggleSpan
onClick
=
{()
=>
setAction
(
"logIn"
)}
>
Log
in
<
/ToggleSpan
>
<
ToggleSpan
onClick
=
{()
=>
setAction
(
"logIn"
)}
>
{
" "
}
Log
in
{
" "
}
<
/ToggleSpan
>
<
/
>
)}
<
/StateChanger
>
<
SocialLogin
>
<
Link
to
=
"/facebook"
>
<
Styled
Link
to
=
"/facebook"
>
<
FontAwesomeIcon
icon
=
{
faFacebook
}
/
>
<
/
Link
>
<
Link
to
=
"/google"
>
<
/Styled
Link
>
<
Styled
Link
to
=
"/google"
>
<
FontAwesomeIcon
icon
=
{
faGoogle
}
/
>
<
/
Link
>
<
Link
to
=
"/twitter"
>
<
/Styled
Link
>
<
Styled
Link
to
=
"/twitter"
>
<
FontAwesomeIcon
icon
=
{
faTwitter
}
/
>
<
/
Link
>
<
Link
to
=
"/github"
>
<
/Styled
Link
>
<
Styled
Link
to
=
"/github"
>
<
FontAwesomeIcon
icon
=
{
faGithub
}
/
>
<
/
Link
>
<
/Styled
Link
>
<
/SocialLogin
>
<
/SubWrapper
>
<
/Wrapper
>
<
/
>
);
...
...
Please
register
or
login
to post a comment