very first commit
This commit is contained in:
18
src/app/components/logo/logo.component.ts
Normal file
18
src/app/components/logo/logo.component.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
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" width="120" height="40" fetchpriority="high" />`,
|
||||
styles: [`
|
||||
.logo-img {
|
||||
height: 40px;
|
||||
width: auto;
|
||||
}
|
||||
`]
|
||||
})
|
||||
export class LogoComponent {
|
||||
brandName = environment.brandName;
|
||||
logoPath = `/assets/images/${environment.theme}-logo.svg`;
|
||||
}
|
||||
Reference in New Issue
Block a user