Skip to content

Commit

Permalink
Merge branch 'anniversary' of https://github.com/CylonicRaider/heim i…
Browse files Browse the repository at this point in the history
…nto CylonicRaider-donation-links
  • Loading branch information
logan committed Dec 13, 2016
2 parents 6fa4134 + 9f4981a commit 951e51d
Show file tree
Hide file tree
Showing 2 changed files with 48 additions and 0 deletions.
18 changes: 18 additions & 0 deletions client/lib/fauxPlugins.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import React from 'react'
import Reflux from 'reflux'
import Immutable from 'immutable'
import moment from 'moment'


export default function initPlugins(roomName) {
Expand Down Expand Up @@ -847,4 +848,21 @@ export default function initPlugins(roomName) {
})
}
}

const now = moment()
if (now.month() === 11 && (now.date() === 13 || now.date() === 14)) {
Heim.hook('page-bottom', () => {
return (
<style key="anniversary-style" dangerouslySetInnerHTML={{__html: `
.messages-content {
background-image: url(/static/anniversary.svg) !important;
background-repeat: no-repeat !important;
background-position: center bottom !important;
background-size: 100vmin !important;
background-attachment: fixed !important
}
`}} />
)
})
}
}
30 changes: 30 additions & 0 deletions client/static/anniversary.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 951e51d

Please sign in to comment.