Skip to content

Commit

Permalink
Switch buttons for styled links
Browse files Browse the repository at this point in the history
  • Loading branch information
kevincoleman committed Apr 1, 2019
1 parent 1f074cf commit 72554f5
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions src/views/Register/Register.styl
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@
flex-direction: column;
align-items: center;

button.md-icon {
a.md-icon {
display: flex;
align-items: center;
padding: 0.5rem;
background-color: #ffffff;
width: 100%;
height: 2.4rem;
cursor: pointer;
&+ button.md-icon {
&+ a.md-icon {
margin-top: .5rem;
}

Expand Down
8 changes: 4 additions & 4 deletions src/views/Register/Register.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,10 @@ export class Register extends React.PureComponent<{}, any> {
<LineText>{
_("or log in to your account:") /* translators: username or password, or sign in to your account */
}</LineText>
<button onClick={() => {browserHistory.push(`/sign-in`); }} className="md-icon"><img src="/md-email-outline.svg" alt="Email" /> Login with Email</button>
<button onClick={() => {browserHistory.push(`/login/google/`); }} className="md-icon"><img src="/google-icon.svg" className="google" alt="Google" /> Login with Google</button>
<button onClick={() => {browserHistory.push(`/login/facebook/`); }} className="md-icon"><img src="/facebook-icon.svg" className="facebook" alt="Facebook" /> Login with Facebook</button>
<button onClick={() => {browserHistory.push(`/login/twitter/`); }} className="md-icon"><img src="/md-twitter.svg" className="twitter" alt="Twitter" />Login with Twitter</button>
<a href="/sign-in" className="s btn md-icon"><img src="/md-email-outline.svg" alt="Email" /> Login with Email</a>
<a href="/login/google/" className="s btn md-icon"><img src="/google-icon.svg" className="google" alt="Google" /> Login with Google</a>
<a href="/login/facebook/" className="s btn md-icon"><img src="/facebook-icon.svg" className="facebook" alt="Facebook" /> Login with Facebook</a>
<a href="/login/twitter/" className="s btn md-icon"><img src="/md-twitter.svg" className="twitter" alt="Twitter" />Login with Twitter</a>
</div>
</Card>
</div>
Expand Down
4 changes: 2 additions & 2 deletions src/views/SignIn/SignIn.styl
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@
flex-direction: column;
align-items: center;

button.md-icon {
a.md-icon {
display: flex;
align-items: center;
padding: 0.5rem;
Expand All @@ -97,7 +97,7 @@
height: 2.4rem;
cursor: pointer;

&+ button.md-icon {
&+ a.md-icon {
margin-top: .5rem;
}

Expand Down
6 changes: 3 additions & 3 deletions src/views/SignIn/SignIn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -184,9 +184,9 @@ export class SignIn extends React.PureComponent<{}, any> {
<LineText>{
_("or log in using another account:") /* translators: username or password, or sign in with social authentication */
}</LineText>
<button onClick={() => {browserHistory.push(`/login/google-oauth2/`); }} className="md-icon"><img src="/google-icon.svg" className="google" alt="Google" /> Login with Google</button>
<button onClick={() => {browserHistory.push(`/login/facebook/`); }} className="md-icon"><img src="/facebook-icon.svg" className="facebook" alt="Facebook" /> Login with Facebook</button>
<button onClick={() => {browserHistory.push(`/login/twitter/`); }} className="md-icon"><img src="/md-twitter.svg" className="twitter" alt="Twitter" />Login with Twitter</button>
<a href="/login/google/" className="s btn md-icon"><img src="/google-icon.svg" className="google" alt="Google" /> Login with Google</a>
<a href="/login/facebook/" className="s btn md-icon"><img src="/facebook-icon.svg" className="facebook" alt="Facebook" /> Login with Facebook</a>
<a href="/login/twitter/" className="s btn md-icon"><img src="/md-twitter.svg" className="twitter" alt="Twitter" />Login with Twitter</a>
</div>
</Card>

Expand Down

0 comments on commit 72554f5

Please sign in to comment.