/**
* @license
* Copyright Akveo. All Rights Reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*/
import { ChangeDetectionStrategy, Component } from '@angular/core';
import { NbDialogService } from '@nebular/theme';
import { NgdHubspotFormDialogComponent } from '../hubspot-form-dialog/hubspot-form-dialog.component';
@Component({
selector: 'ngd-hero',
styleUrls: ['./hero.component.scss'],
template: `
Nebular: Customizable UI Kit, Auth & Security
`,
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class NgdHeroComponent {
constructor(
private dialogService: NbDialogService,
) {}
showDownloadDialog(): void {
const context = {
title: 'Download',
formConfig: {
portalId: '2452262',
formId: '0d8d709d-f487-4dd2-af4f-cdcbe3ac51ae',
redirectUrl: 'https://github.com/akveo/nebular',
},
};
this.dialogService.open(NgdHubspotFormDialogComponent, { context });
}
}