Refactor background-position logic in header component

This commit is contained in:
2025-04-06 20:50:49 +02:00
parent 7b377a3667
commit ab3abe7f6b
2 changed files with 9 additions and 1 deletions
@@ -41,4 +41,12 @@ export class HeaderComponent {
}
return null;
}
public getBackgroundPosition() {
if (this.current_page === 'home') {
return 'center ' + this.inverseYPos + 'px'
} else {
return '';
}
}
}