Compare commits
2
Commits
688fea9033
...
50f551df11
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
50f551df11 | ||
|
|
213a1d5fc0 |
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()
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -9,3 +9,8 @@
|
|||||||
<span>Leaderboard</span>
|
<span>Leaderboard</span>
|
||||||
<span>About</span>
|
<span>About</span>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<div class="menu-right">
|
||||||
|
<span>Login</span>
|
||||||
|
<span>Signup</span>
|
||||||
|
</div>
|
||||||
@@ -18,14 +18,16 @@
|
|||||||
isolation: isolate;
|
isolation: isolate;
|
||||||
z-index: 100;
|
z-index: 100;
|
||||||
|
|
||||||
.menu-left {
|
.menu-left, .menu-right {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: start;
|
|
||||||
gap: 48px;
|
gap: 48px;
|
||||||
padding: 12px;
|
padding: 12px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.menu-left {
|
||||||
|
justify-content: start;
|
||||||
.brand {
|
.brand {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: row;
|
flex-direction: row;
|
||||||
@@ -53,4 +55,9 @@
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.menu-right {
|
||||||
|
flex-grow: 1;
|
||||||
|
justify-content: flex-end;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -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