Changed Theater to use extraClasses prop
extraClasses prop will add classes to the theater div
This commit is contained in:
parent
32e1d21d15
commit
74121fda81
|
|
@ -15,7 +15,7 @@ const Home = (props) => {
|
|||
|
||||
return (
|
||||
<div className="Home">
|
||||
<Theater title={title} description={description} h_100/>
|
||||
<Theater title={title} description={description} extraClasses="h-100"/>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -4,7 +4,7 @@ import './css/Theater.css';
|
|||
const Theater = (props) => {
|
||||
|
||||
return (
|
||||
<div className={`theater ${props.peak ? 'peak':''} ${props.h_100 ? 'h-100':''}`}>
|
||||
<div className={`theater ${props.extraClasses ? props.extraClasses:''}`}>
|
||||
<div className="theater-bg" style={props.background ? {backgroundImage: `url(${props.background})`} : {}}/>
|
||||
<div className="theater-content">
|
||||
<h1>{props.title}</h1>
|
||||
|
|
|
|||
Loading…
Reference in New Issue