diff --git a/public/App.js b/public/App.js index a46a147..9b8fde2 100644 --- a/public/App.js +++ b/public/App.js @@ -1,3 +1,7 @@ function App(){ - return
-} \ No newline at end of file + return ( +
+
+
+ ) +} diff --git a/public/Follow.js b/public/Follow.js new file mode 100644 index 0000000..7e84c42 --- /dev/null +++ b/public/Follow.js @@ -0,0 +1,3 @@ +function Follow(){ + return

Follow Me!

+} diff --git a/public/Header.js b/public/Header.js new file mode 100644 index 0000000..d8731b4 --- /dev/null +++ b/public/Header.js @@ -0,0 +1,11 @@ +function Header(){ + var myvar = "The Header/Navbar"; + + return ( +
+

+ {myvar} +

+
+ ) +} diff --git a/public/LiveVideo.js b/public/LiveVideo.js new file mode 100644 index 0000000..aa089e0 --- /dev/null +++ b/public/LiveVideo.js @@ -0,0 +1,4 @@ +function LiveVideo(){ + return

Live Videos Here

+ +} diff --git a/public/Main.js b/public/Main.js index cb7c512..b32378e 100644 --- a/public/Main.js +++ b/public/Main.js @@ -1,3 +1,22 @@ -function Main(){ - return
Hello
-} \ No newline at end of file +function Main(props){ + let mydiv =
+ [].push(
); + + let mydivs = props.tweets.map((item) => { + return
{item}
+ }); + + + return ( +
+
+
+
+
+
+
+
+ {mydivs} +
+ ) +} diff --git a/public/PostTweets.js b/public/PostTweets.js new file mode 100644 index 0000000..8ede0e8 --- /dev/null +++ b/public/PostTweets.js @@ -0,0 +1,23 @@ +class PostTweets extends React.component{ +constructor(){ + super(); + this.state={ + theword:"" + } +} + +render(){ + function hello(){ + console.log("hello") + } + + return ( +

+ { + this.setState({theword:e.target.value}); + }} /> + +

+ ) + } +} diff --git a/public/Profile.js b/public/Profile.js new file mode 100644 index 0000000..b70d272 --- /dev/null +++ b/public/Profile.js @@ -0,0 +1,4 @@ +function Profile(){ + return

My Profile @TwitterClone

+ +} diff --git a/public/Trends.js b/public/Trends.js new file mode 100644 index 0000000..3496b06 --- /dev/null +++ b/public/Trends.js @@ -0,0 +1,4 @@ +function Trends(){ + return

What's Trending?

+ +} diff --git a/public/Tweets.js b/public/Tweets.js new file mode 100644 index 0000000..4c8802c --- /dev/null +++ b/public/Tweets.js @@ -0,0 +1,20 @@ +function Tweets(){ + return

My Twitter Feed

+ +} + + + + diff --git a/public/index.html b/public/index.html index 460ce2f..9f5dc2c 100644 --- a/public/index.html +++ b/public/index.html @@ -27,24 +27,26 @@ "I just saw a movie that changed my life", "shirts are 50% of at Macy's today" ]; - + - --> + + - + + + + + + + + + + diff --git a/public/index.js b/public/index.js index 2457755..306c22a 100644 --- a/public/index.js +++ b/public/index.js @@ -1,4 +1,6 @@ +console.log(tweets); + ReactDOM.render( - , + , document.getElementById('root')//there has to be a starting point for where to put your element -); \ No newline at end of file +); diff --git a/src/App.js b/src/App.js index d7bd2a7..85af5f4 100644 --- a/src/App.js +++ b/src/App.js @@ -2,10 +2,13 @@ import React, { Component } from 'react'; import logo from './logo.svg'; import './App.css'; -function App(){ +function App(props){ + +console.log(props.mytweets); + return (
- +
); } diff --git a/src/index.css b/src/index.css index b4cc725..2484999 100644 --- a/src/index.css +++ b/src/index.css @@ -3,3 +3,54 @@ body { padding: 0; font-family: sans-serif; } + +.border { + border-style: solid; + border-color: red; +} + +h3 { + background-color: blue; +} + +/*.header{ + height: 20px; + width: 100%; + background-color: red; +} + +.profile { + height: 200px; + width: 50%; + background-color: orange; +} + +.posttweets{ + height: 200px; + width: 50%; + background-color: yellow; +} + +.tweets{ + height: 200px; + width: 50%; + background-color: green; +} + +.trends{ + height: 200px; + width: 50%; + background-color: blue; +} + +.follow{ + height: 200px; + width: 50%; + background-color: purple; +} + +.livevideo{ + height: 200px; + width: 50%; + background-color: pink; +}*/