diff --git a/docs/app/@theme/theme.module.ts b/docs/app/@theme/theme.module.ts index cd74e5d3..84ab3451 100644 --- a/docs/app/@theme/theme.module.ts +++ b/docs/app/@theme/theme.module.ts @@ -17,6 +17,7 @@ import { NbCardModule, NbSidebarModule, NbTabsetModule, + NbDialogModule, } from '@nebular/theme'; import { LandingSharedModule } from '../shared/landing-shared.module'; @@ -93,6 +94,7 @@ export class NgxLandingThemeModule { ...NbThemeModule.forRoot({ name: 'ngx-landing' }).providers, ...NbMenuModule.forRoot().providers, ...NbSidebarModule.forRoot().providers, + ...NbDialogModule.forRoot().providers, ...ngxLandingServices, ], diff --git a/docs/app/pages/home/main-info-section/main-info-section.component.html b/docs/app/pages/home/main-info-section/main-info-section.component.html index ee5941eb..e49f8dfd 100644 --- a/docs/app/pages/home/main-info-section/main-info-section.component.html +++ b/docs/app/pages/home/main-info-section/main-info-section.component.html @@ -29,11 +29,18 @@
- diff --git a/docs/app/pages/home/main-info-section/main-info-section.component.scss b/docs/app/pages/home/main-info-section/main-info-section.component.scss index 04d43216..b428337a 100644 --- a/docs/app/pages/home/main-info-section/main-info-section.component.scss +++ b/docs/app/pages/home/main-info-section/main-info-section.component.scss @@ -113,21 +113,28 @@ margin-top: 1.875rem; } + .buttons-links { + display: flex; + justify-content: space-between; + + .btn { + flex: 1; + } + } + .btn { font-family: nb-theme(font-main), sans-serif; border-radius: 3px; border: none; background: #ffffff; color: #000000; - padding: 1.125rem 1em; + padding: 1.125rem 0; box-shadow: nb-theme(shadow-default); cursor: pointer; text-transform: uppercase; &.btn-demo { margin-left: 1em; - padding-left: 4rem; - padding-right: 4rem; color: #ffffff; background-color: nb-theme(color-active-fg); box-shadow: nb-theme(shadow-btn); @@ -181,13 +188,6 @@ margin-right: 0.75rem; margin-left: 1rem; } - - .btn { - &.btn-demo { - padding-left: 3.25rem; - padding-right: 3.25rem; - } - } } @include media-breakpoint-down(xxl) { @@ -271,14 +271,21 @@ } .buttons { + padding-right: 1rem; + padding-left: 1rem; + a { display: block; - margin: 0 1rem; + margin: 0; &.btn-demo { margin-top: 1rem; } } } + + .buttons-links { + display: block; + } } } diff --git a/docs/app/pages/home/main-info-section/main-info-section.component.ts b/docs/app/pages/home/main-info-section/main-info-section.component.ts index 17e95e7a..b2e611e6 100644 --- a/docs/app/pages/home/main-info-section/main-info-section.component.ts +++ b/docs/app/pages/home/main-info-section/main-info-section.component.ts @@ -14,7 +14,8 @@ import { takeWhile } from 'rxjs/operators'; styleUrls: ['./main-info-section.component.scss'], }) export class MainInfoSectionComponent implements OnDestroy { - constructor(themeService: NbThemeService, breakpointService: NbMediaBreakpointsService) { + constructor(themeService: NbThemeService, + breakpointService: NbMediaBreakpointsService) { this.breakpoints = breakpointService.getBreakpointsMap(); themeService.onMediaQueryChange() .pipe(takeWhile(() => this.alive)) diff --git a/docs/app/shared/components/download-admin/download-admin.component.html b/docs/app/shared/components/download-admin/download-admin.component.html new file mode 100644 index 00000000..48e03664 --- /dev/null +++ b/docs/app/shared/components/download-admin/download-admin.component.html @@ -0,0 +1,3 @@ + diff --git a/docs/app/shared/components/download-admin/download-admin.component.scss b/docs/app/shared/components/download-admin/download-admin.component.scss new file mode 100644 index 00000000..75c0a5de --- /dev/null +++ b/docs/app/shared/components/download-admin/download-admin.component.scss @@ -0,0 +1,59 @@ +/** + * @license + * Copyright Akveo. All Rights Reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ + +@import '../../../@theme/styles/themes'; +@import '~@nebular/theme/styles/global/breakpoints'; + +@include nb-install-component() { + .btn { + font-family: nb-theme(font-main), sans-serif; + border-radius: 3px; + border: none; + background: #ffffff; + color: #000000; + padding: 1.125rem 0; + box-shadow: nb-theme(shadow-default); + cursor: pointer; + text-transform: uppercase; + + &.btn-download { + margin-left: 1em; + color: #ffffff; + background-color: nb-theme(color-active-fg); + box-shadow: nb-theme(shadow-btn); + + &:hover { + box-shadow: nb-theme(shadow-hover-green-btn); + } + + &:active { + box-shadow: nb-theme(shadow-active-green-btn); + } + } + + &.btn-download { + margin-left: 0; + margin-top: 1rem; + width: 100%; + } + + &:hover { + box-shadow: nb-theme(shadow-hover-btn); + } + + &:active { + box-shadow: nb-theme(shadow-active-btn); + } + } + + @include media-breakpoint-down(md) { + .btn { + font-size: 0.7rem; + padding-bottom: 1rem; + padding-top: 1rem; + } + } +} diff --git a/docs/app/shared/components/download-admin/download-admin.component.ts b/docs/app/shared/components/download-admin/download-admin.component.ts new file mode 100644 index 00000000..62e4fc05 --- /dev/null +++ b/docs/app/shared/components/download-admin/download-admin.component.ts @@ -0,0 +1,24 @@ +/** + * @license + * Copyright Akveo. All Rights Reserved. + * Licensed under the MIT License. See License.txt in the project root for license information. + */ + +import { Component } from '@angular/core'; +import { NbDialogService } from '@nebular/theme'; +import { DownloadFormComponent } from '../download-form/download-form.component'; + +@Component({ + selector: 'ngx-download-admin', + templateUrl: './download-admin.component.html', + styleUrls: ['./download-admin.component.scss'], +}) +export class DownloadAdminComponent { + + constructor(private dialogService: NbDialogService) { + } + + openDialog() { + this.dialogService.open(DownloadFormComponent); + } +} diff --git a/docs/app/shared/components/download-form/download-form.component.html b/docs/app/shared/components/download-form/download-form.component.html new file mode 100644 index 00000000..363b74c9 --- /dev/null +++ b/docs/app/shared/components/download-form/download-form.component.html @@ -0,0 +1,8 @@ +