| import 'hammerjs'; | import 'hammerjs'; | ||||
| import { BkpDividerComponent } from './bkp-divider/bkp-divider.component'; | import { BkpDividerComponent } from './bkp-divider/bkp-divider.component'; | ||||
| import { BkpDividerShadowBottomComponent } from './bkp-divider-shadow-bottom/bkp-divider-shadow-bottom.component'; | import { BkpDividerShadowBottomComponent } from './bkp-divider-shadow-bottom/bkp-divider-shadow-bottom.component'; | ||||
| import { BkpDividerTextComponent } from './bkp-divider-text/bkp-divider-text.component'; | |||||
| CanvasComponent, | CanvasComponent, | ||||
| LoanEditComponent, | LoanEditComponent, | ||||
| BkpDividerComponent, | BkpDividerComponent, | ||||
| BkpDividerShadowBottomComponent | |||||
| BkpDividerShadowBottomComponent, | |||||
| BkpDividerTextComponent | |||||
| ], | ], | ||||
| imports: [ | imports: [ | ||||
| BrowserModule, | BrowserModule, |
| <div class='divider'> | |||||
| <ng-content></ng-content> | |||||
| </div> |
| $link-color: #f52e62; | |||||
| $text-color: #3f517e; | |||||
| $hr-color: rgba(0,0,0,0.35); | |||||
| $hr-text-color: #453986; | |||||
| $letter-spacing: .32em; | |||||
| $background-color: #fff; | |||||
| div.divider { | |||||
| font-family: "Share Tech Mono", monospace; | |||||
| color: $text-color; | |||||
| font-size: 2vh; | |||||
| text-shadow: 1px 1px 1px rgba(0, 0, 0, .45); | |||||
| display: flex; | |||||
| justify-content: center; | |||||
| align-items: center; | |||||
| &::before, | |||||
| &::after { | |||||
| content: ''; | |||||
| display: block; | |||||
| height: 0.09em; | |||||
| min-width: 30vw; | |||||
| } | |||||
| &::before { | |||||
| background: linear-gradient(to right, rgba(240,240,240,0), #fff); | |||||
| margin-right: 4vh; | |||||
| } | |||||
| &::after { | |||||
| background: linear-gradient(to left, rgba(240,240,240,0), #fff); | |||||
| margin-left: 4vh; | |||||
| } | |||||
| } |
| import { ComponentFixture, TestBed } from '@angular/core/testing'; | |||||
| import { BkpDividerTextComponent } from './bkp-divider-text.component'; | |||||
| describe('BkpDividerTextComponent', () => { | |||||
| let component: BkpDividerTextComponent; | |||||
| let fixture: ComponentFixture<BkpDividerTextComponent>; | |||||
| beforeEach(async () => { | |||||
| await TestBed.configureTestingModule({ | |||||
| declarations: [ BkpDividerTextComponent ] | |||||
| }) | |||||
| .compileComponents(); | |||||
| }); | |||||
| beforeEach(() => { | |||||
| fixture = TestBed.createComponent(BkpDividerTextComponent); | |||||
| component = fixture.componentInstance; | |||||
| fixture.detectChanges(); | |||||
| }); | |||||
| it('should create', () => { | |||||
| expect(component).toBeTruthy(); | |||||
| }); | |||||
| }); |
| import { Component, OnInit } from '@angular/core'; | |||||
| @Component({ | |||||
| selector: 'bkp-divider-text', | |||||
| templateUrl: './bkp-divider-text.component.html', | |||||
| styleUrls: ['./bkp-divider-text.component.scss'] | |||||
| }) | |||||
| export class BkpDividerTextComponent implements OnInit { | |||||
| constructor() { } | |||||
| ngOnInit(): void { | |||||
| } | |||||
| } |
| </div> | </div> | ||||
| <bkp-divider-shadow-bottom></bkp-divider-shadow-bottom> | <bkp-divider-shadow-bottom></bkp-divider-shadow-bottom> | ||||
| <bkp-divider-text> some text </bkp-divider-text> | |||||
| </div> | </div> | ||||
| </div> | </div> |