diff --git a/package.json b/package.json index 80e84f9..ff6b539 100644 --- a/package.json +++ b/package.json @@ -61,6 +61,7 @@ "copy-webpack-plugin": "^4.5.1", "esprima": "^4.0.0", "firebase": "^5.0.4", + "jszip": "^3.1.5", "preact": "^8.2.6", "preact-compat": "^3.17.0", "preact-portal": "^1.1.3", diff --git a/src/components/Footer.jsx b/src/components/Footer.jsx index 7923280..26e5e2d 100644 --- a/src/components/Footer.jsx +++ b/src/components/Footer.jsx @@ -1,6 +1,41 @@ import { h, Component } from 'preact'; import { Button } from './common'; +class JS13K extends Component { + constructor(props) { + super(props); + const compoDate = new Date('August 13 2018 11:00 GMT'); + var now = new Date(); + var daysLeft; + if (+compoDate > +now) { + daysLeft = Math.floor((compoDate - now) / 1000 / 3600 / 24); + } + this.setState({ + daysLeft + }); + } + + render() { + return ( +
+ Js13kGames is a JavaScript coding competition for{' '} + HTML5 Game Developers. The fun part of the compo is + the file size limit set to 13 kilobytes. The + competition will start at 13:00 CEST, 13th August and + will end at 13:00 CEST, 13th September 2018. +
+ ++ Web Maker is an frontend playground that works offline! You can play + around quickly with HTML, JavaScript & CSS to build your awesome game + right here. +
+ +Have fun building games!
+