-
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.
feat: created SignInButton and styled it
- Loading branch information
1 parent
15ab904
commit 840e305
Showing
7 changed files
with
66 additions
and
0 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
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 |
---|---|---|
|
@@ -50,4 +50,8 @@ | |
} | ||
} | ||
} | ||
|
||
button { | ||
margin-left: auto; | ||
} | ||
} |
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,20 @@ | ||
import { FaGithub } from "react-icons/fa"; | ||
import { FiX } from "react-icons/fi"; | ||
|
||
import styles from "./styles.module.scss"; | ||
|
||
export function SignInButton() { | ||
const isUserLoggedIn = true; | ||
return isUserLoggedIn ? ( | ||
<button type="button" className={styles.signInButton}> | ||
<FaGithub color="#04d361" /> | ||
Marcos Paulo | ||
<FiX color="#737388" className={styles.closeIcon} /> | ||
</button> | ||
) : ( | ||
<button type="button" className={styles.signInButton}> | ||
<FaGithub color="#eba417" /> | ||
Sign In with Github | ||
</button> | ||
); | ||
} |
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,33 @@ | ||
.signInButton { | ||
height: 3rem; | ||
border-radius: 3rem; | ||
background: var(--gray-850); | ||
border: 0; | ||
padding: 0 1.5rem; | ||
|
||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
|
||
color: var(--white); | ||
font-weight: bold; | ||
|
||
svg { | ||
width: 20px; | ||
height: 20px; | ||
} | ||
|
||
svg:first-child { | ||
margin-right: 1rem; | ||
} | ||
|
||
svg.closeIcon { | ||
margin-left: 1rem; | ||
} | ||
|
||
transition: filter 0.2s; | ||
|
||
&:hover { | ||
filter: brightness(0.8); | ||
} | ||
} |
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 |
---|---|---|
|
@@ -2543,6 +2543,11 @@ [email protected]: | |
object-assign "^4.1.1" | ||
scheduler "^0.20.2" | ||
|
||
react-icons@^4.3.1: | ||
version "4.3.1" | ||
resolved "https://registry.yarnpkg.com/react-icons/-/react-icons-4.3.1.tgz#2fa92aebbbc71f43d2db2ed1aed07361124e91ca" | ||
integrity sha512-cB10MXLTs3gVuXimblAdI71jrJx8njrJZmNMEMC+sQu5B/BIOmlsAjskdqpn81y8UBVEGuHODd7/ci5DvoSzTQ== | ||
|
||
[email protected]: | ||
version "17.0.2" | ||
resolved "https://registry.yarnpkg.com/react-is/-/react-is-17.0.2.tgz#e691d4a8e9c789365655539ab372762b0efb54f0" | ||
|