feat: add rounded btn
This commit is contained in:
1
src/app/components/rounded-btn/rounded-btn.html
Normal file
1
src/app/components/rounded-btn/rounded-btn.html
Normal file
@@ -0,0 +1 @@
|
||||
<button class="rounded-btn">{{text()}}</button>
|
||||
19
src/app/components/rounded-btn/rounded-btn.scss
Normal file
19
src/app/components/rounded-btn/rounded-btn.scss
Normal 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;
|
||||
}
|
||||
}
|
||||
23
src/app/components/rounded-btn/rounded-btn.spec.ts
Normal file
23
src/app/components/rounded-btn/rounded-btn.spec.ts
Normal 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();
|
||||
});
|
||||
});
|
||||
11
src/app/components/rounded-btn/rounded-btn.ts
Normal file
11
src/app/components/rounded-btn/rounded-btn.ts
Normal 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('');
|
||||
}
|
||||
Reference in New Issue
Block a user