create a basic layout for the video player.

This commit is contained in:
Ahmed-Ayman 2018-12-07 20:21:25 +02:00
parent 5c048b2036
commit 204f1de024
3 changed files with 25 additions and 8 deletions

View File

@ -9,6 +9,7 @@ import Header from "./components/Header";
import Footer from "./components/Footer";
import Search from "./components/Search";
import Nav from "./components/Nav";
import Video from "./containers/Video";
class App extends Component {
render() {
@ -20,6 +21,7 @@ class App extends Component {
<Search/>
<Route exact={true} path="/" component={Home}/>
<Route path="/topics" component={TopicsList}/>
<Route path="/videos/:videoId" component={Video}/>
<Nav/>
<Footer/>
</div>

View File

@ -1,16 +1,29 @@
import React from 'react';
import Grid from 'react-css-grid';
class VideoPlayer extends React.Component {
render() {
return (
<Grid width={450}
gap={16}>
<section>
<h2>Title</h2>
<video>
<video src="https://video22.858.ma/BUR/240p3.mp4" controls>
</video>
<h3>date mm/dd/yy </h3>
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like Aldus PageMaker including versions of Lorem Ipsum.</p>
</section>
<section className="text-left">
<p>Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the
industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and
scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into
electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of
Letraset sheets containing Lorem Ipsum passages, and more recently with desktop publishing software like
Aldus
PageMaker including versions of Lorem Ipsum.</p>
</section>
</Grid>
)
}
}

View File

@ -31,7 +31,9 @@
src: url('../assets/fonts/Interstate-Regular.bmap') format('bmap'),
url('../assets/fonts/Interstate-Bold.bmap') format('bmap');
}
.text-left{
text-align: left;
}
.arabic-text {
font-family: "Fedra Arabic", serif;
}