From 5d94f865ce3de06af3a4b55ad977e648bf853f13 Mon Sep 17 00:00:00 2001 From: Viicious Date: Sun, 24 Jun 2018 18:06:36 +0200 Subject: [PATCH] download page design --- bin/www | 4 +- package-lock.json | 10 ++ src/app/app.module.ts | 9 +- src/app/book/book.component.html | 121 +++++++++++++++++- src/app/book/book.component.ts | 19 ++- .../download-link.component.html | 56 ++++++++ .../download-link.component.scss | 44 +++++++ .../download-link.component.spec.ts | 25 ++++ .../download-link/download-link.component.ts | 15 +++ .../{logo supfile.png => logoSupfile.png} | Bin 10 files changed, 296 insertions(+), 7 deletions(-) create mode 100644 src/app/download-link/download-link.component.html create mode 100644 src/app/download-link/download-link.component.scss create mode 100644 src/app/download-link/download-link.component.spec.ts create mode 100644 src/app/download-link/download-link.component.ts rename src/assets/{logo supfile.png => logoSupfile.png} (100%) diff --git a/bin/www b/bin/www index 822cb10..1c340ee 100644 --- a/bin/www +++ b/bin/www @@ -35,8 +35,8 @@ var credentials = { passphrase: 'titi' }; -var server = https.createServer(credentials, app); -//var server = http.createServer(app); +//var server = https.createServer(credentials, app); +var server = http.createServer(app); diff --git a/package-lock.json b/package-lock.json index 5e25d44..80992d8 100644 --- a/package-lock.json +++ b/package-lock.json @@ -3639,6 +3639,16 @@ "resolved": "https://registry.npmjs.org/amdefine/-/amdefine-1.0.1.tgz", "integrity": "sha1-SlKCrBZHKek2Gbz9OtFR+BfOkfU=" }, + "angular-6-clipboard": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/angular-6-clipboard/-/angular-6-clipboard-1.0.0.tgz", + "integrity": "sha512-g8g99MpGH/r3DdZ6I0R99dCIaPI/U68cvWFgc/GRlHqdo3Gm/wsdRD2cPDRWymnHADSC9THr5jXz00OmWenjWQ==" + }, + "angular-clipboard": { + "version": "1.6.2", + "resolved": "https://registry.npmjs.org/angular-clipboard/-/angular-clipboard-1.6.2.tgz", + "integrity": "sha512-T5kK6X6fFigLPd2szxW8ETEOLNW9z/9RqdlXtLAY7nakrI62BH8FGOxIes36tvAP/9numwokEWKVLy0WpNkB7w==" + }, "ansi-align": { "version": "2.0.0", "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-2.0.0.tgz", diff --git a/src/app/app.module.ts b/src/app/app.module.ts index ef9eb5e..d326bdb 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -31,6 +31,7 @@ import { DropzoneModule } from 'ngx-dropzone-wrapper'; import { DROPZONE_CONFIG } from 'ngx-dropzone-wrapper'; import { DropzoneConfigInterface } from 'ngx-dropzone-wrapper'; import { HomeComponent } from './home/home.component'; +import { DownloadLinkComponent } from './download-link/download-link.component'; const DEFAULT_DROPZONE_CONFIG: DropzoneConfigInterface = { @@ -66,6 +67,11 @@ const appRoutes: Routes = [ component: SignupComponent, data: { title: 'Sign Up' } }, + { + path: 'download', + component: DownloadLinkComponent , + data: { title: 'download' } + }, { path: '', redirectTo: '/home', pathMatch: 'full' @@ -79,7 +85,8 @@ const appRoutes: Routes = [ LoginComponent, SignupComponent, MainComponent, - BookComponent + BookComponent, + DownloadLinkComponent ], imports: [ BrowserModule, diff --git a/src/app/book/book.component.html b/src/app/book/book.component.html index a11a9f4..9ed8153 100644 --- a/src/app/book/book.component.html +++ b/src/app/book/book.component.html @@ -71,7 +71,7 @@ - +
@@ -151,6 +151,7 @@ DownloadDeletePreview + Download Link
@@ -163,7 +164,7 @@
#