diff --git a/src/images/title.png b/src/images/title.png new file mode 100644 index 0000000..6b7505c Binary files /dev/null and b/src/images/title.png differ diff --git a/src/sass/main.scss b/src/sass/main.scss index e69de29..f08f916 100644 --- a/src/sass/main.scss +++ b/src/sass/main.scss @@ -0,0 +1,28 @@ +html, body { + margin: 0; + padding: 0; +} + +header { + background: #f5a623; +} +.title { + display: inline; +} +.title-img { + width: 200px; + padding-left: 10px; + padding-top: 10px; + padding-bottom: 10px; +} +.title-menu { + float: right; +} +ul, li, a { + display: inline; + color: #fff; + font-weight: bold; + list-style: none; + text-decoration: none; + padding: 10px; +} diff --git a/src/scripts/main.js b/src/scripts/main.js index 2df4bef..4bd7732 100644 --- a/src/scripts/main.js +++ b/src/scripts/main.js @@ -1,61 +1,53 @@ +import { render } from "react-dom"; import { Router, Route, Link } from "react-router"; import React from "react"; -const App = React.createClass({ +const Header = React.createClass({ + render() { + return ( +
+
+ +
+ +
+ ); + } }); -const Top = React.createClass({ +const App = React.createClass({ render() { + return ( +
+
+ {this.props.children} +
+ ); } }); -const Users = React.createClass({ +const Login = React.createClass({ render() { return ( -
-

Users

-
- -
-
- {this.props.children} -
-
+
Login
); } }); - -const User = React.createClass({ - componentDidMount() { - this.setState({ - // route components are rendered with useful information, like URL params - user: findUserById(this.props.params.userId) - }); - }, - +const Signup = React.createClass({ render() { - return ( -
-

{this.state.user.name}

- {/* etc. */} -
- ); - } -}) + return

About

; + } +}); + render(( - + - - - - - + + ), document.body);