From 66ba12b5288bceb37c176b132fe88d84a8d41dab Mon Sep 17 00:00:00 2001 From: Boris Voropaev Date: Fri, 26 Jan 2024 15:09:27 +0300 Subject: [PATCH] gbu styling --- .../slides/cards-item-slides.component.html | 5 +++- src/environments/gbu.env.prod.ts | 6 ++--- .../component/layout/grid/grid.component.ts | 10 ++++---- .../layout/jumbotron/jumbotron.component.html | 4 ++-- .../layout/jumbotron/jumbotron.component.ts | 24 +------------------ src/gbu/css/_grid.scss | 5 +++- src/gbu/css/_pages-section.scss | 6 ++--- src/gbu/css/_registry.scss | 1 - src/gbu/index.html | 2 +- src/nir/css/_main-menu.scss | 16 +++++++++++-- src/nir/css/_pages-section.scss | 23 +++++++++++++++--- src/nir/images/card_slider_img_holder.svg | 21 ++++++++++++++++ 12 files changed, 78 insertions(+), 45 deletions(-) create mode 100644 src/nir/images/card_slider_img_holder.svg diff --git a/src/app/_modules/pages/sections/types/basic/cards/items/item/types/slides/cards-item-slides.component.html b/src/app/_modules/pages/sections/types/basic/cards/items/item/types/slides/cards-item-slides.component.html index 3f4a6d2..7c1ec8c 100644 --- a/src/app/_modules/pages/sections/types/basic/cards/items/item/types/slides/cards-item-slides.component.html +++ b/src/app/_modules/pages/sections/types/basic/cards/items/item/types/slides/cards-item-slides.component.html @@ -2,5 +2,8 @@
{{header}}
{{subheader}}
{{text}}
- +
+ +
+ \ No newline at end of file diff --git a/src/environments/gbu.env.prod.ts b/src/environments/gbu.env.prod.ts index 3e62b8a..12676bd 100644 --- a/src/environments/gbu.env.prod.ts +++ b/src/environments/gbu.env.prod.ts @@ -1,9 +1,9 @@ export const environment = { production: true, - apiUrl: 'https://nirgroup.testnir.ru', + apiUrl: 'https://gbu.testnir.ru', clientId: 2, - clientSecret: 'iqt55TXiXIkIiuUfZ8xnW5CQzOsnKllLebes9sN1', + clientSecret: 'N6YSSL2DqyC67SY5gQah2eX6pQXbsZjesQPzOXWK', project: null, - licence: 'ZL0ZKY9GSZDV', + licence: 'XDIR5Z6WXY39', defaultLocale: 'ru' }; diff --git a/src/gbu/component/layout/grid/grid.component.ts b/src/gbu/component/layout/grid/grid.component.ts index a35cd85..e0bef32 100644 --- a/src/gbu/component/layout/grid/grid.component.ts +++ b/src/gbu/component/layout/grid/grid.component.ts @@ -33,10 +33,12 @@ export class GridComponent { this.pagesService.find(currentPage.link,{include: 'children.children'}).subscribe( resp=> { let children = resp.data.children.data; - + console.log('children',children) this.news = children.find( (child:any) => { - if (!child.children) { + console.log('child',child) + if (!child.children.data.length) { + console.log('notChild',child) return false } else { return child.children.data.reduce( @@ -47,7 +49,7 @@ export class GridComponent { } } ).children.data - + this.news.forEach(page => { this.publicationsService.list({ page:1, @@ -60,7 +62,7 @@ export class GridComponent { page.publications = resp.data.slice(0,3).map( publication => ({ name: publication.name, - img: publication.posters.data[0].links.thumb, + img: publication.posters.data[0]?publication.posters.data[0].links.thumb:null, link: publication.link }) ); diff --git a/src/gbu/component/layout/jumbotron/jumbotron.component.html b/src/gbu/component/layout/jumbotron/jumbotron.component.html index ede75d7..7c72393 100644 --- a/src/gbu/component/layout/jumbotron/jumbotron.component.html +++ b/src/gbu/component/layout/jumbotron/jumbotron.component.html @@ -1,9 +1,9 @@
-