Skip to content

Commit

Permalink
feat(logo): use single logo file for both light and dark modes
Browse files Browse the repository at this point in the history
  • Loading branch information
AmitMY committed Nov 27, 2024
1 parent 23b9b4d commit c946c20
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 33 deletions.
5 changes: 1 addition & 4 deletions src/app/pages/landing/landing.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@
<ion-title>
<picture>
<!-- TODO: inline the logo SVGs for better performance -->
<!-- Use a dark mode image for dark theme -->
<source srcset="assets/brand/logo-dark.svg" media="(prefers-color-scheme: dark)" />
<!-- Fallback to light mode image -->
<img src="assets/brand/logo-light.svg" alt="Logo" id="logo" />
<img src="../../../assets/brand/logo.svg" alt="Logo" id="logo" />
</picture>
</ion-title>
@if (!isMobile.matches) {
Expand Down
28 changes: 0 additions & 28 deletions src/assets/brand/logo-light.svg

This file was deleted.

8 changes: 7 additions & 1 deletion src/assets/brand/logo-dark.svg → src/assets/brand/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit c946c20

Please sign in to comment.