bugfix
parent
626be0eb42
commit
96934669ec
|
|
@ -25,6 +25,7 @@ export class CardsSectionItemsComponent {
|
|||
public config: SwiperOptions = {
|
||||
slidesPerView: "auto",
|
||||
spaceBetween: 24,
|
||||
centeredSlides: true,
|
||||
pagination: {
|
||||
clickable: true,
|
||||
},
|
||||
|
|
|
|||
|
|
@ -14,17 +14,6 @@ export class CardsItemSlidesComponent {
|
|||
|
||||
@Input() card:any;
|
||||
|
||||
|
||||
ngOnInit(){
|
||||
// console.log(this.card)
|
||||
// console.log(this.objectsService.getValue(this.card, 'card-style'))
|
||||
// console.log(this.objectsService.getValue(this.card, 'header'))
|
||||
// console.log(this.objectsService.getValue(this.card, 'subheader'))
|
||||
// console.log(this.objectsService.getValue(this.card, 'text'))
|
||||
// console.log(this.objectsService.getValue(this.card, 'image'))
|
||||
// console.log(this.objectsService.getValue(this.card, 'link'))
|
||||
}
|
||||
|
||||
get header() {
|
||||
return this.objectsService.getValue(this.card, 'header');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -679,6 +679,8 @@ cards-section{
|
|||
border: 1px solid var(--light);
|
||||
background: var(--bg);
|
||||
overflow: hidden;
|
||||
margin-left: -306px;
|
||||
margin-right: 306px;
|
||||
.card-slide{
|
||||
display: flex;
|
||||
flex-wrap: wrap;
|
||||
|
|
@ -760,21 +762,22 @@ cards-section{
|
|||
|
||||
@media screen and (max-width: 1200px) {
|
||||
|
||||
.cards-section-slides.items{
|
||||
margin-left: 0;
|
||||
}
|
||||
|
||||
.cards-section-slides{
|
||||
width: 100vw;
|
||||
margin-inline-start: -32px;
|
||||
padding-bottom: 32px ;
|
||||
.swiper-slide{
|
||||
max-width: calc( 100vw - 96px );
|
||||
margin-inline-start: 96px !important;
|
||||
margin-inline-end: -72px !important;
|
||||
&:first-child{
|
||||
margin-inline-start: 48px !important;
|
||||
}
|
||||
&:last-child{
|
||||
margin-inline-end: -24px !important;
|
||||
}
|
||||
display: flex;
|
||||
width: calc( 100vw - 96px );
|
||||
}
|
||||
cards-section-item{
|
||||
|
||||
margin-left: 0px;
|
||||
margin-right: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@
|
|||
<div body>
|
||||
<pages-menu *ngIf="rootPages" [root]="rootPages" class="top-menu"></pages-menu>
|
||||
<div class="btn-menu">
|
||||
<div>
|
||||
<div *ngIf="isRusPage">
|
||||
<a href="https://ais.vniigaz-cert.ru/" target="_blank">
|
||||
Личный кабинет (АИС СЦ)
|
||||
</a>
|
||||
|
|
|
|||
|
|
@ -19,4 +19,12 @@ export class SliderMenuComponent {
|
|||
return this.pagesService.rootPages;
|
||||
}
|
||||
|
||||
get rootPage() {
|
||||
return this.pagesService.rootPage;
|
||||
}
|
||||
|
||||
get isRusPage(){
|
||||
return this.rootPage.slug ===""
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue