style the video-items.
This commit is contained in:
parent
7d8778b51c
commit
9cccc32dfd
|
@ -18,6 +18,7 @@ class App extends Component {
|
||||||
|
|
||||||
<div className="App">
|
<div className="App">
|
||||||
<Header/>
|
<Header/>
|
||||||
|
<Nav/>
|
||||||
<Search/>
|
<Search/>
|
||||||
<Route exact={true} path="/" component={Home}/>
|
<Route exact={true} path="/" component={Home}/>
|
||||||
<Route path="/topics" component={TopicsList}/>
|
<Route path="/topics" component={TopicsList}/>
|
||||||
|
|
|
@ -10,18 +10,21 @@ class RandomTopic extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<section>
|
<section>
|
||||||
<SectionHeading title={this.props.topicName}/>
|
<SectionHeading title={this.props.topicName + ' (' +this.props.topicCount + ')'}/>
|
||||||
<Grid
|
<Link to="/topics">
|
||||||
|
<span className="">See All Topics</span>
|
||||||
|
</Link>
|
||||||
|
<Grid
|
||||||
width={450}
|
width={450}
|
||||||
gap={16}>
|
gap={16}>
|
||||||
{this.props.videos.map(video =>
|
{this.props.videos.map(video =>
|
||||||
<VideoItem id={video.id} key={video.id} title={video.title}/>
|
<VideoItem id={video.id} key={video.id} title={video.title }/>
|
||||||
)}
|
)}
|
||||||
<Link to="/topics">
|
<Link to="/topics">
|
||||||
See All Topics
|
<span className="view-all-parents">See All Topics</span>
|
||||||
</Link>
|
</Link>
|
||||||
<Link to="/topics">
|
<Link to="/topics">
|
||||||
See All videos of {this.props.topicName} ({this.props.topicCount})
|
<span className="view-all-items"> See All videos of {this.props.topicName} ({this.props.topicCount})</span>
|
||||||
</Link>
|
</Link>
|
||||||
</Grid>
|
</Grid>
|
||||||
</section>
|
</section>
|
||||||
|
|
|
@ -8,7 +8,7 @@ class Search extends React.Component {
|
||||||
<img src={require('../assets/images/search.png')} alt=""/>
|
<img src={require('../assets/images/search.png')} alt=""/>
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<input type="text" className="search-box" name="search-box" placeholder="بحث في الأرشيف search the Archive"/>
|
<input type="text" className="search-box" name="search-box" placeholder="search the Archive بحث في الأرشيف"/>
|
||||||
</form>
|
</form>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
|
@ -31,9 +31,11 @@
|
||||||
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-left {
|
||||||
text-align: left;
|
text-align: left;
|
||||||
}
|
}
|
||||||
|
|
||||||
.arabic-text {
|
.arabic-text {
|
||||||
font-family: "Fedra Arabic", serif;
|
font-family: "Fedra Arabic", serif;
|
||||||
}
|
}
|
||||||
|
@ -70,10 +72,12 @@ header {
|
||||||
top: 0;
|
top: 0;
|
||||||
padding: 2em;
|
padding: 2em;
|
||||||
}
|
}
|
||||||
.counter{
|
|
||||||
|
.counter {
|
||||||
position: relative;
|
position: relative;
|
||||||
right: 0;
|
right: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* search */
|
/* search */
|
||||||
.search-button {
|
.search-button {
|
||||||
background: white;
|
background: white;
|
||||||
|
@ -111,6 +115,17 @@ header {
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Video item*/
|
/* Video item*/
|
||||||
|
.video-item {
|
||||||
|
background: #f6f6f6;
|
||||||
|
min-height: 520px;
|
||||||
|
padding: 1em;
|
||||||
|
}
|
||||||
|
.sc-bdVaJa.cCHrGu a{
|
||||||
|
text-decoration: none;
|
||||||
|
font-size: 1em;
|
||||||
|
color: black;
|
||||||
|
}
|
||||||
|
|
||||||
.video-thumbnail {
|
.video-thumbnail {
|
||||||
max-width: 300px;
|
max-width: 300px;
|
||||||
transition: all .4s ease-in-out;
|
transition: all .4s ease-in-out;
|
||||||
|
@ -164,3 +179,27 @@ nav ul li a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
color: black;
|
color: black;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* view all elements*/
|
||||||
|
|
||||||
|
.view-all-parents {
|
||||||
|
color: white;
|
||||||
|
background: black;
|
||||||
|
padding: 1em;
|
||||||
|
position: relative;
|
||||||
|
top: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
|
.view-all-parents,
|
||||||
|
.view-all-items {
|
||||||
|
text-decoration: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.view-all-items {
|
||||||
|
color: black;
|
||||||
|
text-decoration: none;
|
||||||
|
padding: 1em;
|
||||||
|
border: 1px solid black;
|
||||||
|
position: relative;
|
||||||
|
top: 1em;
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user