-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a2caddd
commit 6a9c8cd
Showing
2 changed files
with
19 additions
and
10 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 |
---|---|---|
@@ -1,10 +1,6 @@ | ||
<div class="container"> | ||
|
||
<button class="google-button"><span>Continuar com o Google</span></button> | ||
<button class="facebook-button"><span>Continuar com o Facebook</span></button> | ||
<button class="email-button"><span>Continuar com e-mail</span></button> | ||
<a href="" class="cadastro">Cadastra-se</a> | ||
|
||
|
||
<button class="google-button" (click)="loginWithGoogle()"><span>Continuar com o Google</span></button> | ||
<button class="facebook-button" (click)="loginWithFacebook()"><span>Continuar com o Facebook</span></button> | ||
<button class="email-button"><span>Continuar com e-mail</span></button> | ||
<a href="" class="cadastro">Cadastra-se</a> | ||
</div> | ||
|
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,10 +1,23 @@ | ||
import { Component } from '@angular/core'; | ||
import { Router } from '@angular/router'; | ||
|
||
@Component({ | ||
selector: 'app-login-social', | ||
templateUrl: './login-social.component.html', | ||
styleUrls: ['./login-social.component.css'] | ||
}) | ||
export class LoginSocialComponent { | ||
|
||
} | ||
export class LoginSocialComponent { | ||
|
||
constructor(private router: Router) {} | ||
|
||
loginWithGoogle() { | ||
|
||
window.location.href = 'http://localhost:8000/auth/login'; | ||
} | ||
|
||
loginWithFacebook() { | ||
|
||
window.location.href = 'http://localhost:8000/facebook'; | ||
} | ||
} |