mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-19 17:00:13 +01:00
fix(pages): fix titles and descriptions
This commit is contained in:
parent
ef1421ee80
commit
cca53006f4
11 changed files with 59 additions and 18 deletions
|
|
@ -36,7 +36,7 @@
|
|||
</a>
|
||||
</li>
|
||||
<li class="copy">
|
||||
© 2015-2018 <a href="https://hubs.ly/H0n52JD0" target="_blank">Akveo LLC</a><br>
|
||||
© 2015-{{currentYear}} <a href="https://hubs.ly/H0n52JD0" target="_blank">Akveo LLC</a><br>
|
||||
Documentation licensed under CC BY 4.0.
|
||||
</li>
|
||||
</ul>
|
||||
|
|
|
|||
|
|
@ -12,4 +12,7 @@ import { Component } from '@angular/core';
|
|||
templateUrl: './footer.component.html',
|
||||
})
|
||||
export class NgxLandingFooterComponent {
|
||||
get currentYear() {
|
||||
return new Date().getFullYear();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@ import { LandingSharedModule } from './shared/landing-shared.module';
|
|||
import { DOCS, STRUCTURE } from './app.options';
|
||||
const docs = require('../output.json');
|
||||
import { structure } from '../structure';
|
||||
import {MetadataService} from '../../src/app/@core/utils/metadata.service';
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
|
|
@ -36,6 +37,7 @@ import { structure } from '../structure';
|
|||
bootstrap: [AppComponent],
|
||||
providers: [
|
||||
Title,
|
||||
MetadataService,
|
||||
{ provide: STRUCTURE, useValue: structure },
|
||||
{ provide: DOCS, useValue: docs },
|
||||
],
|
||||
|
|
|
|||
|
|
@ -4,18 +4,18 @@
|
|||
* Licensed under the MIT License. See License.txt in the project root for license information.
|
||||
*/
|
||||
|
||||
import { Component, OnDestroy } from '@angular/core';
|
||||
import { Router } from '@angular/router';
|
||||
import { takeWhile, withLatestFrom, map } from 'rxjs/operators';
|
||||
import {Component, OnDestroy} from '@angular/core';
|
||||
import {Router} from '@angular/router';
|
||||
import {map, takeWhile, withLatestFrom} from 'rxjs/operators';
|
||||
import {
|
||||
NbThemeService,
|
||||
NbMediaBreakpoint,
|
||||
NbMenuItem,
|
||||
NbSidebarService,
|
||||
NbMediaBreakpoint,
|
||||
} from '@nebular/theme';
|
||||
NbThemeService} from '@nebular/theme';
|
||||
|
||||
import { NgxMenuService } from '../../@theme/services/menu.service';
|
||||
import { NgxPaginationService } from '../../@theme/services/pagination.service';
|
||||
import {NgxMenuService} from '../../@theme/services/menu.service';
|
||||
import {NgxPaginationService} from '../../@theme/services/pagination.service';
|
||||
import {MetadataService} from '../../../../src/app/@core/utils/metadata.service';
|
||||
|
||||
@Component({
|
||||
selector: 'ngx-landing-docs',
|
||||
|
|
@ -34,7 +34,11 @@ export class LandingDocsComponent implements OnDestroy {
|
|||
private router: Router,
|
||||
private themeService: NbThemeService,
|
||||
private sidebarService: NbSidebarService,
|
||||
private paginationService: NgxPaginationService) {
|
||||
private paginationService: NgxPaginationService,
|
||||
private metadataService: MetadataService) {
|
||||
|
||||
this.metadataService.updateDescription('Use ngx-admin to bootstrap the development of your product and' +
|
||||
' provide an ecosystem for building production-ready apps or prototypes. Free and Open Source!');
|
||||
|
||||
this.themeService.changeTheme('docs-page');
|
||||
this.paginationService.setPaginationItems('/docs');
|
||||
|
|
|
|||
|
|
@ -6,6 +6,7 @@
|
|||
|
||||
import { Component } from '@angular/core';
|
||||
import { NbThemeService } from '@nebular/theme';
|
||||
import {MetadataService} from '../../../../src/app/@core/utils/metadata.service';
|
||||
|
||||
@Component({
|
||||
selector: 'ngx-landing-home',
|
||||
|
|
@ -13,8 +14,10 @@ import { NbThemeService } from '@nebular/theme';
|
|||
styleUrls: ['./landing-home.component.scss'],
|
||||
})
|
||||
export class LandingHomeComponent {
|
||||
|
||||
constructor(private themeService: NbThemeService) {
|
||||
constructor(private themeService: NbThemeService, private metadataService: MetadataService) {
|
||||
this.metadataService.updateDescription('Save more than $33,000 using ngx-admin for personal and commercial' +
|
||||
' use. The dashboard is based on Angular 9+ and Bootstrap 4+. Completely FREE and MIT licensed.');
|
||||
this.metadataService.updateTitle('The most popular admin dashboard based on Angular 9+ and Nebular.');
|
||||
this.themeService.changeTheme('ngx-landing');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,6 +1,8 @@
|
|||
<nb-layout>
|
||||
<nb-layout-header fixed>
|
||||
<ngx-landing-header></ngx-landing-header>
|
||||
<ngx-landing-header>
|
||||
<ngx-material-theme-link></ngx-material-theme-link>
|
||||
</ngx-landing-header>
|
||||
</nb-layout-header>
|
||||
|
||||
<nb-layout-column class="main-section">
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import { Component } from '@angular/core';
|
||||
import { NbThemeService } from '@nebular/theme';
|
||||
import {MetadataService} from '../../../../../src/app/@core/utils/metadata.service';
|
||||
|
||||
@Component({
|
||||
selector: 'ngx-material-landing',
|
||||
|
|
@ -10,7 +11,10 @@ import { NbThemeService } from '@nebular/theme';
|
|||
],
|
||||
})
|
||||
export class MaterialLandingComponent {
|
||||
constructor(private themeService: NbThemeService) {
|
||||
constructor(private themeService: NbThemeService, private metadataService: MetadataService) {
|
||||
this.metadataService.updateDescription('Ngx-admin material works perfectly with Angular Material and Nebular.' +
|
||||
' Over 40+ Angular Components and 60+ Usage Examples.Take the best from both!');
|
||||
this.metadataService.updateTitle('New Material theme of ngx-admin dashboard template based on Angular 9+');
|
||||
this.themeService.changeTheme('ngx-landing-material');
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue