diff --git a/src/app/download-button/download-button.component.html b/src/app/download-button/download-button.component.html index f24c6ea..b0fd57c 100644 --- a/src/app/download-button/download-button.component.html +++ b/src/app/download-button/download-button.component.html @@ -1 +1,9 @@ -

download-button works!

+
+
+ {{ fileDetails.extension }} +
+
+
{{ fileDetails.name }}
+

{{ fileDetails.size }}

+
+
\ No newline at end of file diff --git a/src/app/download-button/download-button.component.scss b/src/app/download-button/download-button.component.scss index e69de29..571d637 100644 --- a/src/app/download-button/download-button.component.scss +++ b/src/app/download-button/download-button.component.scss @@ -0,0 +1,43 @@ +.download-button { + display: inline-flex; + border: 1px solid var(--border-grey); + border-radius: 1rem; + align-items: center; + justify-content: space-between; + cursor: pointer; + min-height: 4rem; + padding: 1rem; + + &:hover{ + background-color: var(--border-grey); + } + + .extension { + padding: 1rem; + text-align: center; + border: 1px solid var(--border-grey); + height: 2rem; + border-radius: 0.5rem; + display: flex; + align-items: center; + justify-content: center; + color: var(--dark-grey); + font-size: 1.4rem; + margin-right: 1rem; + } + + .file-labels { + flex-grow: 1; + line-height: 1.5; + + h5 { + font-size: 1.2rem; + color: var(--teal); + } + + p { + font-size: 1.1rem; + color: var(--dark-grey); + } + } +} \ No newline at end of file diff --git a/src/app/download-button/download-button.component.ts b/src/app/download-button/download-button.component.ts index 1d5ad84..b6a5c3f 100644 --- a/src/app/download-button/download-button.component.ts +++ b/src/app/download-button/download-button.component.ts @@ -1,15 +1,20 @@ -import { Component, OnInit } from '@angular/core'; +import { Component, Input, OnInit } from '@angular/core'; @Component({ - selector: 'app-download-button', - templateUrl: './download-button.component.html', - styleUrls: ['./download-button.component.scss'] + selector: 'app-download-button', + templateUrl: './download-button.component.html', + styleUrls: ['./download-button.component.scss'] }) export class DownloadButtonComponent implements OnInit { + @Input() fileDetails: { + name: string, + size: string, + extension: string, + } | undefined = undefined; - constructor() { } + constructor() { } - ngOnInit(): void { - } + ngOnInit(): void { + } } diff --git a/src/app/e-services/e-services.component.html b/src/app/e-services/e-services.component.html index 86364bd..ed06b68 100644 --- a/src/app/e-services/e-services.component.html +++ b/src/app/e-services/e-services.component.html @@ -65,4 +65,6 @@
-
\ No newline at end of file + + + \ No newline at end of file