diff --git a/src/app/shared/components/solution-id/solution-id.component.html b/src/app/shared/components/solution-id/solution-id.component.html new file mode 100644 index 0000000000000000000000000000000000000000..1e6dfa9fa44585a350f4c08e4ee307b3cfb8d2bc --- /dev/null +++ b/src/app/shared/components/solution-id/solution-id.component.html @@ -0,0 +1 @@ +<span class="solution_id_bg">Solution ID:{{ solutionId }}</span> diff --git a/src/app/shared/components/solution-id/solution-id.component.scss b/src/app/shared/components/solution-id/solution-id.component.scss new file mode 100644 index 0000000000000000000000000000000000000000..8f4c9f25eeda0a84f289d6e1b6dffa433b614d17 --- /dev/null +++ b/src/app/shared/components/solution-id/solution-id.component.scss @@ -0,0 +1,7 @@ +.solution_id_bg { + background-color: #f1f1f1; + border: 1px solid #ccc; + font-size: 10px; + border-radius: 15px; + padding: 0 5px; +} diff --git a/src/app/shared/components/solution-id/solution-id.component.spec.ts b/src/app/shared/components/solution-id/solution-id.component.spec.ts new file mode 100644 index 0000000000000000000000000000000000000000..78fd03461d6b4c57c633cfb76380f48b78f79de1 --- /dev/null +++ b/src/app/shared/components/solution-id/solution-id.component.spec.ts @@ -0,0 +1,23 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { SolutionIdComponent } from './solution-id.component'; + +describe('SolutionIdComponent', () => { + let component: SolutionIdComponent; + let fixture: ComponentFixture<SolutionIdComponent>; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + imports: [SolutionIdComponent] + }) + .compileComponents(); + + fixture = TestBed.createComponent(SolutionIdComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/shared/components/solution-id/solution-id.component.ts b/src/app/shared/components/solution-id/solution-id.component.ts new file mode 100644 index 0000000000000000000000000000000000000000..8b325faf85d3e756c2f79639b6177825d1a29bf0 --- /dev/null +++ b/src/app/shared/components/solution-id/solution-id.component.ts @@ -0,0 +1,13 @@ +import { Component, Input } from '@angular/core'; +import { CommonModule } from '@angular/common'; + +@Component({ + selector: 'gp-solution-id', + standalone: true, + imports: [CommonModule], + templateUrl: './solution-id.component.html', + styleUrl: './solution-id.component.scss', +}) +export class SolutionIdComponent { + @Input() solutionId!: string; +}