-
Notifications
You must be signed in to change notification settings - Fork 0
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
1 parent
8277d7a
commit 7769b65
Showing
14 changed files
with
143 additions
and
36 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,4 @@ | ||
<img src="assets/ship.png" alt="ship" (click)="onShipClick()"> | ||
<img src="assets/ship.png" alt="ship" (click)="showShop = true"> | ||
<th-big-popup [popupTitle]="'Shop'" *ngIf="showShop" (close)="showShop = false"> | ||
<p>Ganz toller Shop Content!!</p> | ||
</th-big-popup> |
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
5 changes: 5 additions & 0 deletions
5
tidal-harvest/src/app/ui/shared/popup/big-popup/big-popup.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,5 @@ | ||
<div class="popup-container"> | ||
<button class="close-btn" (click)="onClose()"></button> | ||
<h1>{{popupTitle}}</h1> | ||
<ng-content></ng-content> | ||
</div> |
29 changes: 29 additions & 0 deletions
29
tidal-harvest/src/app/ui/shared/popup/big-popup/big-popup.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,29 @@ | ||
:host { | ||
position: fixed; | ||
top: 0; | ||
left: 0; | ||
z-index: 16; | ||
background-color: #0006; | ||
width: 100%; | ||
height: 100vh; | ||
} | ||
|
||
.popup-container { | ||
background-image: url("/assets/ui/popup_big.png"); | ||
width: 500px; | ||
background-size: 100%; | ||
height: 284px; | ||
margin: 23vh auto; | ||
color: black; | ||
padding: 10px 40px; | ||
|
||
h1 { | ||
text-align: center; | ||
} | ||
} | ||
|
||
.close-btn { | ||
margin-left: 494px; | ||
margin-top: 9px; | ||
position: absolute; | ||
} |
21 changes: 21 additions & 0 deletions
21
tidal-harvest/src/app/ui/shared/popup/big-popup/big-popup.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,21 @@ | ||
import { ComponentFixture, TestBed } from '@angular/core/testing'; | ||
|
||
import { BigPopupComponent } from './big-popup.component'; | ||
|
||
describe('BigPopupComponent', () => { | ||
let component: BigPopupComponent; | ||
let fixture: ComponentFixture<BigPopupComponent>; | ||
|
||
beforeEach(() => { | ||
TestBed.configureTestingModule({ | ||
declarations: [BigPopupComponent] | ||
}); | ||
fixture = TestBed.createComponent(BigPopupComponent); | ||
component = fixture.componentInstance; | ||
fixture.detectChanges(); | ||
}); | ||
|
||
it('should create', () => { | ||
expect(component).toBeTruthy(); | ||
}); | ||
}); |
15 changes: 15 additions & 0 deletions
15
tidal-harvest/src/app/ui/shared/popup/big-popup/big-popup.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,15 @@ | ||
import {Component, EventEmitter, Input, Output} from '@angular/core'; | ||
|
||
@Component({ | ||
selector: 'th-big-popup', | ||
templateUrl: './big-popup.component.html', | ||
styleUrls: ['./big-popup.component.scss'] | ||
}) | ||
export class BigPopupComponent { | ||
@Input() popupTitle: string = "Mitteilung"; | ||
@Output() close: EventEmitter<any> = new EventEmitter<any>(); | ||
|
||
onClose() { | ||
this.close.emit(); | ||
} | ||
} |
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
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