feat: add rounded btn

This commit is contained in:
2025-12-15 21:56:35 -03:00
parent 01ac16fbdc
commit fdbd500005
4 changed files with 54 additions and 0 deletions

View File

@@ -0,0 +1 @@
<button class="rounded-btn">{{text()}}</button>

View File

@@ -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;
}
}

View File

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

View File

@@ -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('');
}