-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
About #224
Open
NatashaMelnik
wants to merge
18
commits into
develop
Choose a base branch
from
about
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Open
About #224
Changes from all commits
Commits
Show all changes
18 commits
Select commit
Hold shift + click to select a range
cdefc45
about page start pos, add sec header single person route
NatashaMelnik fcdff3d
add title translation
NatashaMelnik 7048c27
visit ua text add
NatashaMelnik 80fe6f9
visit mobile/tablet
NatashaMelnik 647196e
history mobile/tablet
NatashaMelnik 52a4903
single fest mobile/tablet style add
NatashaMelnik 3475358
lint err fix
NatashaMelnik bc2ff14
lint err fix 2
NatashaMelnik abea24b
salat's errors
NatashaMelnik 43e6a61
festivals mobile/tablet
NatashaMelnik 9989c93
lint err fix 3
NatashaMelnik 649610e
showmore mobile/tablet
NatashaMelnik 8f0e371
single person mobile/tablet
NatashaMelnik 9b5618e
lint err fix 4
NatashaMelnik 0028d24
lint err fix 5
NatashaMelnik 24ba03f
lint err fix 6
NatashaMelnik f5aa9fd
Uncomment header/footer
yana-tsylinska 61e47f0
persons slider mobile/tablet
NatashaMelnik File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 6 additions & 0 deletions
6
src/app/components/about/about-header/about-header.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<div class="about_seconHeader_container"> | ||
<a class="item" routerLink="/about/theatre-history" routerLinkActive="active" i18n="@@theatreHistory">History of theatre</a> | ||
<a class="item" routerLink="/about/festivals" routerLinkActive="active" i18n="@@festivals">Festivals</a> | ||
<a class="item" routerLink="/about/epoch/persons" [class]="selectedEpoch" routerLinkActive="active" i18n="@@epoch">Epoch</a> | ||
<a class="item" routerLink="/about/visit" routerLinkActive="active" i18n="@@theatreVisit">Visit to the theatre</a> | ||
</div> |
50 changes: 50 additions & 0 deletions
50
src/app/components/about/about-header/about-header.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
@import "~assets/styles/_variables"; | ||
@import "~assets/styles/aboutStyles"; | ||
|
||
.about_seconHeader_container { | ||
background-color: $font-color-accent; | ||
height: 56px; | ||
display: flex; | ||
flex-grow: 0; | ||
justify-content: center; | ||
object-fit: contain; | ||
|
||
.item { | ||
color: $font-color-black; | ||
text-decoration: none; | ||
font-family: $body-font-family; | ||
font-size: $font-size-medium; | ||
line-height: 1.5; | ||
padding-left: 15px; | ||
padding-right: 15px; | ||
align-self: center; | ||
|
||
&.active { | ||
@include selectedI; | ||
} | ||
} | ||
|
||
.item:hover { | ||
height: 56px; | ||
line-height: 1.39; | ||
padding-top: 16px; | ||
background-color: $background-on-hover; | ||
font-weight: $font-weight-semi-bold; | ||
} | ||
} | ||
|
||
.selected { | ||
@include selectedI; | ||
} | ||
|
||
@media (max-width: $max-width-tablet) { | ||
.about_seconHeader_container{ | ||
display: none; | ||
} | ||
} | ||
|
||
@media (max-width: $max-width-mobile) { | ||
.about_seconHeader_container{ | ||
display: none; | ||
} | ||
} |
25 changes: 25 additions & 0 deletions
25
src/app/components/about/about-header/about-header.component.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { AboutHeaderComponent } from './about-header.component'; | ||
|
||
describe('AboutHeaderComponent', () => { | ||
let component: AboutHeaderComponent; | ||
let fixture: ComponentFixture<AboutHeaderComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
declarations: [ AboutHeaderComponent ] | ||
}) | ||
.compileComponents(); | ||
}); | ||
|
||
beforeEach(() => { | ||
fixture = TestBed.createComponent(AboutHeaderComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
20 changes: 20 additions & 0 deletions
20
src/app/components/about/about-header/about-header.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { Component, OnInit, Input } from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'app-about-header', | ||
templateUrl: './about-header.component.html', | ||
styleUrls: ['./about-header.component.scss'] | ||
}) | ||
export class AboutHeaderComponent implements OnInit { | ||
@Input() PersonType; | ||
selectedClass = 'selected'; | ||
selectedEpoch; | ||
|
||
constructor() { } | ||
|
||
ngOnInit(): void { | ||
if (this.PersonType && this.PersonType === 'epoch') { | ||
this.selectedEpoch = this.selectedClass; | ||
} | ||
} | ||
} |
78 changes: 65 additions & 13 deletions
78
src/app/components/about/about-more/about-more.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,75 @@ | ||
<div class="container"> | ||
<app-spinner name="about-more"></app-spinner> | ||
|
||
<h2 class="festTitle" i18n="@@festival">Festival</h2> | ||
|
||
<div class="history" *ngIf="history"> | ||
<div class="history-title"> | ||
<h2 class="page-title history-heading">{{ history.title }}</h2> | ||
<p class="history-date">{{ history.created_at | date:"dd.MM.yyyy" }}</p> | ||
</div> | ||
<div class="history-main_img"> | ||
<img class="img" [src]='history.mainPicture.reference.url' [alt]="history.mainPicture.reference.properties.alt" | ||
[title]="history.mainPicture.reference.properties.title"> | ||
|
||
<div class="history-fest-contain"> | ||
|
||
<div class="history-main_img"> | ||
<img class="img" [src]="history.mainPicture.reference.url" [alt]="history.mainPicture.reference.properties.alt" | ||
[title]="history.mainPicture.reference.properties.title"/> | ||
</div> | ||
|
||
<div class="post-text"><p> {{ history.text }} </p></div> | ||
</div> | ||
<div class="performance"> | ||
<ul class="performance-list" *ngIf="history.performances"> | ||
<li class="list-item" *ngFor="let item of history.performances" [routerLink]="[ '/performance', item.slug ]"> | ||
<img class="img" [src]="item.mainPicture.performance_big.url" alt="performance picture" | ||
[title]="item.mainPicture.performance_big.properties.title"> | ||
<p class="title"><span class="span">{{ item.title }}</span></p> | ||
</li> | ||
</ul> | ||
|
||
<div *ngIf="history.performances.length > 0"> | ||
|
||
<div class="wrapped"> | ||
|
||
<h2 class="performansesListTitle" i18n="@@performances">Performance</h2> | ||
|
||
<ngu-carousel | ||
#myCarousel | ||
[inputs]="carouselTile" | ||
[dataSource]="history.performances" | ||
class="slider" | ||
> | ||
<ngu-tile *nguCarouselDef="let item"> | ||
<div | ||
class="image" | ||
[routerLink]="['/performance', item.slug]" | ||
[style.background]="'url(' + item.mainPicture.performance_big.url + ')'" | ||
> | ||
</div> | ||
</ngu-tile> | ||
<ul class="myPoint" NguCarouselPoint> | ||
<li | ||
*ngFor="let j of myCarousel.pointNumbers; let i = index" | ||
[class.active]="j===myCarousel.activePoint" | ||
(click)="myCarousel.moveTo(i)" | ||
> | ||
</li> | ||
</ul> | ||
<div NguCarouselPrev class="left"> | ||
<img alt="chevron-left" src="assets/images/slider/chevron-left.svg"> | ||
</div> | ||
<div NguCarouselNext class="right"> | ||
<img alt="chevron-rigth" src="assets/images/slider/chevron-right.svg"> | ||
</div> | ||
</ngu-carousel> | ||
|
||
</div> | ||
|
||
</div> | ||
|
||
<div class="mobile_performances"> | ||
<div *ngIf="history.performances.length > 0"> | ||
<h2 class="performansesListTitle" i18n="@@performances">Performance</h2> | ||
<div class="performance-list"> | ||
<ng-template ngFor let-item [ngForOf]="history.performances"> | ||
<a class="performance-route" [routerLink]="['/performance', item.slug]"> | ||
<img src="{{ item.mainPicture.performance_big.url }}" alt="performances"> | ||
</a> | ||
</ng-template> | ||
</div> | ||
</div> | ||
</div> | ||
<div class="post-text" [innerHtml]="history.text"></div> | ||
|
||
</div> | ||
</div> |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
paddings!