refactor the sass, section heading names
This commit is contained in:
parent
a0489baae9
commit
0b51135517
|
@ -1,6 +1,6 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import '../stylesheets/style.css'
|
import '../stylesheets/style.scss'
|
||||||
|
|
||||||
class Header extends React.Component {
|
class Header extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
|
|
|
@ -2,7 +2,7 @@ import Grid from 'react-css-grid'
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import VideoItem from "./VideoItem";
|
import VideoItem from "./VideoItem";
|
||||||
import SectionHeading from "./SectionHeading";
|
import RandomItemTitle from "./SectionHeading";
|
||||||
import { Link } from 'react-router-dom';
|
import { Link } from 'react-router-dom';
|
||||||
|
|
||||||
class RandomTopic extends React.Component {
|
class RandomTopic extends React.Component {
|
||||||
|
@ -10,12 +10,12 @@ class RandomTopic extends React.Component {
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<section>
|
<section>
|
||||||
<SectionHeading title={this.props.topicName + ' (' +this.props.topicCount + ')'}/>
|
<h2 className="section-heading">from the Archive Topics - من مواضيع الارشيف</h2>
|
||||||
<Link to="/topics">
|
|
||||||
<span className="">See All Topics</span>
|
<RandomItemTitle title={
|
||||||
</Link>
|
this.props.topicName + ' (' +this.props.topicCount + ')'}/>
|
||||||
<Grid
|
<Grid className="random-topics"
|
||||||
width={450}
|
width={220}
|
||||||
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 }/>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user