diff --git a/api.php b/phpComponets/api.php similarity index 100% rename from api.php rename to phpComponets/api.php diff --git a/phpComponets/login.php b/phpComponets/login.php new file mode 100644 index 0000000..dc10d56 --- /dev/null +++ b/phpComponets/login.php @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/phpComponets/register.php b/phpComponets/register.php new file mode 100644 index 0000000..dc10d56 --- /dev/null +++ b/phpComponets/register.php @@ -0,0 +1,4 @@ + \ No newline at end of file diff --git a/registration.php b/registration.php new file mode 100644 index 0000000..267d144 --- /dev/null +++ b/registration.php @@ -0,0 +1,20 @@ + \ No newline at end of file diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 80b80d0..55e21c8 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -4,13 +4,15 @@ import { RouterModule, Routes } from '@angular/router'; import { GameGridComponent } from './game-grid/game-grid.component' import { ViewCardComponent } from './view-card/view-card.component' import { LoginComponent } from './login/login.component' +import { RegisterComponent } from './register/register.component' const routes: Routes = [ { path: '', redirectTo: '/login', pathMatch: 'full' }, { path: 'game-grid', component: GameGridComponent }, { path: 'view-card', component: ViewCardComponent }, { path: 'view-card/:gid', component: ViewCardComponent }, - { path: 'login', component: LoginComponent } + { path: 'login', component: LoginComponent }, + { path: 'register', component: RegisterComponent } ]; diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 051be75..2326761 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -3,14 +3,16 @@ import { NgModule } from '@angular/core'; import {HttpClientModule} from '@angular/common/http'; import { ReactiveFormsModule } from '@angular/forms'; -import { AppComponent } from './app.component'; import { GamesService } from './games.service'; +import { AbstractControl } from '@angular/forms'; + +import { AppComponent } from './app.component'; import { GameGridComponent } from './game-grid/game-grid.component'; import { AppRoutingModule } from './/app-routing.module'; import { ViewCardComponent } from './view-card/view-card.component'; import {BrowserAnimationsModule} from '@angular/platform-browser/animations'; -import { MatCardModule } from '@angular/material'; +import {MatCardModule} from '@angular/material'; import {MatToolbarModule} from '@angular/material/toolbar'; import {MatMenuModule} from '@angular/material/menu'; import {MatIconModule} from '@angular/material/icon'; @@ -22,6 +24,8 @@ import {MatFormFieldModule} from '@angular/material/form-field'; import { LoginComponent } from './login/login.component'; import { RegisterComponent } from './register/register.component'; +import { RegistrationService } from './registration.service'; + @NgModule({ @@ -47,7 +51,7 @@ import { RegisterComponent } from './register/register.component'; MatPaginatorModule, MatFormFieldModule ], - providers: [GamesService], + providers: [GamesService, RegistrationService], bootstrap: [AppComponent] }) export class AppModule { } diff --git a/src/app/login/login.component.css b/src/app/login/login.component.css index e72457a..e69de29 100644 --- a/src/app/login/login.component.css +++ b/src/app/login/login.component.css @@ -1,16 +0,0 @@ -.loginCard{ - min-width: 300px; - width:20%; - margin:0 auto; -} - -.fullWidth{ - width:100%; -} - -.loginContainer{ - display: flex; - height: 400px; - justify-content: center; - align-items: center; -} \ No newline at end of file diff --git a/src/app/login/login.component.html b/src/app/login/login.component.html index 65e3899..48a0cfb 100644 --- a/src/app/login/login.component.html +++ b/src/app/login/login.component.html @@ -1,8 +1,8 @@