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', }; /*