From 18fc283dd0ec7ce4a6a67224a9481a7c7d6cbef2 Mon Sep 17 00:00:00 2001 From: Boris Voropaev Date: Fri, 1 Sep 2023 13:38:53 +0300 Subject: [PATCH 1/7] images-section styling --- .../user-bar/header-user-bar.component.ts | 2 +- .../images/images-section.component.html | 11 ++-- .../images/images-section.component.scss | 66 +++++++++++++++++-- .../basic/images/images-section.component.ts | 10 ++- src/environments/environment.ts | 2 +- 5 files changed, 78 insertions(+), 13 deletions(-) diff --git a/src/app/_modules/layout/header/user-bar/header-user-bar.component.ts b/src/app/_modules/layout/header/user-bar/header-user-bar.component.ts index afd7266..313ab6c 100644 --- a/src/app/_modules/layout/header/user-bar/header-user-bar.component.ts +++ b/src/app/_modules/layout/header/user-bar/header-user-bar.component.ts @@ -23,7 +23,7 @@ export class HeaderUserBarComponent { } ngOnInit() { - console.log(this.user) + } diff --git a/src/app/_modules/pages/sections/types/basic/images/images-section.component.html b/src/app/_modules/pages/sections/types/basic/images/images-section.component.html index 60f0160..070cee3 100644 --- a/src/app/_modules/pages/sections/types/basic/images/images-section.component.html +++ b/src/app/_modules/pages/sections/types/basic/images/images-section.component.html @@ -1,8 +1,11 @@ -
-
+
+ +
+
+
-
+
- - diff --git a/src/app/_modules/pages/sections/types/basic/images/images-section.component.scss b/src/app/_modules/pages/sections/types/basic/images/images-section.component.scss index a2d7404..90774ac 100644 --- a/src/app/_modules/pages/sections/types/basic/images/images-section.component.scss +++ b/src/app/_modules/pages/sections/types/basic/images/images-section.component.scss @@ -1,18 +1,74 @@ +.first{ + display: none; + &.large-preview{ + display: block; + width: 663px; + height: 468px; + margin-bottom: 8px; + border-radius: 12px; + border: 1px solid rgba(45, 45, 45, 0.27); + overflow: hidden; + img{ + object-fit: cover; + width: 100%; + height: 100%; + } + } +} + + .items { display: flex; flex-direction: row; flex-wrap: wrap; width: 100%; - gap: 20px; - margin-bottom: 20px; + gap: 8px; + + &.small{ + + display: flex; + flex-direction: column; + .item{ + margin-bottom: 16px; + img{ + max-height: 273px; + max-width: 273px; + } + } + } + + &.large{ + display: flex; + flex-direction: column; + .item{ + margin-bottom: 32px; + img{ + max-height: 468px; + max-width: 900px; + } + } + } + + &.large-preview{ + display: flex; + flex-direction: row; + .item{ + width: 72px; + height: 52px; + border: 1px solid var(--blue-1); + img{ + object-fit: cover; + width: 100%; + height: 100%; + } + } + } .item { + position: relative; img { - width: 128px; - height: 128px; - object-fit: cover; cursor: pointer; } diff --git a/src/app/_modules/pages/sections/types/basic/images/images-section.component.ts b/src/app/_modules/pages/sections/types/basic/images/images-section.component.ts index 0c0ed10..d7815bd 100644 --- a/src/app/_modules/pages/sections/types/basic/images/images-section.component.ts +++ b/src/app/_modules/pages/sections/types/basic/images/images-section.component.ts @@ -38,7 +38,6 @@ export class ImagesSectionComponent { }, 300) } - get items() { return this.objectsService.getValue(this.section, 'images-required'); } @@ -46,6 +45,13 @@ export class ImagesSectionComponent { let type = this.objectsService.getValue(this.section, 'image-type'); return type.name; } + get imageClass(){ + return { + small : this.imageType=='small', + large : this.imageType=='large', + 'large-preview': this.imageType=='large-preview' + } + } set photo(activePhoto: string) { this.activePhoto = activePhoto } @@ -54,6 +60,8 @@ export class ImagesSectionComponent { } + + parsed(): void { this.tmpNumber = 0 this.parsedPhotos = this.items || [] diff --git a/src/environments/environment.ts b/src/environments/environment.ts index 4add497..d2de143 100644 --- a/src/environments/environment.ts +++ b/src/environments/environment.ts @@ -6,7 +6,7 @@ export const environment = { production: false, apiUrl: 'http://api.vniigazv2.lc', clientId: 2, - clientSecret: '5Q8Pe95YrQBwa7o7XDDIatg30ELu3dpS40Uo6jHi', + clientSecret: 'Mq5VXetkQ0XifT5Tao019rupEq5dQFbAhaw29Ei4', }; /* From 4bd7e86bf1a0f4cffbbbb005306acfbf0a2eda53 Mon Sep 17 00:00:00 2001 From: Boris Voropaev Date: Fri, 1 Sep 2023 14:30:04 +0300 Subject: [PATCH 2/7] fix mai menu --- src/app/_modules/pages/page/page.component.html | 14 +++++++------- src/app/_modules/pages/page/page.component.ts | 3 +++ src/assets/css/main-menu.scss | 14 +++++++++++++- 3 files changed, 23 insertions(+), 8 deletions(-) diff --git a/src/app/_modules/pages/page/page.component.html b/src/app/_modules/pages/page/page.component.html index 533f348..95ec3f7 100644 --- a/src/app/_modules/pages/page/page.component.html +++ b/src/app/_modules/pages/page/page.component.html @@ -1,15 +1,15 @@
-
-