create a basic layout for the video player.
This commit is contained in:
parent
5c048b2036
commit
204f1de024
|
@ -9,6 +9,7 @@ import Header from "./components/Header";
|
||||||
import Footer from "./components/Footer";
|
import Footer from "./components/Footer";
|
||||||
import Search from "./components/Search";
|
import Search from "./components/Search";
|
||||||
import Nav from "./components/Nav";
|
import Nav from "./components/Nav";
|
||||||
|
import Video from "./containers/Video";
|
||||||
|
|
||||||
class App extends Component {
|
class App extends Component {
|
||||||
render() {
|
render() {
|
||||||
|
@ -20,6 +21,7 @@ class App extends Component {
|
||||||
<Search/>
|
<Search/>
|
||||||
<Route exact={true} path="/" component={Home}/>
|
<Route exact={true} path="/" component={Home}/>
|
||||||
<Route path="/topics" component={TopicsList}/>
|
<Route path="/topics" component={TopicsList}/>
|
||||||
|
<Route path="/videos/:videoId" component={Video}/>
|
||||||
<Nav/>
|
<Nav/>
|
||||||
<Footer/>
|
<Footer/>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,16 +1,29 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
import Grid from 'react-css-grid';
|
||||||
|
|
||||||
class VideoPlayer extends React.Component {
|
class VideoPlayer extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
<Grid width={450}
|
||||||
|
gap={16}>
|
||||||
<section>
|
<section>
|
||||||
<h2>Title</h2>
|
<h2>Title</h2>
|
||||||
<video>
|
<video src="https://video22.858.ma/BUR/240p3.mp4" controls>
|
||||||
</video>
|
</video>
|
||||||
<h3>date mm/dd/yy </h3>
|
<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>
|
||||||
|
<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>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,7 +31,9 @@
|
||||||
src: url('../assets/fonts/Interstate-Regular.bmap') format('bmap'),
|
src: url('../assets/fonts/Interstate-Regular.bmap') format('bmap'),
|
||||||
url('../assets/fonts/Interstate-Bold.bmap') format('bmap');
|
url('../assets/fonts/Interstate-Bold.bmap') format('bmap');
|
||||||
}
|
}
|
||||||
|
.text-left{
|
||||||
|
text-align: left;
|
||||||
|
}
|
||||||
.arabic-text {
|
.arabic-text {
|
||||||
font-family: "Fedra Arabic", serif;
|
font-family: "Fedra Arabic", serif;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user