feat(atom): add title bar

This commit is contained in:
2025-08-03 00:38:18 -03:00
parent 3f1be2781d
commit 7af748c94b
4 changed files with 66 additions and 0 deletions

View File

@@ -0,0 +1,21 @@
.title-bar{
background-color: var(--mw-gray-100);
border-bottom: 1px solid var(--mw-gray-400);
height: 3.2rem;
width: 100%;
}
.title-bar__content {
display: flex;
height: 100%;
justify-content: space-between;
padding: 0 0.8rem;
}
.title-bar__item {
align-items: center;
display: flex;
height: 100%;
max-height: calc(3.2rem - 1px);
overflow: hidden;
}

View File

@@ -0,0 +1,10 @@
<div class="title-bar">
<div class="title-bar__content">
<div class="title-bar__item">
<ng-content select="[slot=item-left]"></ng-content>
</div>
<div class="title-bar__item">
<ng-content select="[slot=item-right]"></ng-content>
</div>
</div>
</div>

View File

@@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { TitleBarComponent } from './title-bar.component';
describe('TitleBarComponent', () => {
let component: TitleBarComponent;
let fixture: ComponentFixture<TitleBarComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [TitleBarComponent]
})
.compileComponents();
fixture = TestBed.createComponent(TitleBarComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@@ -0,0 +1,12 @@
import { Component } from '@angular/core';
@Component({
selector: 'my-wallet-title-bar',
standalone: true,
imports: [],
templateUrl: './title-bar.component.html',
styleUrl: './title-bar.component.css'
})
export class TitleBarComponent {
}