Skip to content

Commit

Permalink
refactor: add SLS logo in PNG format as default
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianKohler authored Jan 9, 2024
1 parent 41f198a commit 9df4bef
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 6 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/), and this

## [Unreleased]

### Changed

- Default site logo in top menu changed to optimized PNG image file. Added both black and white versions of SLS’s logo to `assets/images/logo/`.



## [1.1.1] – 2024-01-09
Expand Down
8 changes: 4 additions & 4 deletions src/app/components/menus/top/top-menu.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,9 +35,9 @@ export class TopMenuComponent implements OnDestroy, OnInit {
showTopContentButton: boolean = true;
showTopSearchButton: boolean = true;
showTopURNButton: boolean = true;
siteLogoDefaultImageUrl: string = 'assets/images/logo.svg';
siteLogoDefaultImageUrl: string = 'assets/images/logo/SLS_logo_full_white_346x112.png';
siteLogoLinkUrl: string = 'https://www.sls.fi/';
siteLogoMobileImageUrl: string = 'assets/images/logo-mobile.svg';
siteLogoMobileImageUrl: string = 'assets/images/logo/SLS_logo_symbol_white_112x112.png';
_window: Window;

constructor(
Expand All @@ -56,8 +56,8 @@ export class TopMenuComponent implements OnDestroy, OnInit {
this.showSiteLogo = config.component?.topMenu?.showSiteLogo ?? false;

this.siteLogoLinkUrl = config.component?.topMenu?.siteLogoLinkURL ?? 'https://www.sls.fi/';
this.siteLogoDefaultImageUrl = config.component?.topMenu?.siteLogoDefaultImageURL ?? 'assets/images/logo.svg';
this.siteLogoMobileImageUrl = config.component?.topMenu?.siteLogoMobileImageURL ?? 'assets/images/logo-mobile.svg';
this.siteLogoDefaultImageUrl = config.component?.topMenu?.siteLogoDefaultImageURL ?? 'assets/images/logo/SLS_logo_full_white_346x112.png';
this.siteLogoMobileImageUrl = config.component?.topMenu?.siteLogoMobileImageURL ?? 'assets/images/logo/SLS_logo_symbol_white_112x112.png';

if (!this.siteLogoMobileImageUrl && this.siteLogoDefaultImageUrl) {
this.siteLogoMobileImageUrl = this.siteLogoDefaultImageUrl;
Expand Down
4 changes: 2 additions & 2 deletions src/assets/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -340,8 +340,8 @@ export const config: Config = {
showURNButton: false,
showLanguageButton: true,
showSiteLogo: true,
siteLogoDefaultImageURL: "assets/images/logo.svg",
siteLogoMobileImageURL: "assets/images/logo-mobile.svg",
siteLogoDefaultImageURL: "assets/images/logo/SLS_logo_full_white_346x112.png",
siteLogoMobileImageURL: "assets/images/logo/SLS_logo_symbol_white_112x112.png",
siteLogoLinkURL: "https://www.sls.fi/"
},
variants: {
Expand Down
Empty file added src/assets/images/logo/.gitkeep
Empty file.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
File renamed without changes

0 comments on commit 9df4bef

Please sign in to comment.