portfolio/src/app/logo/logo.component.ts
Naomi b909f4666c feat: modularise and expand job information, set up testing (#9)
Closes #6
Closes #7
Closes #8

Reviewed-on: https://codeberg.org/nhcarrigan/portfolio/pulls/9
Co-authored-by: Naomi <commits@nhcarrigan.com>
Co-committed-by: Naomi <commits@nhcarrigan.com>
2024-05-19 05:17:17 +00:00

30 lines
579 B
TypeScript

import { Component, Input, OnInit } from "@angular/core";
import { Logos } from "../config/Logos";
/**
*
*/
@Component({
selector: "app-logo",
standalone: true,
imports: [],
templateUrl: "./logo.component.html",
styleUrl: "./logo.component.css"
})
export class LogoComponent implements OnInit {
@Input() logo: (typeof Logos)[number] = {} as never;
public link = "";
public alt = "";
public file = "";
/**
*
*/
ngOnInit(): void {
this.link = this.logo.link;
this.alt = this.logo.alt;
this.file = `/assets/img/${this.logo.file}`;
}
}