feat: add squared btn component

This commit is contained in:
2025-12-10 21:46:48 -03:00
parent 8eadb495d5
commit bd48ea25b7
4 changed files with 53 additions and 0 deletions

View File

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

View File

@@ -0,0 +1,16 @@
.squared-btn {
background-color: var(--primary);
border: none;
color: white;
font-size: 1.2rem;
padding: 1rem 4rem;
text-transform: uppercase;
transition: background-color 0.5s ease-in-out;
width: 100%;
&:hover {
background-color: var(--primaryDark);
cursor: pointer;
}
}

View File

@@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { SquaredBtn } from './squared-btn';
describe('SquaredBtn', () => {
let component: SquaredBtn;
let fixture: ComponentFixture<SquaredBtn>;
beforeEach(async () => {
await TestBed.configureTestingModule({
imports: [SquaredBtn]
})
.compileComponents();
fixture = TestBed.createComponent(SquaredBtn);
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-squared-btn',
imports: [],
templateUrl: './squared-btn.html',
styleUrl: './squared-btn.scss',
})
export class SquaredBtn {
text = input('');
}