Skip to content
This repository was archived by the owner on Jun 28, 2021. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
CDN images for surahinfo
  • Loading branch information
mmahalwy committed Jun 2, 2016
commit b694a37fdfb76763ded4466ac7dce3e66b191c15
3 changes: 1 addition & 2 deletions src/components/SurahInfo/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,7 @@ export default class SurahInfo extends Component {
<Col
md={3}
xs={6}
className={style.bg}
style={{background: `url(/images/${surah.revelation.place}.jpg) center center no-repeat`}}
className={`${style.bg} ${style[surah.revelation.place]}`}
/>
<Col md={1} xs={6} className={style.list}>
<dl>
Expand Down
10 changes: 10 additions & 0 deletions src/components/SurahInfo/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,16 @@ $transition-speed: 0.75s;
.bg{
height: 100%;
background-size: cover !important;
background-position: center center;
background-repeat: no-repeat;

&.madinah{
background-image: url('../../../static/images/madinah.jpg');
}

&.makkah{
background-image: url('../../../static/images/makkah.jpg');
}
}

.list{
Expand Down