diff --git a/src/assets/css/main.css b/src/assets/css/main.css index 0037f50..ca96e17 100644 --- a/src/assets/css/main.css +++ b/src/assets/css/main.css @@ -14799,6 +14799,15 @@ ul li{ font-family: var(--ayah-font); } +.reciter-warning{ + display: inline-flex; + position: relative; + bottom: -2rem; + right: 12rem; + text-align: start; + color: #f56565; +} + .asmaa-font{ position: relative; bottom: 12rem; diff --git a/src/assets/css/tailwind.css b/src/assets/css/tailwind.css index 39a563b..0bef5ce 100644 --- a/src/assets/css/tailwind.css +++ b/src/assets/css/tailwind.css @@ -67,6 +67,14 @@ ul li{ .ayah-font{ font-family: var(--ayah-font); } +.reciter-warning{ + display: inline-flex; + position: relative; + bottom: -2rem; + right: 12rem; + text-align: start; + color: #f56565; +} .asmaa-font{ position: relative; bottom: 12rem; diff --git a/src/components/layout/Master.js b/src/components/layout/Master.js index 7aec8ec..760eafc 100644 --- a/src/components/layout/Master.js +++ b/src/components/layout/Master.js @@ -3,7 +3,6 @@ import { useTranslation } from 'react-i18next'; import { getRandomAyah, getAyahReciters, getAyahAudio, getPrayerTimesCalendarDaily, getTranslations, getAsmaa } from '../../api'; import { muezzins, methods, latitudes, schools, midnight } from '../../data/data.json'; import { GlobalContext } from '../../context/Global'; -import { shuffle } from '../../utils' import { Spinner } from '..'; export default () => { @@ -132,16 +131,16 @@ export default () => { :

{ayah.text}
{ayah.surah.englishName}: [{ayah.numberInSurah}]

} -
-
+
+
- {/* {language !== 'ar' ? {t('home.reciter.warning')} : ''} */}
+ {language !== 'ar' ? {t('home.reciter.warning', 'en')} : ''} {language !== 'ar' - ?
+ ?
@@ -182,7 +181,7 @@ export default () => { }
-
+

{t('home.prayer_times')}

{city}, {country}
    @@ -219,7 +218,7 @@ export default () => { }
-
+

{t('home.prayer_cal')}

diff --git a/src/lang/en/translate.json b/src/lang/en/translate.json index 487f28a..00d3fb5 100644 --- a/src/lang/en/translate.json +++ b/src/lang/en/translate.json @@ -14,7 +14,7 @@ "title": "The names of Allah", "load_more": "Load More" }, - "translation": "Choose a translation", + "translation": "Choose a translation source", "azan": "Azan Player", "prayer_cal":"Prayer Times Calculator", "prayer_times": "Prayer Times", diff --git a/src/utils.js b/src/utils.js index 62db77a..ca24bf4 100644 --- a/src/utils.js +++ b/src/utils.js @@ -37,22 +37,4 @@ export const useCalender = () => { }, [city, country, today, month, year]) return [calender, month] -} - -export const shuffle = (array) => { - var m = array.length, t, i; - - // While there remain elements to shuffle… - while (m) { - - // Pick a remaining element… - i = Math.floor(Math.random() * m--); - - // And swap it with the current element. - t = array[m]; - array[m] = array[i]; - array[i] = t; - } - - return array; -} +} \ No newline at end of file