Created a new SocialsComponent with corresponding HTML, SCSS, and tests. Updated `app.module.ts` to include the Socials route and modified the Team page to use `ngSrc` for image optimization.
57 lines
1.8 KiB
TypeScript
57 lines
1.8 KiB
TypeScript
import {NgModule} from '@angular/core';
|
|
import {BrowserModule} from '@angular/platform-browser';
|
|
import {AppComponent} from './app.component';
|
|
import {RouterModule, Routes} from '@angular/router';
|
|
import {HeaderComponent} from './header/header.component';
|
|
import {HomeComponent} from './home/home.component';
|
|
import {NgOptimizedImage} from '@angular/common';
|
|
import {ThemeComponent} from "./theme/theme.component";
|
|
import {CookieService} from 'ngx-cookie-service';
|
|
import {MapComponent} from './map/map.component';
|
|
import {RulesComponent} from './rules/rules.component';
|
|
import {CopyIpComponent} from './copy-ip/copy-ip.component';
|
|
import {FooterComponent} from './footer/footer.component';
|
|
import {TermsComponent} from './terms/terms.component';
|
|
import {PrivacyComponent} from './privacy/privacy.component';
|
|
import {TeamComponent} from './team/team.component';
|
|
import {AboutComponent} from './about/about.component';
|
|
import {SocialsComponent} from './socials/socials.component';
|
|
|
|
const routes: Routes = [
|
|
{path: '', component: HomeComponent},
|
|
{path: 'map', component: MapComponent},
|
|
{path: 'rules', component: RulesComponent},
|
|
{path: 'about', component: AboutComponent},
|
|
{path: 'socials', component: SocialsComponent},
|
|
{path: 'team', component: TeamComponent},
|
|
{path: 'terms', component: TermsComponent},
|
|
{path: 'privacy', component: PrivacyComponent},
|
|
];
|
|
|
|
@NgModule({
|
|
declarations: [
|
|
AppComponent,
|
|
HeaderComponent,
|
|
FooterComponent,
|
|
ThemeComponent,
|
|
HomeComponent,
|
|
MapComponent,
|
|
RulesComponent,
|
|
AboutComponent,
|
|
SocialsComponent,
|
|
TeamComponent,
|
|
TermsComponent,
|
|
PrivacyComponent,
|
|
],
|
|
imports: [
|
|
BrowserModule,
|
|
RouterModule.forRoot(routes),
|
|
NgOptimizedImage,
|
|
CopyIpComponent,
|
|
],
|
|
providers: [CookieService],
|
|
bootstrap: [AppComponent]
|
|
})
|
|
export class AppModule {
|
|
}
|