Added info modal window

This commit is contained in:
2024-03-09 18:16:20 +03:00
parent f9a7b812fe
commit 8cd5dd1f8e
13 changed files with 128 additions and 5 deletions

View File

@@ -0,0 +1,10 @@
<div class="panel">
<span>Info</span>
<div class="btns">
<fa-icon [icon]="faMenu"></fa-icon>
<fa-icon [icon]="faClose"></fa-icon>
</div>
</div>
<div class="content">
<h1>Hello</h1>
</div>

View File

@@ -0,0 +1,24 @@
.panel {
width: 100%;
display: flex;
height: 3rem;
flex-direction: row;
justify-content: space-between;
align-items: center;
padding: 0 1rem;
background-color: var(--black);
color: var(--white);
span {
font-size: 600;
}
.btns {
display: flex;
flex-direction: row;
justify-content: flex-end;
align-items: center;
gap: 1rem;
}
}
.content {
margin: 1rem;
}

View File

@@ -0,0 +1,19 @@
import { CommonModule } from "@angular/common";
import { ChangeDetectionStrategy, Component } from "@angular/core";
import { FontAwesomeModule } from "@fortawesome/angular-fontawesome";
import { faBars, faXmark } from "@fortawesome/free-solid-svg-icons";
import { DialogRef } from "@ngneat/dialog";
@Component({
selector: "app-window",
standalone: true,
imports: [CommonModule, FontAwesomeModule],
templateUrl: "./window.component.html",
styleUrls: ["./window.component.less"],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class WindowComponent {
faClose = faXmark;
faMenu = faBars;
constructor(public ref: DialogRef) {}
}