(
.
- © { new Date().getFullYear() } Quran.com.
- {' '}
+ © {new Date().getFullYear()} Quran.com.{' '}
{
const { versesIds, chapter } = this.props; // eslint-disable-line no-shadow
- this.props.setCurrentVerse(`${chapter.chapterNumber}:${verseNum}`);
-
if (versesIds.has(verseNum)) {
+ this.props.setCurrentVerse(`${chapter.chapterNumber}:${verseNum}`);
+
return false;
}
diff --git a/src/components/GlobalSidebar/index.js b/src/components/GlobalSidebar/index.js
index 09861650e..88df9d58a 100644
--- a/src/components/GlobalSidebar/index.js
+++ b/src/components/GlobalSidebar/index.js
@@ -12,20 +12,20 @@ const NavbarHeader = Navbar.Header;
const List = styled.ul`
padding-left: 0;
- li{
+ li {
color: #777;
- a{
+ a {
color: #777;
padding: 10px 15px;
display: block;
- .ss-icon{
+ .ss-icon {
font-size: 18px;
margin-right: 20px;
}
- &:hover{
+ &:hover {
background: #f5f5f5;
color: #333;
}
diff --git a/src/components/GlobalSidebar/style.scss b/src/components/GlobalSidebar/style.scss
index 07a6ae30a..728184f7b 100644
--- a/src/components/GlobalSidebar/style.scss
+++ b/src/components/GlobalSidebar/style.scss
@@ -1,37 +1,68 @@
@import '../../styles/variables.scss';
+
$width: 280px;
-.container {
+
+.container{
position: fixed;
left: $width * -1;
top: 0;
bottom: 0;
background: #fff;
z-index: 1031;
- box-shadow: 0 16px 24px 2px rgba(0, 0, 0, 0.14), 0 6px 30px 5px rgba(0, 0, 0, 0.12), 0 8px 10px -5px rgba(0, 0, 0, 0.2);
+ box-shadow: 0 16px 24px 2px rgba(0,0,0,0.14), 0 6px 30px 5px rgba(0,0,0,0.12), 0 8px 10px -5px rgba(0,0,0,0.2);
visibility: hidden;
+
background: #fff;
width: $width;
- transition: left 0.35s cubic-bezier(0.24, 1, 0.32, 1), visibility 0.2s;
- &.open {
+ transition: left 0.35s cubic-bezier(0.24,1,0.32,1), visibility 0.2s;
+
+ &.open{
left: 0;
- visibility: visible;
- ;
+ visibility: visible;;
}
- :global(.navbar-text) {
+
+ :global(.navbar-text){
margin-left: 0;
- .backToHome {
- margin-right: 23px;
- font-size: 17px;
- }
+ .backToHome {
+ margin-right: 23px;
+ font-size: 17px;
+ }
}
+
@media(max-width: $screen-sm) {
width: $width;
left: -1 * $width;
- &.open {
+
+ &.open{
left: 0;
}
- :global(.navbar-text) {
+
+ :global(.navbar-text){
padding-left: 15px;
}
}
}
+
+.list{
+ padding-left: 0;
+
+ :global(li){
+ color: #777;
+
+ :global(a){
+ color: #777;
+ padding: 10px 15px;
+ display: block;
+
+ :global(.ss-icon){
+ font-size: 18px;
+ margin-right: 20px;
+ }
+
+ &:hover{
+ background: #f5f5f5;
+ color: #333;
+ }
+ }
+ }
+}
diff --git a/src/components/Home/JuzList/index.js b/src/components/Home/JuzList/index.js
index f61832bcc..39464141a 100644
--- a/src/components/Home/JuzList/index.js
+++ b/src/components/Home/JuzList/index.js
@@ -11,22 +11,40 @@ class JuzList extends Component {
const juzzChapters = Object.keys(juz.verseMapping);
const list = juzzChapters.map(chapter => (
-
-
- {chapters[chapter].nameSimple}
-
-
-
+
+
+
+ {chapters[chapter].nameSimple}
+
+
+
+ {juz.verseMapping[chapter]}
+
+
+
+
+
+
+
- {juz.verseMapping[chapter]}
-
-
+ {chapters[chapter].translatedName.name}
+
+
));
- return list;
+ return (
+
+ );
}
render() {
@@ -36,14 +54,10 @@ class JuzList extends Component {
return (
{juzs.map(juz => (
-
-
+
+
{juz.juzNumber}
-
- {juz.nameArabic}
- {juz.nameSimple}
-
{this.renderJuz(juz)}
))}
diff --git a/src/components/Home/JuzList/styles.scss b/src/components/Home/JuzList/styles.scss
index e0e170ee4..f0659fa94 100644
--- a/src/components/Home/JuzList/styles.scss
+++ b/src/components/Home/JuzList/styles.scss
@@ -3,19 +3,26 @@
.item {
color: $brand-primary;
- &:hover {
- background: #f1f1f1;
- }
-
.link {
display: block;
padding: 10px 10px;
+
+ &:hover {
+ background: #f1f1f1;
+ }
}
.translated_name {
font-size: 10px;
+ color: #777;
}
+
.arabic {
font-size: 14px;
}
+
+ .chapterName{
+ margin-right: 5px;
+ font-size: 14px;
+ }
}
diff --git a/src/components/Home/LastVisit/index.js b/src/components/Home/LastVisit/index.js
index cc966fe07..869241ed3 100644
--- a/src/components/Home/LastVisit/index.js
+++ b/src/components/Home/LastVisit/index.js
@@ -15,13 +15,10 @@ const LastVisit = (props) => {
- {' '}
+ />{' '}
- {props.chapter.nameSimple}
- {' '}
- (
+ {props.chapter.nameSimple} (
{props.chapter.chapterNumber}
:
{props.verse}
diff --git a/src/components/Home/QuickSurahs/index.js b/src/components/Home/QuickSurahs/index.js
index 8b377ca13..1162b34ab 100644
--- a/src/components/Home/QuickSurahs/index.js
+++ b/src/components/Home/QuickSurahs/index.js
@@ -9,7 +9,8 @@ const Span = styled.span`
&:after {
content: '|';
}
- &:first-child, &:last-child {
+ &:first-child,
+ &:last-child {
&:after {
content: none;
}
@@ -25,7 +26,7 @@ export default () => (
id="surah.index.quickLinks"
defaultMessage="Quick links"
/>
- {isFriday &&
+ {isFriday && (
(
>
Surah Al-Kahf
- }
+
+ )}
(
{props.chapters.map(chapter => (
-
-
- {chapter.chapterNumber}
-
-
- {chapter.nameSimple}
-
+ {chapter.chapterNumber}
+ {chapter.nameSimple}
{chapter.translatedName.name}
diff --git a/src/components/Settings/TranslationsDropdown/index.js b/src/components/Settings/TranslationsDropdown/index.js
index b034f13e9..e627b401c 100644
--- a/src/components/Settings/TranslationsDropdown/index.js
+++ b/src/components/Settings/TranslationsDropdown/index.js
@@ -101,16 +101,18 @@ class TranslationsDropdown extends Component {
}
menu={
- translationOptions.length
- ?
- {translations && translations.length
- ?
-
-
- : }
+ translationOptions.length ? (
+
+ {translations && translations.length ? (
+
+
+
+ ) : (
+
+ )}
{this.renderLanguagesList()}
- :
+ ) : (
+
+ )
}
>
-
- {chapter.chapterNumber}
-
+ {chapter.chapterNumber}
{chapter.nameSimple}
@@ -51,15 +49,15 @@ class SurahsDropdown extends Component {
return (
+ )
}
>
{this.renderList()}
@@ -70,7 +68,7 @@ class SurahsDropdown extends Component {
SurahsDropdown.propTypes = {
chapters: customPropTypes.chapters.isRequired,
- chapter: customPropTypes.chapters.isRequired
+ chapter: customPropTypes.surahType.isRequired
};
export default SurahsDropdown;
diff --git a/src/components/TopOptions/index.js b/src/components/TopOptions/index.js
index 9edb7203a..a258f4d8d 100644
--- a/src/components/TopOptions/index.js
+++ b/src/components/TopOptions/index.js
@@ -15,7 +15,9 @@ const TopOptions = ({ title, chapter }) => (
diff --git a/src/components/Verse/index.js b/src/components/Verse/index.js
index 98d5ab310..9671fbe14 100644
--- a/src/components/Verse/index.js
+++ b/src/components/Verse/index.js
@@ -61,13 +61,13 @@ class Verse extends Component {
const { verse, match } = this.props;
const array = match || verse.translations || [];
- return array.map(translation =>
+ return array.map(translation => (
- );
+ ));
}
renderMedia() {
@@ -78,7 +78,7 @@ class Verse extends Component {
return (
- {verse.mediaContents.map((content, index) =>
+ {verse.mediaContents.map((content, index) => (
@@ -100,7 +100,7 @@ class Verse extends Component {
- )}
+ ))}
);
}
@@ -118,7 +118,7 @@ class Verse extends Component {
let wordAudioPosition = -1;
const renderText = false; // userAgent.isBot;
- const text = verse.words.map(word =>
+ const text = verse.words.map(word => (
- );
+ ));
return (
-
- {text}
-
+ {text}
);
}
diff --git a/src/components/VersesDropdown/index.js b/src/components/VersesDropdown/index.js
index ac491dd75..4c6746321 100644
--- a/src/components/VersesDropdown/index.js
+++ b/src/components/VersesDropdown/index.js
@@ -57,7 +57,6 @@ class VersesDropdown extends Component {
return (
(
- The Noble Qur'an is the central
- religious text of Islam. Muslims believe the Qur’an is the
- book of Divine guidance and direction for mankind, and
- consider the original Arabic text the final revelation of
- Allah (God).[1 ]
- All translations of the original Arabic text
- are thus interpretations of the original meanings and should
- be embraced as such. For more information about the Noble
- Qur'an, you may visit its Wikipedia article.
+ The Noble Qur’an is the central religious text of Islam. Muslims
+ believe the Qur’an is the book of Divine guidance and direction for
+ mankind, and consider the original Arabic text the final revelation
+ of Allah (God).[1 ] All
+ translations of the original Arabic text are thus interpretations of
+ the original meanings and should be embraced as such. For more
+ information about the Noble Qur’an, you may visit its{' '}
+ Wikipedia article.
@@ -26,12 +25,11 @@ export default () => (
MECCAN SURAHS
- The Meccan Surahs are the chronologically earlier chapters
- (Surahs) of the Qur'an that were, according to Islamic
- tradition, revealed anytime before the migration of the
- Islamic prophet Muhammed and his followers from Mecca to
- Medina (Hijra). The Medinan Surahs are those revelations that
- occurred after the move to the city of that name.
+ The Meccan Surahs are the chronologically earlier chapters (Surahs)
+ of the Qur’an that were, according to Islamic tradition, revealed
+ anytime before the migration of the Islamic prophet Muhammed and his
+ followers from Mecca to Medina (Hijra). The Medinan Surahs are those
+ revelations that occurred after the move to the city of that name.
@@ -39,45 +37,52 @@ export default () => (
MEDINAN SURAHS
- The Medinan Surahs or Medinan Chapters of the Qur'an are the
- latest 24 Surahs that, according to Islamic tradition, were
- revealed at Medina after Muhammad's Hijra from Mecca. These
- Surahs were revealed by Allah when the Muslim community was
- larger and more developed, as opposed to their minority position
- in Mecca.
+ The Medinan Surahs or Medinan Chapters of the Qur’an are the latest
+ 24 Surahs that, according to Islamic tradition, were revealed at
+ Medina after Muhammad’s Hijra from Mecca. These Surahs were revealed
+ by Allah when the Muslim community was larger and more developed, as
+ opposed to their minority position in Mecca.
+
BROWSING SURAHS ON THIS WEBSITE
We have redesigned the website with a user friendly approach in
- mind. To browse through the Surahs, click on the button
- (shown left) in the READ & LISTEN page and navigate Surah by
- title or by page. In future iterations, we will be integrating
- more search and audio features, ان شاء الله. If you have any
- suggestions on how we can make the website a better experience
- please do not hesitate to contact us .
+ mind. To browse through the Surahs, click on the button (shown left)
+ in the READ & LISTEN page and navigate Surah by title or by page. In
+ future iterations, we will be integrating more search and audio
+ features, ان شاء الله. If you have any suggestions on how we can
+ make the website a better experience please do not hesitate to{' '}
+ contact us
+ .
diff --git a/src/containers/AyatulKursi/index.js b/src/containers/AyatulKursi/index.js
index d95b6c9fa..0606557d2 100644
--- a/src/containers/AyatulKursi/index.js
+++ b/src/containers/AyatulKursi/index.js
@@ -50,9 +50,10 @@ const TopOptions = Loadable({
});
const title = 'Ayatul Kursi';
-const description = 'Ayatul Kursi is verse 255 of the second chapter, ' +
- 'Surah al-Baqarah (The Chapter of the Cow), in the ' +
- 'Holy Quran. It is also known as the Throne Verse.';
+const description =
+ 'Ayatul Kursi is verse 255 of the second chapter, ' +
+ 'Surah al-Baqarah (The Chapter of the Cow), in the ' +
+ 'Holy Quran. It is also known as the Throne Verse.';
class AyatulKursi extends Component {
state = {
@@ -109,13 +110,7 @@ class AyatulKursi extends Component {
}
renderLines() {
- const {
- lines,
- options,
- currentVerse,
- isPlaying,
- actions
- } = this.props;
+ const { lines, options, currentVerse, isPlaying, actions } = this.props;
const keys = Object.keys(lines);
return (
@@ -131,11 +126,7 @@ class AyatulKursi extends Component {
}
render() {
- const {
- chapter,
- verses,
- options
- } = this.props; // eslint-disable-line no-shadow
+ const { chapter, verses, options } = this.props; // eslint-disable-line no-shadow
debug('component:AyatulKursi', 'Render');
return (
@@ -171,15 +162,18 @@ class AyatulKursi extends Component {
]}
style={[
{
- cssText: `.text-arabic{font-size: ${options.fontSize.arabic}rem;} .text-translation{font-size: ${options.fontSize.translation}rem;}` // eslint-disable-line max-len
+ cssText: `.text-arabic{font-size: ${options.fontSize
+ .arabic}rem;} .text-translation{font-size: ${options.fontSize
+ .translation}rem;}` // eslint-disable-line max-len
}
]}
/>
- {__CLIENT__ &&
- }
+ {__CLIENT__ && (
+
+ )}
{options.isReadingMode ? this.renderLines() : this.renderVerses()}
@@ -197,12 +191,13 @@ class AyatulKursi extends Component {
- {__CLIENT__ &&
+ {__CLIENT__ && (
}
+ />
+ )}
);
}
diff --git a/src/containers/Contact/index.js b/src/containers/Contact/index.js
index 65cb7094d..85440fb46 100644
--- a/src/containers/Contact/index.js
+++ b/src/containers/Contact/index.js
@@ -21,20 +21,25 @@ class Contact extends Component {
}
};
- superagent.post('/support').send(form).end((err, { body }) => {
- if (body.ticket) {
- this.setState({
- success: true
- });
- }
- });
+ superagent
+ .post('/support')
+ .send(form)
+ .end((err, { body }) => {
+ if (body.ticket) {
+ this.setState({
+ success: true
+ });
+ }
+ });
};
renderForm() {
return (