diff --git a/src/app/components/rounded-btn/rounded-btn.html b/src/app/components/rounded-btn/rounded-btn.html new file mode 100644 index 0000000..a909b20 --- /dev/null +++ b/src/app/components/rounded-btn/rounded-btn.html @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/app/components/rounded-btn/rounded-btn.scss b/src/app/components/rounded-btn/rounded-btn.scss new file mode 100644 index 0000000..1aeab61 --- /dev/null +++ b/src/app/components/rounded-btn/rounded-btn.scss @@ -0,0 +1,19 @@ +button { + background-color: transparent; + border: none; +} + +.rounded-btn { + background-color: var(--secondary); + border-radius: 5px; + color: #000000; + font-size: 1.2rem; + font-weight: 700; + padding: 0.5rem; + text-align: center; + text-decoration: none; + + &:hover { + cursor: pointer; + } +} diff --git a/src/app/components/rounded-btn/rounded-btn.spec.ts b/src/app/components/rounded-btn/rounded-btn.spec.ts new file mode 100644 index 0000000..7304a43 --- /dev/null +++ b/src/app/components/rounded-btn/rounded-btn.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { RoundedBtn } from './rounded-btn'; + +describe('RoundedBtn', () => { + let component: RoundedBtn; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [RoundedBtn] + }) + .compileComponents(); + + fixture = TestBed.createComponent(RoundedBtn); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/components/rounded-btn/rounded-btn.ts b/src/app/components/rounded-btn/rounded-btn.ts new file mode 100644 index 0000000..4dfb6cd --- /dev/null +++ b/src/app/components/rounded-btn/rounded-btn.ts @@ -0,0 +1,11 @@ +import { Component, input } from '@angular/core'; + +@Component({ + selector: 'app-rounded-btn', + imports: [], + templateUrl: './rounded-btn.html', + styleUrl: './rounded-btn.scss', +}) +export class RoundedBtn { + text = input(''); +}