initial set up for styling updates; actually add files

This commit is contained in:
Ginger Wong
2020-08-17 09:00:36 -07:00
parent e5d8087979
commit ebc852b430
9 changed files with 170 additions and 15 deletions

View File

@@ -1,5 +1,5 @@
import { html, Component } from "https://unpkg.com/htm/preact/index.mjs?module";
import UserInfo from './user-info.js';
import UsernameForm from './username.js';
import Chat from './chat.js';
import Websocket from '../websocket.js';
@@ -37,17 +37,19 @@ export default class StandaloneChat extends Component {
return (
html`
<div class="flex">
<${UserInfo}
<${UsernameForm}
username=${username}
userAvatarImage=${userAvatarImage}
handleUsernameChange=${this.handleUsernameChange}
handleChatToggle=${this.handleChatToggle}
/>
<${Chat}
websocket=${websocket}
username=${username}
userAvatarImage=${userAvatarImage}
chatEnabled />
chatEnabled
/>
</div>
`);
}