Compare commits

...
2 Commits
Author SHA1 Message Date
copecone 50f551df11 Add Header Menu Right 2026-03-17 08:14:53 +09:00
copecone 213a1d5fc0 Add Popup Component 2026-03-17 08:14:41 +09:00
9 changed files with 72 additions and 2 deletions

No files matched your search

+13
View File
@@ -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>
View File
Whitespace-only changes.
+16
View File
@@ -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()
}
}
+5
View File
@@ -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>
+9 -2
View File
@@ -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;
}
} }
+16
View File
@@ -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>-->
View File
Whitespace-only changes.
+12
View File
@@ -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 {}
+1
View File
@@ -8,5 +8,6 @@ body {
margin: 0; margin: 0;
overscroll-behavior-x: none; overscroll-behavior-x: none;
background-color: white;
} }