This repository has been archived by the owner on Jun 28, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 361
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* fixed responsive issues for surah translated name * fixed verse badge * fixed media * last word in ayah ( ayah number ) don't have audio * fixed translations * .env should be in gitignore list! * fixed lint rules
- Loading branch information
1 parent
d4322a7
commit 741835c
Showing
14 changed files
with
111 additions
and
91 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
/* eslint-disable react/prefer-stateless-function */ | ||
import React, { Component, PropTypes } from 'react'; | ||
|
||
import { translationType } from 'types'; | ||
|
||
const styles = require('./style.scss'); | ||
|
||
export default class Translation extends Component { | ||
static propTypes = { | ||
translation: translationType.isRequired, | ||
index: PropTypes.number | ||
}; | ||
|
||
render() { | ||
const { translation, index } = this.props; | ||
const lang = translation.languageName; | ||
const isArabic = lang === 'arabic'; | ||
|
||
return ( | ||
<div id={index} className={`${styles.translation} ${isArabic && 'arabic'} translation`}> | ||
<h4 className="montserrat">{translation.resourceName}</h4> | ||
<h2 className={`${isArabic ? 'text-right' : 'text-left'} text-translation times-new`}> | ||
<small | ||
dangerouslySetInnerHTML={{ __html: translation.text }} | ||
className={`${lang || 'times-new'}`} | ||
/> | ||
</h2> | ||
</div> | ||
); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
@import '../../styles/variables'; | ||
|
||
.translation{ | ||
&.arabic{ | ||
text-align: right; | ||
} | ||
|
||
h4{ | ||
color: $light-green; | ||
margin-bottom: 5px; | ||
text-transform: uppercase; | ||
font-size: 14px; | ||
font-weight: 400; | ||
|
||
@media(max-width: $screen-sm-max) { | ||
font-size: 12px; | ||
} | ||
} | ||
|
||
h2{ | ||
margin-top: 5px; | ||
margin-bottom: 25px; | ||
} | ||
|
||
sup{ | ||
color: $light-green; | ||
cursor: pointer; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { PropTypes } from 'react'; | ||
|
||
export default PropTypes.shape({ | ||
languageName: PropTypes.string.isRequired, | ||
text: PropTypes.string.isRequired, | ||
resourceName: PropTypes.string.isRequired | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters