-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
138 additions
and
1 deletion.
There are no files selected for viewing
12 changes: 12 additions & 0 deletions
12
ngapp/src/app/student/bat-mirialta-drawer/bat-mirialta-drawer.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,12 @@ | ||
<div class="batmirialtaHeader"> | ||
<div> | ||
{{ ts.l.batmirialta }} | ||
An Bat Mírialta | ||
</div> | ||
<div class="closeBatmirialtaBtn" (click)="closeEmitter.next(true)"> | ||
<i class="fa fa-times"></i> | ||
</div> | ||
</div> | ||
<iframe src="https://bat-mirialta.abair.ie" frameborder="0" style="overflow: hidden; height: 100%; | ||
width: 100%; position: absolute;"> | ||
</iframe> |
47 changes: 47 additions & 0 deletions
47
ngapp/src/app/student/bat-mirialta-drawer/bat-mirialta-drawer.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,47 @@ | ||
.batmirialtaHeader { | ||
width: 100%; | ||
padding: 25px; | ||
height: 30px; | ||
background-color: var(--scealai-green); | ||
color: white; | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.closeBatmirialtaBtn { | ||
margin-left: auto; | ||
} | ||
|
||
.closeBatmirialtaBtn:hover { | ||
cursor: pointer; | ||
} | ||
|
||
.textFieldContainer { | ||
width: 100%; | ||
resize: none; | ||
z-index: 1; | ||
color: var(--dark-text); | ||
background: white; | ||
padding-left: 20px; | ||
padding-right: 20px; | ||
padding-top: 10px; | ||
} | ||
|
||
.textField { | ||
width: 100%; | ||
resize: none; | ||
z-index: 1; | ||
color: var(--dark-text); | ||
background: white; | ||
padding-left: 20px; | ||
padding-right: 20px; | ||
padding-top: 10px; | ||
border: none; | ||
} | ||
|
||
.audioPlayer { | ||
height: 30px; | ||
width: 90%; | ||
background-color: #f1f3f4; | ||
border: 1px solid #8c806e86; | ||
} |
25 changes: 25 additions & 0 deletions
25
ngapp/src/app/student/bat-mirialta-drawer/bat-mirialta-drawer.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 { HttpClientTestingModule } from '@angular/common/http/testing'; | ||
|
||
import { BatMirialtaDrawerComponent } from './batmirialta-drawer.component'; | ||
|
||
describe('BatMirialtaDrawerComponent', () => { | ||
let component: BatmirialtaDrawerComponent; | ||
let fixture: ComponentFixture<BatmirialtaDrawerComponent>; | ||
|
||
beforeEach(async () => { | ||
await TestBed.configureTestingModule({ | ||
imports: [ HttpClientTestingModule ], | ||
declarations: [ BatMirialtaDrawerComponent ] | ||
}) | ||
.compileComponents(); | ||
|
||
fixture = TestBed.createComponent(BatMirialtaDrawerComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
36 changes: 36 additions & 0 deletions
36
ngapp/src/app/student/bat-mirialta-drawer/bat-mirialta-drawer.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,36 @@ | ||
import { Component, OnInit, Output, EventEmitter, Input } from "@angular/core"; | ||
import { TranslationService } from "app/core/services/translation.service"; | ||
import { StoryService } from "app/core/services/story.service"; | ||
import { EngagementService } from "app/core/services/engagement.service"; | ||
import { NotificationService } from "app/core/services/notification-service.service"; | ||
import { DomSanitizer, SafeUrl } from "@angular/platform-browser"; | ||
import { Story } from "app/core/models/story"; | ||
import { EventType } from "app/core/models/event"; | ||
|
||
@Component({ | ||
selector: "app-bat-mirialta-drawer", | ||
templateUrl: "./bat-mirialta-drawer.component.html", | ||
styleUrls: ["./bat-mirialta-drawer.component.scss"], | ||
}) | ||
export class BatMirialtaDrawerComponent implements OnInit { | ||
@Output() closeEmitter = new EventEmitter(); | ||
@Input() story: Story; | ||
@Input() hasBatmirialta: boolean; | ||
audioSource: SafeUrl | null = null; | ||
|
||
constructor( | ||
protected ts: TranslationService, | ||
protected sanitizer: DomSanitizer, | ||
private storyService: StoryService, | ||
private engagement: EngagementService, | ||
private notificationService: NotificationService | ||
) {} | ||
|
||
ngOnInit(): void {} | ||
|
||
ngOnChanges(changes: any) { | ||
if (!this.hasBatmirialta) { | ||
this.closeEmitter.next(true) | ||
} | ||
} | ||
} |
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