diff --git a/client/src/components/front.page.jsx b/client/src/components/front.page.jsx new file mode 100644 index 00000000..40823716 --- /dev/null +++ b/client/src/components/front.page.jsx @@ -0,0 +1,83 @@ +// const { connect } = require('preact-redux'); +const preact = require('preact'); +const { connect } = require('preact-redux'); + +const { errorToast, infoToast } = require('../utils'); +const actions = require('./../actions'); + +const VERSION = process.env.npm_package_version; + +const Welcome = require('./welcome'); +const NoiseLogo = require('./noise.logo'); + +const addState = connect( + function receiveState(state) { + const { + ws, + account, + } = state; + + function sendInstancePractice() { + ws.sendInstancePractice(); + } + + return { + account, + sendInstancePractice, + }; + }, +); + +function Play(args) { + const { + account, + sendInstancePractice, + } = args; + + const news = ( +
+

MNML is a turn-based 1v1 strategy game in an abstract setting.

+

+ Build a unique team of 3 constructs from a range of skills and specialisations.
+ Outplay your opponent in multiple rounds by adapting to an always shifting meta.
+ Simple rules, complex interactions and unique mechanics.
+

+
+ ); + + const list = () => { + return ( +
+
+ +
Learn MNML
+
+
+ +
Join the Community
+
+
+ ); + }; + + return ( +
+ +
+ {news} +
+ {list()} + +
+ ); +} + +module.exports = addState(Play);