mirror of
https://github.com/danielvici/tool-website.git
synced 2026-01-17 06:51:26 +00:00
add: password generator; change: Startpage Header made bold
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
<div>
|
||||
<div class="prose prose-invert max-w-none mb-6 text-gray-300 space-y-1">
|
||||
<p>{{descriptionText()}}</p>
|
||||
@if (additionalListEnabled()) {
|
||||
<ul class="list-disc pl-6 text-gray-300 space-y-1">
|
||||
@for (item of additionalListText(); track $index) {
|
||||
<li>{{item}}</li>
|
||||
}
|
||||
</ul>
|
||||
}
|
||||
</div>
|
||||
</div>
|
||||
@@ -0,0 +1,23 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
|
||||
import { CustomDescription } from './custom-description';
|
||||
|
||||
describe('CustomDescription', () => {
|
||||
let component: CustomDescription;
|
||||
let fixture: ComponentFixture<CustomDescription>;
|
||||
|
||||
beforeEach(async () => {
|
||||
await TestBed.configureTestingModule({
|
||||
imports: [CustomDescription]
|
||||
})
|
||||
.compileComponents();
|
||||
|
||||
fixture = TestBed.createComponent(CustomDescription);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
13
src/app/components/custom-description/custom-description.ts
Normal file
13
src/app/components/custom-description/custom-description.ts
Normal file
@@ -0,0 +1,13 @@
|
||||
import {Component, input} from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-custom-description',
|
||||
imports: [],
|
||||
templateUrl: './custom-description.html',
|
||||
styleUrl: './custom-description.css',
|
||||
})
|
||||
export class CustomDescription {
|
||||
descriptionText = input.required<string>();
|
||||
additionalListEnabled = input<boolean>(false);
|
||||
additionalListText =input<string[]>();
|
||||
}
|
||||
Reference in New Issue
Block a user