Skip to content
Snippets Groups Projects
app.component.ts 1.21 KiB
import {Component} from '@angular/core';
import {
  NshmpLibNgAboutContentComponent,
  NshmpLibNgAboutPageComponent,
} from '@ghsc/nshmp-lib-ng/about';
import {
  ApplicationSections,
  NshmpLibNgDashboardComponent,
  NshmpLibNgDashboardDescriptionComponent,
  NshmpLibNgDashboardTitleComponent,
  NshmpLibNgTemplateComponent,
} from '@ghsc/nshmp-lib-ng/nshmp';
import {
  gmmApps,
  navigation,
} from 'projects/nshmp-apps/src/shared/utils/navigation.utils';

@Component({
  imports: [
    NshmpLibNgTemplateComponent,
    NshmpLibNgAboutPageComponent,
    NshmpLibNgDashboardComponent,
    NshmpLibNgDashboardTitleComponent,
    NshmpLibNgDashboardDescriptionComponent,
    NshmpLibNgAboutContentComponent,
  ],
  selector: 'app-app',
  standalone: true,
  styleUrl: './app.component.scss',
  templateUrl: './app.component.html',
})
export class AppComponent {
  /** Navigation list for menu */
  navigationList = navigation();

  title = 'GMM Applications';

  sections: ApplicationSections[] = [
    {
      gridClass: 'grid-col-10',
      sections: [
        {
          applications: gmmApps().map(navigation => ({navigation})),
          gridClass: 'grid-col-12 tablet-lg:grid-col-8 grid-offset-1',
        },
      ],
    },
  ];
}