-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
41 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,6 +9,9 @@ | |
# production | ||
/build | ||
|
||
# css files always generated from scss | ||
*.css | ||
|
||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,29 +1,12 @@ | ||
import React, {Component} from 'react'; | ||
import EncryptionKeyBox from './EncryptionKeyBox'; | ||
import { h } from "hyperapp" | ||
import './App.css'; | ||
|
||
function AppLogo() { | ||
return ( | ||
<div className="app-logo"> | ||
deadbox | ||
</div> | ||
); | ||
} | ||
const AppLogo = () => ( | ||
h("div", {class: 'app-logo'}, "deadbox") | ||
); | ||
|
||
class App extends Component { | ||
render() { | ||
return ( | ||
<EncryptionKeyBox logo={<AppLogo />}> | ||
<section className="hero is-primary is-fullheight"> | ||
<div className="hero-body"> | ||
<div className="container"> | ||
<h1 className="title">Connect</h1> | ||
</div> | ||
</div> | ||
</section> | ||
</EncryptionKeyBox> | ||
); | ||
} | ||
} | ||
|
||
export default App; | ||
export const state = {}; | ||
export const actions = {}; | ||
export const view = (state, actions) => ( | ||
h(AppLogo) | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,5 @@ | ||
import React from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import { app } from "hyperapp" | ||
import './index.css'; | ||
import App from './App'; | ||
import registerServiceWorker from './registerServiceWorker'; | ||
import {state, actions, view} from './App'; | ||
|
||
ReactDOM.render(<App/>, document.getElementById('root')); | ||
registerServiceWorker(); | ||
app(state, actions, view, document.body); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters