From 61002eaea9c44c1220b8f998cdece15634a22df5 Mon Sep 17 00:00:00 2001 From: Boris Voropaev Date: Thu, 31 Aug 2023 17:25:23 +0300 Subject: [PATCH 1/3] top image position --- src/app/_modules/pages/page/page.component.scss | 1 + 1 file changed, 1 insertion(+) diff --git a/src/app/_modules/pages/page/page.component.scss b/src/app/_modules/pages/page/page.component.scss index 719fb57..79ce12d 100644 --- a/src/app/_modules/pages/page/page.component.scss +++ b/src/app/_modules/pages/page/page.component.scss @@ -11,6 +11,7 @@ width: 100%; height: 400px; background-color: #86898E; + background-size: cover; .block{ position: absolute; top:136px; From 72a063776f5af0bad8e0902b567162a84b51096a Mon Sep 17 00:00:00 2001 From: Boris Voropaev Date: Thu, 31 Aug 2023 18:19:44 +0300 Subject: [PATCH 2/3] document section --- .../document/form-field-document.component.scss | 1 + .../single/field-document-single.component.html | 7 +++++-- .../basic/document/document-section.component.html | 7 ++++++- .../basic/document/document-section.component.scss | 9 +++++++++ .../basic/document/document-section.component.ts | 12 ++++++++++++ 5 files changed, 33 insertions(+), 3 deletions(-) diff --git a/src/app/_modules/form-fields/types/document/form-field-document.component.scss b/src/app/_modules/form-fields/types/document/form-field-document.component.scss index b78d76d..ce62dc3 100644 --- a/src/app/_modules/form-fields/types/document/form-field-document.component.scss +++ b/src/app/_modules/form-fields/types/document/form-field-document.component.scss @@ -6,6 +6,7 @@ border: var(--blue-1) dashed 1px; border-radius: 4px; overflow: hidden; + font-size: 20px; &.hover { background-color: #e0e0e0; } diff --git a/src/app/_modules/form-fields/types/document/single/field-document-single.component.html b/src/app/_modules/form-fields/types/document/single/field-document-single.component.html index 70c2c78..6e082f1 100644 --- a/src/app/_modules/form-fields/types/document/single/field-document-single.component.html +++ b/src/app/_modules/form-fields/types/document/single/field-document-single.component.html @@ -1,6 +1,9 @@
-

Перетащите сюда или выберите файл в формате PDF, XLS, DOC, JPG, PPTX

+

Перетащите сюда или + выберите файл + в формате PDF, XLS, DOC, JPG, PPTX +

Загружается файл {{upload.file?.name}}
@@ -9,6 +12,6 @@ diff --git a/src/app/_modules/pages/sections/types/basic/document/document-section.component.html b/src/app/_modules/pages/sections/types/basic/document/document-section.component.html index bb6acc9..95b759e 100644 --- a/src/app/_modules/pages/sections/types/basic/document/document-section.component.html +++ b/src/app/_modules/pages/sections/types/basic/document/document-section.component.html @@ -1 +1,6 @@ -Document Section + + + +
\ No newline at end of file diff --git a/src/app/_modules/pages/sections/types/basic/document/document-section.component.scss b/src/app/_modules/pages/sections/types/basic/document/document-section.component.scss index e69de29..ab7943e 100644 --- a/src/app/_modules/pages/sections/types/basic/document/document-section.component.scss +++ b/src/app/_modules/pages/sections/types/basic/document/document-section.component.scss @@ -0,0 +1,9 @@ +:host { + display: block; + background: url('~src/assets/images/icons/document_pdf_60dp.svg') top left no-repeat; + padding-left: 62px; + min-height: 60px; +} +a{ + font-size: 20px; +} \ No newline at end of file diff --git a/src/app/_modules/pages/sections/types/basic/document/document-section.component.ts b/src/app/_modules/pages/sections/types/basic/document/document-section.component.ts index 60740ad..eab7e0c 100644 --- a/src/app/_modules/pages/sections/types/basic/document/document-section.component.ts +++ b/src/app/_modules/pages/sections/types/basic/document/document-section.component.ts @@ -15,4 +15,16 @@ export class DocumentSectionComponent { ngOnInit() { console.log(this.section); } + + get title(){ + return this.section.groups.data[0].fields.data[1].title; + } + + get description(){ + return this.section.groups.data[0].fields.data[1].value.data[0]; + } + + get download(){ + return this.section.groups.data[0].fields.data[0].value.data[0].links.download; + } } From d2357890252280629aeab0b4710289dc6867c1a5 Mon Sep 17 00:00:00 2001 From: Boris Voropaev Date: Thu, 31 Aug 2023 18:23:17 +0300 Subject: [PATCH 3/3] document-section --- .../sections/types/basic/document/document-section.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/_modules/pages/sections/types/basic/document/document-section.component.ts b/src/app/_modules/pages/sections/types/basic/document/document-section.component.ts index eab7e0c..e66f3ae 100644 --- a/src/app/_modules/pages/sections/types/basic/document/document-section.component.ts +++ b/src/app/_modules/pages/sections/types/basic/document/document-section.component.ts @@ -13,7 +13,7 @@ export class DocumentSectionComponent { } ngOnInit() { - console.log(this.section); + // console.log(this.section); } get title(){