Commit fe18c215 authored by LianaHus's avatar LianaHus

remix logo colors for light and dark themes

parent d8d287d5
...@@ -197,11 +197,19 @@ export class LandingPage extends BaseApi { ...@@ -197,11 +197,19 @@ export class LandingPage extends BaseApi {
app.loadFromGist({gist: ''}) app.loadFromGist({gist: ''})
} }
globalRegistry.get('themeModule').api.events.on('themeChanged', (type) => {
const invert = type === 'dark' ? 1 : 0
const img = document.getElementById('remixLogo')
if (img) {
img.style.filter = `invert(${invert})`
}
})
let container = yo`<div class="${css.homeContainer} bg-light"> let container = yo`<div class="${css.homeContainer} bg-light">
<div class="${css.jumbotronContainer}"> <div class="${css.jumbotronContainer}">
<div class="alert alert-info clearfix ${css.thisJumboton}"> <div class="alert alert-info clearfix ${css.thisJumboton}">
<div class="${css.logoContainer}"> <div class="${css.logoContainer}">
<img src="${logo}" alt="remix logo"> <img id='remixLogo' src="${logo}" alt="remix logo">
</div> </div>
<div class="${css.headlineContainer}"> <div class="${css.headlineContainer}">
<h2 class="">The new layout has arrived</h2> <h2 class="">The new layout has arrived</h2>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment