feat: add TextButtonComponent
This commit is contained in:
parent
cf6bb1abff
commit
a6b021dd98
@ -0,0 +1,16 @@
|
|||||||
|
button {
|
||||||
|
background-color: var(--primary-background-color);
|
||||||
|
color: var(--primary-text-color);
|
||||||
|
font-size: 1.5rem;
|
||||||
|
font-weight: bold;
|
||||||
|
padding: 1rem 3rem;
|
||||||
|
border: none;
|
||||||
|
border-color: var(--primary-background-color);
|
||||||
|
border-radius: 6px;
|
||||||
|
cursor: pointer;
|
||||||
|
}
|
||||||
|
|
||||||
|
button:hover {
|
||||||
|
transform: translateY(3px);
|
||||||
|
transition: transform 0.1s ease-in-out;
|
||||||
|
}
|
@ -0,0 +1 @@
|
|||||||
|
<button>{{ text }}</button>
|
@ -0,0 +1,23 @@
|
|||||||
|
import {ComponentFixture, TestBed} from '@angular/core/testing';
|
||||||
|
|
||||||
|
import {TextButtonComponent} from './text-button.component';
|
||||||
|
|
||||||
|
describe('ButtonComponent', () => {
|
||||||
|
let component: TextButtonComponent;
|
||||||
|
let fixture: ComponentFixture<TextButtonComponent>;
|
||||||
|
|
||||||
|
beforeEach(async () => {
|
||||||
|
await TestBed.configureTestingModule({
|
||||||
|
imports: [TextButtonComponent]
|
||||||
|
})
|
||||||
|
.compileComponents();
|
||||||
|
|
||||||
|
fixture = TestBed.createComponent(TextButtonComponent);
|
||||||
|
component = fixture.componentInstance;
|
||||||
|
fixture.detectChanges();
|
||||||
|
});
|
||||||
|
|
||||||
|
it('should create', () => {
|
||||||
|
expect(component).toBeTruthy();
|
||||||
|
});
|
||||||
|
});
|
12
frontend/src/app/atomic/text-button/text-button.component.ts
Normal file
12
frontend/src/app/atomic/text-button/text-button.component.ts
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
// import {Component} from '@angular/core';
|
||||||
|
import {Component, Input} from '@angular/core';
|
||||||
|
|
||||||
|
@Component({
|
||||||
|
selector: 'atomic-text-button',
|
||||||
|
imports: [],
|
||||||
|
templateUrl: './text-button.component.html',
|
||||||
|
styleUrl: './text-button.component.css'
|
||||||
|
})
|
||||||
|
export class TextButtonComponent {
|
||||||
|
@Input() text: string = '';
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user