feat(atom): add title bar
This commit is contained in:
@@ -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;
|
||||
}
|
||||
@@ -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>
|
||||
@@ -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();
|
||||
});
|
||||
});
|
||||
@@ -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 {
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user