|
|
@ -5,15 +5,22 @@ import './index.less'; |
|
|
|
|
|
|
|
|
export default ({ section, type, image, image_title, image_alt, title, content, link }) => { |
|
|
export default ({ section, type, image, image_title, image_alt, title, content, link }) => { |
|
|
let layout = null; |
|
|
let layout = null; |
|
|
if (type === 'YOUR-CUSTOM-TYPE-HERE') { |
|
|
|
|
|
layout = ( |
|
|
|
|
|
<li className="listing__item__YOUR-CUSTOM-TYPE-HERE"> |
|
|
|
|
|
<div className={`listing__item__YOUR-CUSTOM-TYPE-HERE__content`}> |
|
|
|
|
|
<h1>{title}</h1> |
|
|
|
|
|
|
|
|
if (type === 'surya-namaskar-a') { |
|
|
|
|
|
layout = (<> |
|
|
|
|
|
<Col> |
|
|
<img src={`/images/${section}/${image}`} alt={ image_alt } title={ image_title } /> |
|
|
<img src={`/images/${section}/${image}`} alt={ image_alt } title={ image_title } /> |
|
|
<div dangerouslySetInnerHTML={{ __html: content }}></div> |
|
|
<div dangerouslySetInnerHTML={{ __html: content }}></div> |
|
|
</div> |
|
|
|
|
|
</li> |
|
|
|
|
|
|
|
|
<h1>{title}</h1> |
|
|
|
|
|
</Col> |
|
|
|
|
|
{ /* |
|
|
|
|
|
<li className="listing_item" style={{ backgroundImage: `url(/images/${section}/${image})` }}> |
|
|
|
|
|
<div className={`item__${type}`}> |
|
|
|
|
|
<h1>{title}</h1> |
|
|
|
|
|
<div dangerouslySetInnerHTML={{ __html: content }}></div> |
|
|
|
|
|
</div> |
|
|
|
|
|
</li> |
|
|
|
|
|
*/ } |
|
|
|
|
|
</> |
|
|
); |
|
|
); |
|
|
} else if(type === 'OTHER-CUSTOM-TYPE-HERE') { |
|
|
} else if(type === 'OTHER-CUSTOM-TYPE-HERE') { |
|
|
layout = ( |
|
|
layout = ( |
|
|
@ -23,9 +30,11 @@ export default ({ section, type, image, image_title, image_alt, title, content, |
|
|
); |
|
|
); |
|
|
} else { |
|
|
} else { |
|
|
layout = ( |
|
|
layout = ( |
|
|
<li className="listing_item" style={{ backgroundImage: `url(/images/${section}/${image})` }}> |
|
|
|
|
|
<div className={`item__${type}`}> |
|
|
|
|
|
|
|
|
<li className="listing__item__YOUR-CUSTOM-TYPE-HERE"> |
|
|
|
|
|
teste |
|
|
|
|
|
<div className={`listing__item__YOUR-CUSTOM-TYPE-HERE__content`}> |
|
|
<h1>{title}</h1> |
|
|
<h1>{title}</h1> |
|
|
|
|
|
<img src={`/images/${section}/${image}`} alt={ image_alt } title={ image_title } /> |
|
|
<div dangerouslySetInnerHTML={{ __html: content }}></div> |
|
|
<div dangerouslySetInnerHTML={{ __html: content }}></div> |
|
|
</div> |
|
|
</div> |
|
|
</li> |
|
|
</li> |
|
|
|