Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions public/App.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
function App(){
return <div><Main /></div>
}
return <div>
<Header />
<Main />
</div>
}
13 changes: 13 additions & 0 deletions public/CenterCol.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
function CenterCol() {
return (
<div className="centercol">
<div className="tweets">
<h2>Tweets go here</h2>
<h4>Tweet</h4>
<h4>Tweet</h4>
<h4>Tweet</h4>
<h4>Tweet</h4>
</div>
</div>
)
}
20 changes: 20 additions & 0 deletions public/Header.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
function Header() {
/*props is an object
let props = {
stuff:"stuff",
title:"title",
};
*/
return (
<div>
<div className="header">
<ul>
<li>Home</li>
<li>Moments</li>
<li>Notifications</li>
<li>Messages</li>
</ul>
</div>
</div>
)
}
17 changes: 17 additions & 0 deletions public/LeftCol.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
function LeftCol() {
return (
<div className="leftcol">
<div className="profile">
<h3>User Name</h3>
<p>User info</p>
</div>
<div className="trends">
<h3>List of Trends</h3>
<p>trend</p>
<p>trend</p>
<p>trend</p>
</div>

</div>
)
}
10 changes: 8 additions & 2 deletions public/Main.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
function Main(){
return <div>Hello</div>
}
return <div>
<div className="main">
<LeftCol />
<CenterCol />
<RightCol />
</div>
</div>
}
13 changes: 13 additions & 0 deletions public/RightCol.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
function RightCol() {
return (
<div className="rightcol">
<div className="follow">
<h2>follow them</h2>
<h2>follow them</h2>
</div>
<div className="videos">
<p>Video goes here</p>
</div>
</div>
)
}
59 changes: 59 additions & 0 deletions public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,61 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.0.1/react.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/react/15.0.1/react-dom.min.js"></script>
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
<style>
.header {
width:100%;
height: 40px;
text-align: left;
background-color: lightblue;
}

.header li {
display: inline-block;
padding: 0px 15px;
}

.main {
display: flex;
flex-direction: row;
text-align: center;
}

.leftcol {
flex-grow: 1;
}

.centercol {
flex-grow: 2;
}

.rightcol {
flex-grow: 1;
}

.profile {
background-color: orange;
width: 100%;
height: auto;
}
.trends {
background-color: yellow;
width: 100%;
height: auto;
}

.tweets {
background-color: blue;
}

.follow {
background-color: gray;
}

.videos {
background-color: pink;
}

</style>
</head>
<body>
<div id="root"></div>
Expand All @@ -30,6 +85,10 @@
To begin the development, run `npm start`.
To create a production bundle, use `npm run build`.
-->
<script src="Header.js" type="text/jsx"></script>
<script src="LeftCol.js" type="text/jsx"></script>
<script src="CenterCol.js" type="text/jsx"></script>
<script src="RightCol.js" type="text/jsx"></script>
<script src="Main.js" type="text/jsx"></script>
<script src="App.js" type="text/jsx"></script>
<script src="index.js" type="text/jsx"></script>
Expand Down