diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 2bd33fbb..a3dea235 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -12,6 +12,7 @@ import { SearchResolverService } from "./services/search-resolver.service"; import { ShowResolverService } from './services/show-resolver.service'; import { StreamResolverService } from "./services/stream-resolver.service"; import { ShowDetailsComponent } from './show-details/show-details.component'; +import {LoginComponent} from "./login/login.component"; const routes: Routes = [ { path: "browse", component: BrowseComponent, pathMatch: "full", resolve: { shows: LibraryResolverService } }, @@ -21,6 +22,7 @@ const routes: Routes = [ { path: "people/:people-slug", component: CollectionComponent, resolve: { collection: PeopleResolverService } }, { path: "watch/:item", component: PlayerComponent, resolve: { item: StreamResolverService } }, { path: "search/:query", component: SearchComponent, resolve: { items: SearchResolverService } }, + { path: "login", component: LoginComponent }, { path: "**", component: NotFoundComponent } ]; diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 5194839e..56bd9327 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -23,7 +23,11 @@ import { PlayerComponent } from './player/player.component'; import { SearchComponent } from './search/search.component'; import { ShowDetailsComponent } from './show-details/show-details.component'; import { ShowsListComponent } from './shows-list/shows-list.component'; - +import { LoginComponent } from './login/login.component'; +import {FormsModule, ReactiveFormsModule} from "@angular/forms"; +import { MatInputModule } from "@angular/material/input"; +import { MatFormFieldModule } from "@angular/material/form-field"; +import {MatTabsModule} from "@angular/material/tabs"; @NgModule({ declarations: [ @@ -36,7 +40,8 @@ import { ShowsListComponent } from './shows-list/shows-list.component'; CollectionComponent, SearchComponent, PeopleListComponent, - ShowsListComponent + ShowsListComponent, + LoginComponent ], imports: [ BrowserModule, @@ -52,7 +57,12 @@ import { ShowsListComponent } from './shows-list/shows-list.component'; MatSliderModule, MatTooltipModule, MatRippleModule, - MatCardModule + MatCardModule, + ReactiveFormsModule, + MatInputModule, + MatFormFieldModule, + FormsModule, + MatTabsModule ], providers: [], bootstrap: [AppComponent] diff --git a/src/app/login/login.component.html b/src/app/login/login.component.html new file mode 100644 index 00000000..fbaec456 --- /dev/null +++ b/src/app/login/login.component.html @@ -0,0 +1,76 @@ +
+ + + +
+ +
+ + Username + + + An username is required + + +
+
+ + Password + + + + A password is required + + +
+
+
+ +
+
+ +
+ +
+ + Username + + + An username is required + + +
+
+ + Email + + + An email is required + + + Please enter a valid email + + +
+
+ + Password + + + + A password is required + + +
+
+
+ +
+
+
+
+
\ No newline at end of file diff --git a/src/app/login/login.component.scss b/src/app/login/login.component.scss new file mode 100644 index 00000000..e69de29b diff --git a/src/app/login/login.component.ts b/src/app/login/login.component.ts new file mode 100644 index 00000000..30ec64f7 --- /dev/null +++ b/src/app/login/login.component.ts @@ -0,0 +1,27 @@ +import { Component, OnInit } from '@angular/core'; +import {FormControl, Validators} from "@angular/forms"; + +@Component({ + selector: 'app-login', + templateUrl: './login.component.html', + styleUrls: ['./login.component.scss'] +}) +export class LoginComponent implements OnInit +{ + username = new FormControl("", [Validators.required]); + password = new FormControl("", [Validators.required]); + email = new FormControl("", [Validators.required, Validators.email]); + + hidePassword: boolean = true; + + constructor() { } + + ngOnInit() + { + } + + async login() + { + + } +}