tk023 cards

master
Boris Voropaev 2024-02-09 15:19:58 +03:00
parent 4f49779279
commit f35617fa15
4 changed files with 20 additions and 21 deletions

View File

@ -2,11 +2,13 @@
<img *ngIf="image?.links?.thumb" [src]="image?.links?.thumb" />
</div> -->
<div class="position" *ngIf="position">{{position}}</div>
<div class="name" *ngIf="name">{{name}}</div>
<div class="name" *ngIf="name">
<a *ngIf="link" [href]="link">{{name}}</a>
<span *ngIf="!link">{{name}}</span>
</div>
<div class="additional" *ngIf="additional">{{additional}}</div>
<div class="phone" *ngIf="phone">{{phone}}</div>
<div class="email" *ngIf="email">{{email}}</div>
<div class="html" [innerHtml]="html"></div>
<!-- <div class="details" *ngIf="textOnly" (click)="showModal=true">
<a>{{about}}<ico ico="chevron_right_24"></ico></a>
</div> -->

View File

@ -35,13 +35,13 @@ export class CardsItemPersonsComponent {
get email() {
return this.objectsService.getValue(this.card, 'contact-email');
}
get html() {
return this.objectsService.getValue(this.card, 'html');
get link() {
return this.objectsService.getValue(this.card, 'link');
}
get textOnly(){
return this.html?.replace(/<[^>]*>?/gm, '').replace(/\s/g, "").replace(/\&nbsp;/gm,'');
}
// get textOnly(){
// return this.html?.replace(/<[^>]*>?/gm, '').replace(/\s/g, "").replace(/\&nbsp;/gm,'');
// }
get about(){
return this.pagesService.rootPage.slug ===""?"Подробнее":"About"

View File

@ -207,13 +207,18 @@ cards-section-items{
.image{
display: none;
}
.name{
.position{
font-weight: 500;
}
.position{
.name span{
font-weight: 500;
color: var(--second);
}
.name a{
font-weight: 500;
}
.subtitle{
color: var(--dark);
}

View File

@ -112,23 +112,15 @@
display: block;
.group .title {
margin: 16px 0;
font-family: PT Sans;
font-size: 16px;
font-style: normal;
font-weight: 700;
line-height: 24px;
font-weight: 500;
}
form-field{
margin-bottom: 16px;
.field {
.caption{
font-family: PT Sans;
font-size: 16px;
font-style: normal;
font-weight: 400;
line-height: 24px;
margin-bottom: 4px;
}
input, textarea, .combobox, .area p{