diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts index 77abe69..2d83740 100644 --- a/src/app/app-routing.module.ts +++ b/src/app/app-routing.module.ts @@ -4,24 +4,30 @@ import { RouterModule, Routes } from '@angular/router'; import { ProfilComponent } from './components/profil/profil.component'; import { ConnexionComponent } from './components/connexion/connexion.component'; import { InscriptionComponent } from './components/inscription/inscription.component'; +import { HomeComponent } from './components/home/home.component'; const routes: Routes = [ { path: 'profil', - component: ProfilComponent + component: ProfilComponent, }, { path: 'connexion', - component: ConnexionComponent + component: ConnexionComponent, }, { path: 'inscription', - component: InscriptionComponent - } + component: InscriptionComponent, + }, + // home + { + path: '', + component: HomeComponent, + }, ]; @NgModule({ imports: [RouterModule.forRoot(routes)], - exports: [RouterModule] + exports: [RouterModule], }) -export class AppRoutingModule { } +export class AppRoutingModule {} diff --git a/src/app/app.component.scss b/src/app/app.component.scss index e69de29..cde5898 100644 --- a/src/app/app.component.scss +++ b/src/app/app.component.scss @@ -0,0 +1,4 @@ +* { + height: 100vh; +overflow: auto; +} \ No newline at end of file diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 20ad0a2..1cea1d4 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -11,6 +11,7 @@ import { ProfilComponent } from './components/profil/profil.component'; import { ConnexionComponent } from './components/connexion/connexion.component'; import { InscriptionComponent } from './components/inscription/inscription.component'; import { FooterComponent } from './components/footer/footer.component'; +import { HomeComponent } from './components/home/home.component'; @NgModule({ declarations: [ @@ -20,6 +21,7 @@ import { FooterComponent } from './components/footer/footer.component'; ProfilComponent, ConnexionComponent, InscriptionComponent, + HomeComponent, ], imports: [ BrowserModule, diff --git a/src/app/components/header/header.component.html b/src/app/components/header/header.component.html index aaf43bc..f866c4e 100644 --- a/src/app/components/header/header.component.html +++ b/src/app/components/header/header.component.html @@ -3,44 +3,61 @@