From 3338a0d36015752e94bd9009b75f47d92268a35f Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Fri, 2 Mar 2018 13:04:56 +0300 Subject: Post component --- vnext/src/app.js | 6 +++++- vnext/src/components/Post.js | 20 ++++++++++++++++++++ 2 files changed, 25 insertions(+), 1 deletion(-) create mode 100644 vnext/src/components/Post.js (limited to 'vnext') diff --git a/vnext/src/app.js b/vnext/src/app.js index fed735f7..1991a14d 100644 --- a/vnext/src/app.js +++ b/vnext/src/app.js @@ -5,6 +5,7 @@ const history = createHistory(); import Navigation from "./components/Navigation" import Discover from "./components/Discover" +import Post from "./components/Post" class App extends React.Component { constructor(props) { @@ -18,7 +19,10 @@ class App extends React.Component { return (
- + { location.pathname === "/" && + } + { location.pathname === "/post" && + }
) } diff --git a/vnext/src/components/Post.js b/vnext/src/components/Post.js new file mode 100644 index 00000000..54be77df --- /dev/null +++ b/vnext/src/components/Post.js @@ -0,0 +1,20 @@ +import React from 'react' + +export default class Post extends React.Component { + render() { + return ( +
+
+

+ Фото: + (JPG/PNG) +

+

+ +
+ +

+
+
+ )} +}; \ No newline at end of file -- cgit v1.2.3