Add Popup Component
This commit is contained in:
1 parent
688fea9033
commit
213a1d5fc0
7 files changed
+58
No files matched your search
@@ -0,0 +1,13 @@
|
|||||||
|
<header class="popup-header">
|
||||||
|
<div class="header-left">
|
||||||
|
<ng-content select="[header-left]"></ng-content>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="header-right">
|
||||||
|
<button class="material-symbols-outlined icon-24 chevron" (click)="onClose()">close</button>
|
||||||
|
</div>
|
||||||
|
</header>
|
||||||
|
|
||||||
|
<div class="popup-body">
|
||||||
|
<ng-content></ng-content>
|
||||||
|
</div>
|
||||||
Whitespace-only changes.
@@ -0,0 +1,16 @@
|
|||||||
|
import { Component, input, model, output } from '@angular/core';
|
||||||
|
import { Dropdown } from '../../components/dropdown/dropdown';
|
||||||
|
import { Switch } from '../../components/switch/switch';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'popup',
|
||||||
|
templateUrl: './popup.html',
|
||||||
|
styleUrl: './popup.scss',
|
||||||
|
})
|
||||||
|
export class PopupComponent {
|
||||||
|
close = output<void>();
|
||||||
|
|
||||||
|
onClose() {
|
||||||
|
this.close.emit()
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -0,0 +1,16 @@
|
|||||||
|
<!--<popup (close)="handleClose()">
|
||||||
|
<div header-left class="profile-section">
|
||||||
|
<img [src]="userProfileImg" alt="profile" class="avatar">
|
||||||
|
<span>{{ userName }}</span>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="settings-content">
|
||||||
|
<label>Language</label>
|
||||||
|
<dropdown [options]="languages"
|
||||||
|
placeholder="Choose Language"></dropdown>
|
||||||
|
<switch></switch>
|
||||||
|
|
||||||
|
<label>Appearance</label>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</popup>-->
|
||||||
Whitespace-only changes.
@@ -0,0 +1,12 @@
|
|||||||
|
import { Component, input, model, output } from '@angular/core';
|
||||||
|
import { Dropdown } from '../../components/dropdown/dropdown';
|
||||||
|
import { Switch } from '../../components/switch/switch';
|
||||||
|
import { PopupComponent } from '../../components/popup/popup';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'settings-popup',
|
||||||
|
imports: [PopupComponent, Dropdown, Switch],
|
||||||
|
templateUrl: './popup.html',
|
||||||
|
styleUrl: './popup.scss',
|
||||||
|
})
|
||||||
|
export class SettingsPopup {}
|
||||||
@@ -8,5 +8,6 @@ body {
|
|||||||
margin: 0;
|
margin: 0;
|
||||||
|
|
||||||
overscroll-behavior-x: none;
|
overscroll-behavior-x: none;
|
||||||
|
background-color: white;
|
||||||
}
|
}
|
||||||
|
|
||||||
Reference in new issue
Block a user