generated from nhcarrigan/template
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>
30 lines
579 B
TypeScript
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}`;
|
|
}
|
|
}
|