-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add routes, actions and reducers for local auth
- Loading branch information
1 parent
a5fafc2
commit bd9c2d4
Showing
46 changed files
with
882 additions
and
91,465 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,3 +21,6 @@ | |
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
||
# css | ||
src/tailwind.generated.css |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,32 +1,32 @@ | ||
import React from "react"; | ||
|
||
function Icon() { | ||
return ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="43" | ||
height="43" | ||
fill="none" | ||
viewBox="0 0 43 43" | ||
> | ||
<circle cx="21.809" cy="21.598" r="20.5" stroke="#828282"></circle> | ||
<g clip-path="url(#clip0)"> | ||
<path | ||
fill="#828282" | ||
d="M28.796 13.442H16.07c-1.454 0-2.637 1.154-2.637 2.572V28.43c0 1.419 1.183 2.573 2.637 2.573h5.308v-6.208h-2.11v-3.087h2.11v-2.092c0-1.703 1.42-3.087 3.164-3.087h3.2v3.087h-3.2v2.092h3.2l-.528 3.087h-2.672v6.208h4.254c1.454 0 2.637-1.154 2.637-2.573V16.014c0-1.418-1.183-2.572-2.637-2.572z" | ||
></path> | ||
</g> | ||
<defs> | ||
<clipPath id="clip0"> | ||
<path | ||
fill="#fff" | ||
d="M0 0H18V17.561H0z" | ||
transform="translate(13.433 13.442)" | ||
></path> | ||
</clipPath> | ||
</defs> | ||
</svg> | ||
); | ||
return ( | ||
<svg | ||
xmlns="http://www.w3.org/2000/svg" | ||
width="43" | ||
height="43" | ||
fill="none" | ||
viewBox="0 0 43 43" | ||
> | ||
<circle cx="21.809" cy="21.598" r="20.5" stroke="#828282"></circle> | ||
<g clipPath="url(#clip0)"> | ||
<path | ||
fill="#828282" | ||
d="M28.796 13.442H16.07c-1.454 0-2.637 1.154-2.637 2.572V28.43c0 1.419 1.183 2.573 2.637 2.573h5.308v-6.208h-2.11v-3.087h2.11v-2.092c0-1.703 1.42-3.087 3.164-3.087h3.2v3.087h-3.2v2.092h3.2l-.528 3.087h-2.672v6.208h4.254c1.454 0 2.637-1.154 2.637-2.573V16.014c0-1.418-1.183-2.572-2.637-2.572z" | ||
></path> | ||
</g> | ||
<defs> | ||
<clipPath id="clip0"> | ||
<path | ||
fill="#fff" | ||
d="M0 0H18V17.561H0z" | ||
transform="translate(13.433 13.442)" | ||
></path> | ||
</clipPath> | ||
</defs> | ||
</svg> | ||
); | ||
} | ||
|
||
export default Icon; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import React from "react"; | ||
import styled from "styled-components"; | ||
|
||
const ButtonParent = styled.div` | ||
margin: 20px 0 30px; | ||
button { | ||
background: #2f80ed; | ||
border-radius: 8px; | ||
border: none; | ||
outline: none; | ||
text-align: center; | ||
color: #fff; | ||
font-weight: 500; | ||
padding: 10px 20px; | ||
width: 100%; | ||
cursor: pointer; | ||
} | ||
button:hover { | ||
transition: opacity 0.1s ease-in; | ||
opacity: 0.9; | ||
} | ||
button:active { | ||
transition: transform 0.1s ease-in; | ||
transform: scale(0.99); | ||
} | ||
`; | ||
|
||
const Button = ({ children, clickHandler }) => { | ||
return ( | ||
<ButtonParent> | ||
<button onClick={clickHandler}>{children}</button> | ||
</ButtonParent> | ||
); | ||
}; | ||
|
||
export default Button; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import React from "react"; | ||
import styled from "styled-components"; | ||
|
||
const CenterBoxParent = styled.div` | ||
/* Positioning */ | ||
grid-row: 2 / 3; | ||
grid-column: 4 / 5; | ||
height: fit-content; | ||
align-self: center; | ||
/* Box decorations */ | ||
border: 1px solid #bdbdbd; | ||
border-radius: 1.5rem; | ||
/* Spacing */ | ||
padding: 3rem; | ||
display: flex; | ||
flex-direction: column; | ||
justify-content: space-around; | ||
} | ||
`; | ||
|
||
const CenterBox = ({ children }) => { | ||
return <CenterBoxParent>{children}</CenterBoxParent>; | ||
}; | ||
|
||
export default CenterBox; |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,73 @@ | ||
import React from "react"; | ||
import { Link } from "react-router-dom"; | ||
import styled from "styled-components"; | ||
|
||
import Facebook from "../assets/svg/Facebook"; | ||
import GitHub from "../assets/svg/GitHub"; | ||
import Google from "../assets/svg/Google"; | ||
import Twitter from "../assets/svg/Twitter"; | ||
|
||
const FooterParent = styled.div` | ||
color: #828282; | ||
display: flex; | ||
flex-direction: column; | ||
align-items: center; | ||
h2 { | ||
font-size: 1rem; | ||
font-weight: 400; | ||
} | ||
a { | ||
color: #2f80ed; | ||
margin-left: 5px; | ||
text-decoration: none; | ||
} | ||
.FooterIcons { | ||
display: flex; | ||
margin: 1rem; | ||
} | ||
.FooterIcons svg:hover { | ||
cursor: pointer; | ||
filter: brightness(0.5); | ||
} | ||
.FooterIcons svg:not(:last-of-type) { | ||
margin-right: 1.2rem; | ||
} | ||
`; | ||
|
||
const Footer = ({ type }) => { | ||
let bottomText; | ||
|
||
if (type === "login") { | ||
bottomText = ( | ||
<h2> | ||
Don't have an account yet?<Link to="/signup">Register</Link> | ||
</h2> | ||
); | ||
} else if (type === "signup") { | ||
bottomText = ( | ||
<h2> | ||
Already a member?<Link to="/login">Login</Link> | ||
</h2> | ||
); | ||
} | ||
|
||
return ( | ||
<FooterParent> | ||
<h2>or continue with these social profiles</h2> | ||
<div className="FooterIcons"> | ||
<Facebook /> | ||
<GitHub /> | ||
<Google /> | ||
<Twitter /> | ||
</div> | ||
{bottomText} | ||
</FooterParent> | ||
); | ||
}; | ||
|
||
export default Footer; |
Oops, something went wrong.