-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
a0d8b7e
commit e41edee
Showing
1,820 changed files
with
38,816 additions
and
68 deletions.
There are no files selected for viewing
Binary file not shown.
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 |
---|---|---|
@@ -1,57 +1,116 @@ | ||
const Ayah = (props) => { | ||
|
||
if (props.page[props.index][1].includes("بِسۡمِ اللهِ الرَّحۡمٰنِ الرَّحِيۡمِ")) { | ||
const entryString = "بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ"; | ||
const entryArray = entryString.split(" "); | ||
const letter = entryArray.splice(3 + 1, entryArray.length - (3 + 1) ); | ||
if (letter[0] === "ٱلرَّحِيمِ") { | ||
entryArray.push(letter); | ||
if (props.option === "indopak") { | ||
if (props.page[props.index][1].includes("بِسۡمِ اللهِ الرَّحۡمٰنِ الرَّحِيۡمِ")) { | ||
const entryString = "بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ"; | ||
const entryArray = entryString.split(" "); | ||
const letter = entryArray.splice(3 + 1, entryArray.length - (3 + 1) ); | ||
if (letter[0] === "ٱلرَّحِيمِ") { | ||
entryArray.push(letter); | ||
} | ||
const letterstogether = letter.join(" "); | ||
const generateFirstAyah = () => { | ||
if (letterstogether === "") { | ||
return ""; | ||
} | ||
else { | ||
return <> <span>{letterstogether} </span> <span dangerouslySetInnerHTML={{__html: "<span></span>"}}></span> </>; | ||
} | ||
} | ||
return ( | ||
<> | ||
<hr className="headAyahTop" /> | ||
<div className="flex justify-center"> | ||
<p className="font-bold text-5xl max-lg:text-2xl surah">❁ {props.page[props.index][2]} ❁</p> | ||
</div> | ||
<hr className="headAyahTop headAyahBottom"/> | ||
<div className="flex justify-center"> | ||
<p className=" font-semibold text-5xl max-lg:text-2xl">❁ {entryArray.join(" ")} ❁</p> | ||
</div> | ||
<hr className="headAyahBottom"/> | ||
<span>{generateFirstAyah()}</span> | ||
</> | ||
) | ||
} | ||
const letterstogether = letter.join(" "); | ||
const generateFirstAyah = () => { | ||
if (letterstogether === "") { | ||
return ""; | ||
else if (props.page[props.index][0] === 1) { | ||
return( | ||
<> | ||
<hr className="headAyahTop" /> | ||
<div className="flex justify-center"> | ||
<p className="font-bold text-5xl max-lg:text-2xl surah">❁ {props.page[props.index][2]} ❁</p> | ||
</div> | ||
<hr className="headAyahTop headAyahBottom"/> | ||
<div className="flex justify-center"> | ||
<p className=" font-semibold text-5xl max-lg:text-2xl">❁ بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ ❁</p> | ||
</div> | ||
<hr className="headAyahBottom"/> | ||
<span className="tran">{props.page[props.index][1]} </span> | ||
<span className="tran" dangerouslySetInnerHTML={{__html: `<span>&#${62719 + 1};</span>`}}></span> | ||
</>) | ||
} | ||
return ( | ||
<> | ||
<span className="tran"> {props.page[props.index][1]} </span> | ||
<span className="tran" dangerouslySetInnerHTML={{__html: `<span>&#${62719 + props.number};</span>`}}></span> | ||
</> | ||
); | ||
} | ||
else if (props.option === "uthmani") { | ||
if (props.page[props.index][1].includes("بِسْمِ ٱللَّهِ ٱلرَّحْمَـٰنِ ٱلرَّحِيمِ")) { | ||
const entryString = "بِسْمِ ٱللَّهِ ٱلرَّحْمَـٰنِ ٱلرَّحِيمِ"; | ||
const entryArray = entryString.split(" "); | ||
const letter = entryArray.splice(3 + 1, entryArray.length - (3 + 1) ); | ||
if (letter[0] === "ٱلرَّحِيمِ") { | ||
entryArray.push(letter); | ||
} | ||
else { | ||
return <> <span>{letterstogether} </span> <span dangerouslySetInnerHTML={{__html: "<span></span>"}}></span> </>; | ||
const letterstogether = letter.join(" "); | ||
const generateFirstAyah = () => { | ||
if (letterstogether === "") { | ||
return ""; | ||
} | ||
else { | ||
return <> <span>{letterstogether} </span> <span dangerouslySetInnerHTML={{__html: "<span></span>"}}></span> </>; | ||
} | ||
} | ||
return ( | ||
<> | ||
<hr className="headAyahTop" /> | ||
<div className="flex justify-center"> | ||
<p className="font-bold text-5xl max-lg:text-2xl surah">❁ {props.page[props.index][2]} ❁</p> | ||
</div> | ||
<hr className="headAyahTop headAyahBottom"/> | ||
<div className="flex justify-center"> | ||
<p className=" font-semibold text-5xl max-lg:text-2xl">❁ {entryArray.join(" ")} ❁</p> | ||
</div> | ||
<hr className="headAyahBottom"/> | ||
<span>{generateFirstAyah()}</span> | ||
</> | ||
) | ||
} | ||
else if (props.page[props.index][0] === 1) { | ||
return( | ||
<> | ||
<hr className="headAyahTop" /> | ||
<div className="flex justify-center"> | ||
<p className="font-bold text-5xl max-lg:text-2xl surah">❁ {props.page[props.index][2]} ❁</p> | ||
</div> | ||
<hr className="headAyahTop headAyahBottom"/> | ||
<div className="flex justify-center"> | ||
<p className=" font-semibold text-5xl max-lg:text-2xl">❁ بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ ❁</p> | ||
</div> | ||
<hr className="headAyahBottom"/> | ||
<span className="tran">{props.page[props.index][1]} </span> | ||
<span className="tran" dangerouslySetInnerHTML={{__html: `<span>&#${64511 + 1};</span>`}}></span> | ||
</>) | ||
} | ||
return ( | ||
<> | ||
<hr className="headAyahTop" /> | ||
<div className="flex justify-center"> | ||
<p className="font-bold text-5xl max-lg:text-2xl surah">❁ {props.page[props.index][2]} ❁</p> | ||
</div> | ||
<hr className="headAyahTop headAyahBottom"/> | ||
<div className="flex justify-center"> | ||
<p className=" font-semibold text-5xl max-lg:text-2xl">❁ {entryArray.join(" ")} ❁</p> | ||
</div> | ||
<hr className="headAyahBottom"/> | ||
<span>{generateFirstAyah()}</span> | ||
<span className="tran"> {props.page[props.index][1]} </span> | ||
<span className="tran" dangerouslySetInnerHTML={{__html: `<span>&#${64511 + props.number};</span>`}}></span> | ||
</> | ||
) | ||
); | ||
} | ||
else if (props.page[props.index][0] === 1) { | ||
return( | ||
<> | ||
<hr className="headAyahTop" /> | ||
<div className="flex justify-center"> | ||
<p className="font-bold text-5xl max-lg:text-2xl surah">❁ {props.page[props.index][2]} ❁</p> | ||
</div> | ||
<hr className="headAyahTop headAyahBottom"/> | ||
<div className="flex justify-center"> | ||
<p className=" font-semibold text-5xl max-lg:text-2xl">❁ بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ ❁</p> | ||
</div> | ||
<hr className="headAyahBottom"/> | ||
<span className="tran">{props.page[props.index][1]} </span> | ||
<span className="tran" dangerouslySetInnerHTML={{__html: `<span>&#${62719 + 1};</span>`}}></span> | ||
</>) | ||
else { | ||
return null; | ||
} | ||
return ( | ||
<> | ||
<span className="tran"> {props.page[props.index][1]} </span> | ||
<span className="tran" dangerouslySetInnerHTML={{__html: `<span>&#${62719 + props.number};</span>`}}></span> | ||
</> | ||
); | ||
} | ||
export default Ayah; |
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,24 @@ | ||
|
||
const SettingsPage = (props) => { | ||
|
||
const saveSettings = (e) => { | ||
props.localStorage.setItem("quranFont", e); | ||
} | ||
|
||
return ( | ||
<div className="flex justify-center flex-col h-3/4 text-center"> | ||
<h1 className="p-5 title font-bold contents text-center">Settings</h1> | ||
<form> | ||
<label className="ntext text-3xl">Quran Font: </label> | ||
<select onChange={(e) => saveSettings(e.target.value)} className="selection ntext p-1 rounded-md text-3xl bg-slate-300 border-slate-800 border-none"> | ||
<option value="indopak" className="bg-slate-400 text-slate-800">Indopak</option> | ||
<option value="uthmani" className="bg-slate-400 text-slate-800">Uthmani Hafezi</option> | ||
</select> | ||
<br/> | ||
</form> | ||
|
||
</div> | ||
) | ||
} | ||
|
||
export default SettingsPage; |
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
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Oops, something went wrong.