This file contains hidden or 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
<div class="background"> | |
<div class="login-container"> | |
<div class="text-container"> | |
<h1>Hey Stranger</h1> | |
<p> | |
Want to create an awesome account to access this awesome app? Go ahead | |
and click the button below! | |
</p> | |
<button mat-button routerLink="/register">Sign up</button> | |
</div> |
This file contains hidden or 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
import { | |
Auth, | |
GoogleAuthProvider, | |
createUserWithEmailAndPassword, | |
signInWithEmailAndPassword, | |
signInWithPopup, | |
signOut, | |
} from '@angular/fire/auth'; | |
import { Injectable } from '@angular/core'; |
This file contains hidden or 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
import { RouterModule, Routes } from '@angular/router'; | |
import { | |
canActivate, | |
redirectLoggedInTo, | |
redirectUnauthorizedTo, | |
} from '@angular/fire/auth-guard'; | |
import { NgModule } from '@angular/core'; | |
const redirectUnauthorizedToLogin = () => redirectUnauthorizedTo(['']); |
This file contains hidden or 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
import { | |
AuthGuard, | |
redirectLoggedInTo, | |
redirectUnauthorizedTo, | |
} from '@angular/fire/auth-guard'; | |
import { RouterModule, Routes } from '@angular/router'; | |
import { NgModule } from '@angular/core'; | |
const redirectUnauthorizedToLogin = () => redirectUnauthorizedTo(['']); |
This file contains hidden or 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
import { AuthGuard, redirectUnauthorizedTo } from '@angular/fire/auth-guard'; | |
import { RouterModule, Routes } from '@angular/router'; | |
import { NgModule } from '@angular/core'; | |
const redirectUnauthorizedToLogin = () => redirectUnauthorizedTo(['']); | |
const routes: Routes = [ | |
{ | |
path: '', |
This file contains hidden or 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
a { | |
color: #838383; | |
margin-top: 30px; | |
text-decoration: none; | |
} | |
h1 { | |
color: #5eccd6; | |
font-weight: bolder; | |
margin-bottom: 20px; |
This file contains hidden or 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
<div class="background"> | |
<div class="login-container"> | |
<div class="form-container"> | |
<h1>Welcome to NgBytes Register</h1> | |
<h5>Register with your email</h5> | |
<ngbytes-login-form (formData)="register($event)"></ngbytes-login-form> | |
</div> | |
<div class="text-container"> | |
<h1>Hey Buddy</h1> | |
<p> |
This file contains hidden or 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
a { | |
color: #838383; | |
margin-top: 30px; | |
text-decoration: none; | |
} | |
h1 { | |
color: #5eccd6; | |
font-weight: bolder; | |
margin-bottom: 20px; |
This file contains hidden or 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
h1 { | |
color: #5eccd6; | |
font-size: 50px; | |
font-weight: bolder; | |
} | |
h2 { | |
color: #698893; | |
margin-bottom: 50px; | |
} |
This file contains hidden or 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
<mat-toolbar><a (click)="logout()">Log out</a></mat-toolbar> | |
<div class="background"> | |
<h1>Welcome to the NgBytes Dashboard</h1> | |
<h2>Built with <3 by Dottech</h2> | |
<a | |
target="_blank" | |
class="btn" | |
href="https://github.com/puntotech/ngbytes-fireauth" | |
> |