From 30cd11d43f91f3f590a68582cc111381bb606676 Mon Sep 17 00:00:00 2001 From: Mashy Date: Thu, 20 Sep 2018 16:53:37 +1000 Subject: [PATCH] Identicons and navbar test --- client/src/main.jsx | 7 +++++++ client/src/navbar.jsx | 39 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 46 insertions(+) create mode 100644 client/src/navbar.jsx diff --git a/client/src/main.jsx b/client/src/main.jsx index c2af0306..8d1058ce 100644 --- a/client/src/main.jsx +++ b/client/src/main.jsx @@ -8,6 +8,9 @@ const createSocket = require('./socket'); const StatusContainer = require('./components/status.container'); +{/*-- Section for html render classes --*/} +const Navbar = require('./navbar'); + const store = createStore( combineReducers({ account: reducers.accountReducer, @@ -18,11 +21,14 @@ const ws = createSocket(store); store.subscribe(() => console.log(store.getState())); + const Cryps = () => (
+
+ ); const Main = () => ( @@ -34,3 +40,4 @@ const Main = () => ( preact.render(
, document.body); fizzyText('cryps'); + diff --git a/client/src/navbar.jsx b/client/src/navbar.jsx new file mode 100644 index 00000000..0a1e80d9 --- /dev/null +++ b/client/src/navbar.jsx @@ -0,0 +1,39 @@ +const preact = require('preact'); +const jdenticon = require('jdenticon'); + +{/*Test to render navbar and some identicons*/} +const Navbar = () => ( +
+ + + Mashy -> + + + + Ntr -> + + +
+); + +module.exports = Navbar; \ No newline at end of file