|
6 | 6 |
|
7 | 7 | <label>Source code at <b><a href="https://github.com/xpquiz/xpquiz.github.io">GitHub</a></b></label> |
8 | 8 | <label>Questions provided by <b><a href="https://the-trivia-api.com/">The Trivia API</a></b>, <b><a |
9 | | - href="https://opentdb.com/">Open Trivia Database</a></b> and <b><a href="https://quizapi.io/">QuizAPI</a></b></label> |
| 9 | + href="https://opentdb.com/">Open Trivia Database</a></b> and <b><a |
| 10 | + href="https://quizapi.io/">QuizAPI</a></b></label> |
10 | 11 | <label>Windows XP theming provided by <b><a href="https://botoxparty.github.io/XP.css/">XP.css</a></b></label> |
11 | 12 | <label>Windows XP sounds provided by <b><a href="https://archive.org/details/windowsxpstartup_201910/">The |
12 | 13 | Internet Archive</a></b></label> |
13 | 14 | <label>Windows XP icons provided by <b><a |
14 | 15 | href="https://www.deviantart.com/marchmountain/art/Windows-XP-High-Resolution-Icon-Pack-916042853">marchmountain |
15 | 16 | at DeviantArt</a></b></label> |
16 | 17 |
|
17 | | - <app-icon-button iconPath="home.png" title="Return to home" |
18 | | - (onButtonClick)="this.router.navigateByUrl(PathsEnum.HOME)"></app-icon-button> |
| 18 | + <div class="window-body_buttons"> |
| 19 | + <app-icon-button iconPath="home.png" title="Return home" |
| 20 | + (onButtonClick)="this.router.navigateByUrl(PathsEnum.HOME)"></app-icon-button> |
| 21 | + <app-icon-button iconPath="contact.png" title="Contact us!" [disabled]="this.showFeedbackWindow" |
| 22 | + (onButtonClick)="this.toggleFeedbackWindow()"></app-icon-button> |
| 23 | + </div> |
19 | 24 | </div> |
20 | 25 | </div> |
| 26 | + |
| 27 | +<div class="window" *ngIf="this.showFeedbackWindow"> |
| 28 | + <app-window-title-bar iconPath="about.png" title="Contact"></app-window-title-bar> |
| 29 | + <div class="window-body"> |
| 30 | + <form [formGroup]="this.feedbackForm" (ngSubmit)="this.onSubmit()"> |
| 31 | + <label class="window-body_feedback-title">✍️ Feel free to message us about suggestions, feedbacks or compliments! |
| 32 | + 🤔</label> |
| 33 | + |
| 34 | + <div class="window-body_feedback-inputs"> |
| 35 | + <div class="field-row"> |
| 36 | + <label for="name">Name (*):</label> |
| 37 | + <input id="name" type="text" formControlName="name" placeholder="Type in your name..."/> |
| 38 | + </div> |
| 39 | + <div class="field-row"> |
| 40 | + <label for="message">Message (*):</label> |
| 41 | + <textarea id="message" rows="8" formControlName="message" placeholder="Write your message..."></textarea> |
| 42 | + </div> |
| 43 | + </div> |
| 44 | + |
| 45 | + <div class="window-body_feedback-inputs-error"> |
| 46 | + <label *ngIf="this.shouldShowErrorMessage('name')">Please type in your name.</label> |
| 47 | + <label *ngIf="this.shouldShowErrorMessage('message')">Please type your message.</label> |
| 48 | + </div> |
| 49 | + |
| 50 | + <div class="window-body_feedback-buttons"> |
| 51 | + <app-icon-button iconPath="no.png" title="Close" |
| 52 | + (onButtonClick)="this.toggleFeedbackWindow()"></app-icon-button> |
| 53 | + <app-icon-button [disabled]="this.shouldDisableSendButton()" iconPath="send.png" title="Send" |
| 54 | + type="submit"></app-icon-button> |
| 55 | + </div> |
| 56 | + </form> |
| 57 | + </div> |
| 58 | +</div> |
| 59 | + |
0 commit comments