Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div style="text-align:center">
- <nav [hidden] = aboutHide>
- <h1>About</h1>
- <p font size = "15px">
- This website allows users to view the top rated NASA pictures. Users can register and create their own image collection by searching. Registered users can
- rate other public collections.
- </p>
- </nav>
- <div [hidden] = aboutHide style="text-align:center">
- <button routerLink = "/login" routerLinkActive = "active" (click) = "showLoginAuth()">Login/Register</button>
- <router-outlet></router-outlet>
- </div>
- <app-login-auth [hidden] = loginAuth></app-login-auth>
- </div>
- <div *ngIf="afAuth.authState | async; let user; else showLogin">
- <a (load) = "show()" routerLink = "/homeScreen" #routerLink></a>
- <app-login-screen></app-login-screen>
- <router-outlet></router-outlet>
- </div>
- <ng-template #showLogin style="text-align:center">
- <h1>Welcome to {{ title }}</h1>
- <form id = "logRegForm">
- Username: <input type ="text" name = "uName" #name><br>
- Password: <input type ="password" name = "pWord" #pass><br>
- <div [hidden] = passCheck>
- Re-enter Password:<input type ="password" name = "pWord" #pass2><br>
- </div>
- </form>
- <p>Please login or Register.</p>
- <button (click)="register(name.value,pass.value,pass2.value)">Register</button>
- <button (click)="login(name.value,pass.value)">Login</button>
- </ng-template>
Add Comment
Please, Sign In to add comment