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-07-25 17:25:05 +0900
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2a42887353918964e39d348bc5335285e52d523f
2a428873
1 parent
8d93a450
add link in social login
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
5 deletions
front/src/Routes/Auth/AuthPresenter.js
front/src/Routes/Auth/AuthPresenter.js
View file @
2a42887
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"
;
...
...
@@ -13,6 +15,7 @@ import {
const
Wrapper
=
styled
.
div
`
width: 100%;
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
...
...
@@ -36,7 +39,7 @@ const StateChanger = styled(Box)`
margin-bottom: 15px;
`
;
const
Link
=
styled
.
span
`
const
ToggleSpan
=
styled
.
span
`
cursor: pointer;
color: #0652dd;
`
;
...
...
@@ -63,7 +66,7 @@ const Form = styled(Box)`
const
SocialLogin
=
styled
(
Box
)
`
display: flex;
svg
{
a
{
&:not(:last-child) {
margin-right: 20px;
}
...
...
@@ -82,9 +85,11 @@ export default ({
phoneNum
,
onSubmit
,
})
=>
(
<>
<
Header
/>
<
Wrapper
>
<
TitleContainer
>
<
Title
>
KhuChat
<
/Title
>
<
Title
>
Linker
<
/Title
>
<
/TitleContainer
>
<
Form
>
{
action
===
"logIn"
?
(
...
...
@@ -122,20 +127,32 @@ export default ({
{
action
===
"logIn"
?
(
<>
Don
'
t
you
have
an
account
?
<
Link
onClick
=
{()
=>
setAction
(
"signUp"
)}
>
Sign
Up
<
/Link
>
<
ToggleSpan
onClick
=
{()
=>
setAction
(
"signUp"
)}
>
{
" "
}
Sign
Up
{
" "
}
<
/ToggleSpan
>
<
/
>
)
:
(
<>
Did
you
have
an
account
?
<
Link
onClick
=
{()
=>
setAction
(
"logIn"
)}
>
Log
in
<
/Link
>
<
ToggleSpan
onClick
=
{()
=>
setAction
(
"logIn"
)}
>
Log
in
<
/ToggleSpan
>
<
/
>
)}
<
/StateChanger
>
<
SocialLogin
>
<
Link
to
=
"/facebook"
>
<
FontAwesomeIcon
icon
=
{
faFacebook
}
/
>
<
/Link
>
<
Link
to
=
"/google"
>
<
FontAwesomeIcon
icon
=
{
faGoogle
}
/
>
<
/Link
>
<
Link
to
=
"/twitter"
>
<
FontAwesomeIcon
icon
=
{
faTwitter
}
/
>
<
/Link
>
<
Link
to
=
"/github"
>
<
FontAwesomeIcon
icon
=
{
faGithub
}
/
>
<
/Link
>
<
/SocialLogin
>
<
/Wrapper
>
<
/
>
);
...
...
Please
register
or
login
to post a comment