mirror of
https://github.com/akveo/ngx-admin.git
synced 2026-01-15 05:58:52 +01:00
docs(download): add download button with hubspot form (#5725)
This commit is contained in:
parent
b232c95a6e
commit
f5f29bc041
15 changed files with 301 additions and 25 deletions
|
|
@ -0,0 +1,3 @@
|
|||
<button matRipple (click)="openDialog()" class="btn btn-download">
|
||||
Download
|
||||
</button>
|
||||
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue