Skip to content

Commit

Permalink
feat: add component button google
Browse files Browse the repository at this point in the history
  • Loading branch information
ialexanderbrito committed Mar 25, 2022
1 parent 21598fd commit 7cd1e97
Show file tree
Hide file tree
Showing 2 changed files with 60 additions and 0 deletions.
43 changes: 43 additions & 0 deletions src/components/ButtonGoogle/ButtonGoogle.module.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
.googleBtn {
width: 18rem;
height: 42px;
background-color: #fff;
border-radius: 3px;
margin-top: 16px;
box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.25);
cursor: pointer;

.googleIconWrapper {
position: absolute;
margin-top: 1px;
margin-left: 1px;
width: 40px;
height: 40px;
border-radius: 3px;
background-color: #fff;
}
.googleIcon {
position: absolute;
margin-top: 11px;
margin-left: 11px;
width: 18px;
height: 18px;
}
.btnText {
text-align: center;
justify-content: center;
align-items: center;
margin-top: 11px;
margin-left: 11px;
color: #3c4043;
font-size: 14px;
letter-spacing: 0.2px;
font-family: "Roboto";
}
&:hover {
box-shadow: 0 0 3px #4285f4;
}
&:active {
background: #fff;
}
}
17 changes: 17 additions & 0 deletions src/components/ButtonGoogle/index.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
import logoGoogle from 'assets/google-icon.svg';
import { ButtonGoogleProps } from 'types/IComponents';

import styles from './ButtonGoogle.module.scss';

export function ButtonGoogle(props: ButtonGoogleProps) {
return (
<div className={styles.googleBtn} onClick={props.onClick}>
<div className={styles.googleIconWrapper}>
<img className={styles.googleIcon} src={logoGoogle} />
</div>
<p className={styles.btnText}>
<b>Fazer login com o Google</b>
</p>
</div>
);
}

0 comments on commit 7cd1e97

Please sign in to comment.