diff --git a/src/app/_modules/publications/list/item/gellery/gellery.component.html b/src/app/_modules/publications/list/item/gellery/gellery.component.html new file mode 100644 index 0000000..0b8bcaf --- /dev/null +++ b/src/app/_modules/publications/list/item/gellery/gellery.component.html @@ -0,0 +1,9 @@ + +
+ +
+
+
+ +
+
\ No newline at end of file diff --git a/src/app/_modules/publications/list/item/gellery/gellery.component.scss b/src/app/_modules/publications/list/item/gellery/gellery.component.scss new file mode 100644 index 0000000..e69de29 diff --git a/src/app/_modules/publications/list/item/gellery/gellery.component.ts b/src/app/_modules/publications/list/item/gellery/gellery.component.ts new file mode 100644 index 0000000..f3d049a --- /dev/null +++ b/src/app/_modules/publications/list/item/gellery/gellery.component.ts @@ -0,0 +1,14 @@ +import { Component, Input } from '@angular/core'; + +@Component({ + selector: 'gellery', + templateUrl: './gellery.component.html', + styleUrls: ['./gellery.component.scss'] +}) +export class GelleryComponent { + @Input() images:any[]; + currentImage:any; + ngOnInit() { + if (this.images) this.currentImage = this.images[0]; + } +} diff --git a/src/app/_modules/publications/list/item/publications-list-item.component.html b/src/app/_modules/publications/list/item/publications-list-item.component.html index 4d4c3a8..e39c500 100644 --- a/src/app/_modules/publications/list/item/publications-list-item.component.html +++ b/src/app/_modules/publications/list/item/publications-list-item.component.html @@ -14,14 +14,8 @@

{{publication.name}}

-
- -
-
-
- -
-
+ +
{{publication.excerpt}}
Читать далее diff --git a/src/app/_modules/publications/list/item/publications-list-item.component.ts b/src/app/_modules/publications/list/item/publications-list-item.component.ts index 0ed54ec..373136d 100644 --- a/src/app/_modules/publications/list/item/publications-list-item.component.ts +++ b/src/app/_modules/publications/list/item/publications-list-item.component.ts @@ -24,7 +24,6 @@ export class PublicationsListItemComponent { } ngOnInit() { - console.log(this. publication) if (this.publication.posters) this.currentPoster = this.posters[0]; } diff --git a/src/app/_modules/publications/publications.module.ts b/src/app/_modules/publications/publications.module.ts index fac8985..fce2516 100644 --- a/src/app/_modules/publications/publications.module.ts +++ b/src/app/_modules/publications/publications.module.ts @@ -9,6 +9,7 @@ import {PublicationPageComponent} from "@app/_modules/publications/publication/p import {PageSectionsModule} from "@app/_modules/pages/sections/page-sections.module"; import {RouterModule} from "@angular/router"; import { WidjetModule } from '../widjet/widjet.module'; +import { GelleryComponent } from './list/item/gellery/gellery.component'; @NgModule({ imports: [ @@ -22,7 +23,8 @@ import { WidjetModule } from '../widjet/widjet.module'; PublicationsListComponent, PublicationsListItemComponent, PublicationsListItemMenuComponent, - PublicationPageComponent + PublicationPageComponent, + GelleryComponent ], exports: [ PublicationsListComponent, diff --git a/src/assets/css/_pages-section.scss b/src/assets/css/_pages-section.scss index d623e9f..4c6805f 100644 --- a/src/assets/css/_pages-section.scss +++ b/src/assets/css/_pages-section.scss @@ -317,37 +317,41 @@ publications-list{ .date{ color: var(--second); } - .poster{ - width: 665px; - height: 468px; - max-width: calc( 100vw - 80px); - max-height: calc( (100vw - 80px ) * 0.7 ); - margin-bottom: 8px; - border: 1px solid var(--second-dis); - background-color: var(--second-dis); - } - .posters{ - display: flex; - flex-wrap: wrap; - align-content: flex-start; - gap: 8px; - - .item{ - width: 72px; - height: 52px; - border: 1px solid var(--prime); - cursor: pointer; - :hover{ - border-color: var(--prime-act); - } - } - } - img{ - object-fit: cover; - width: 100%; - height: 100%; - } + } +} + +gellery{ + .poster{ + width: 665px; + height: 468px; + max-width: calc( 100vw - 80px); + max-height: calc( (100vw - 80px ) * 0.7 ); + margin-bottom: 8px; + border: 1px solid var(--second-dis); + background-color: var(--second-dis); + } + .posters{ + display: flex; + flex-wrap: wrap; + align-content: flex-start; + gap: 8px; + + .item{ + width: 72px; + height: 52px; + border: 1px solid var(--prime); + cursor: pointer; + :hover{ + border-color: var(--prime-act); + } + } + } + img{ + object-fit: cover; + width: 100%; + height: 100%; + } } \ No newline at end of file