20 lines
510 B
TypeScript
20 lines
510 B
TypeScript
import { Component } from '@angular/core';
|
|
import { environment } from '../../../environments/environment';
|
|
|
|
@Component({
|
|
selector: 'app-logo',
|
|
standalone: true,
|
|
template: `<img [src]="logoPath" [alt]="brandName + ' logo'" class="logo-img" fetchpriority="high" />`,
|
|
styles: [`
|
|
.logo-img {
|
|
width: 100%;
|
|
height: 100%;
|
|
object-fit: contain;
|
|
}
|
|
`]
|
|
})
|
|
export class LogoComponent {
|
|
brandName = environment.brandName;
|
|
logoPath = `/assets/images/${environment.theme}-logo.svg`;
|
|
}
|