-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add all qari and salat time loaction filler option
- Loading branch information
Showing
12 changed files
with
1,011 additions
and
97 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,11 @@ | ||
404.png,1701798433482,faa8a7081c307c4aebf4040d58297c35e53bbe36ea1c0672ebb9b16d70ddfb87 | ||
favicon.ico,1703403210000,3ef54200b11160280d9ffe3f80fa91c9ba259364d337eaf853bce3ba20698071 | ||
tawheed.png,1706790530451,3fd82bed41cf5d587139d4425af07773d30fbaed50f78152c9191f9c9e3a75ce | ||
vite.png,1703403210000,c7e8b220c2ad5d70459bcbabf1023fbc4d4730c057a55724c48eac987fc8580b | ||
index.html,1711279491104,c5902b25c16f2b0cc8a9caa70ff2327ab4124d9a580088c8a4fe928385747c47 | ||
assets/html2canvas-CBHES5Bc.js,1711279491104,420437c71607ff0fd68a2951acf9ee7833f75eb32769035609245a26a0536de1 | ||
assets/purify.es-BZcJlXyC.js,1711279491106,2a0b4acf81d951ac70b052a34b3a38af17f1560bca447431c5111fb4cc4e5ab5 | ||
assets/vite-CXBKpRo0.png,1711279491092,c7e8b220c2ad5d70459bcbabf1023fbc4d4730c057a55724c48eac987fc8580b | ||
assets/index-DvNWsjqz.css,1711279491104,eef0d91bb4109191135e7c5d167dc7f20e49c8a3b93b98585d543e16ef80ced5 | ||
assets/index.es-DMCnn5Fi.js,1711279491107,0dc9d3112bd76b646f8a7354605ee1cb566963ffc47b5d6dcfacf32e2075db41 | ||
assets/404-BdmjsMXD.png,1711279491093,faa8a7081c307c4aebf4040d58297c35e53bbe36ea1c0672ebb9b16d70ddfb87 | ||
assets/index-SVtEZdxl.js,1711279491108,0b8198be0ad251db37f3d346d60d24711f9ff9535025e57f69dec8f8ea7bb1ae | ||
tawheed.png,1706790530451,3fd82bed41cf5d587139d4425af07773d30fbaed50f78152c9191f9c9e3a75ce | ||
favicon.ico,1703403210000,3ef54200b11160280d9ffe3f80fa91c9ba259364d337eaf853bce3ba20698071 | ||
404.png,1701798433482,faa8a7081c307c4aebf4040d58297c35e53bbe36ea1c0672ebb9b16d70ddfb87 | ||
index.html,1729869627986,f27998634f7f45ac808d89084541c4248f41689205aab55d819fa6a4e9b9f198 | ||
assets/purify.es-BZcJlXyC.js,1729869627986,2a0b4acf81d951ac70b052a34b3a38af17f1560bca447431c5111fb4cc4e5ab5 | ||
assets/html2canvas-z-DZaOsF.js,1729869627986,9500ec8a05aa5bb0dff0c1ee2498164d215cb708da6ef4ec8de1c0298fded671 | ||
assets/index-BBioUny3.css,1729869627986,f36a689fafd4ae68bdd49abf0b507f04607ea8f0869eb51eb06f39fafa535a74 | ||
assets/index.es-B-vZ23tE.js,1729869627986,9efdbe75c02652f580877ab6711e7a9e2079db96fada795be0560f22c50e03b8 | ||
assets/404-BdmjsMXD.png,1729869627980,faa8a7081c307c4aebf4040d58297c35e53bbe36ea1c0672ebb9b16d70ddfb87 | ||
assets/index-Bim2jItj.js,1729869627988,c30a4354a840d4e54249c37d13e3ac7f944b74c159a3b41a333d46f57e3b7172 |
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,48 @@ | ||
import React, { useState } from 'react'; | ||
import Qaris from '../../qari.json'; | ||
import { Link } from 'react-router-dom'; | ||
|
||
const Qari = () => { | ||
const [searchQuery, setSearchQuery] = useState(''); | ||
|
||
// Filter the Qaris based on the search query | ||
const filteredQaris = Qaris.filter(qari => | ||
qari.name.toLowerCase().includes(searchQuery.toLowerCase()) | ||
); | ||
|
||
return ( | ||
<div className='flex justify-center items-center flex-col gap-5'> | ||
<div className='flex justify-center w-full'> | ||
<div className='dark:bg-[#fffefe3a] bg-[#bab5b549] rounded-tl-full rounded-bl-full flex justify-between items-center p-2 px-4 md:w-1/2 w-2/3 gap-6'> | ||
<div className='flex gap-4 items-center text-2xl overflow-hidden'> | ||
<input | ||
type="text" | ||
className='w-screen bg-transparent border-none focus:outline-none text-white' | ||
placeholder="Search Qari" | ||
value={searchQuery} | ||
onChange={(e) => setSearchQuery(e.target.value)} // Update search query on input change | ||
/> | ||
</div> | ||
</div> | ||
<button className='bg-[#1d4ed8] text-white px-3 rounded-tr-full rounded-br-full'> | ||
Search | ||
</button> | ||
</div> | ||
|
||
<div className='grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 text-white gap-3 justify-items-center items-center w-full'> | ||
{filteredQaris?.map(item => ( | ||
<Link key={item.id} to={`${item.id}`}> | ||
<div className={`flex text-white w-[22rem] lg:w-96 p-3 gap-3 bg-grayr hover:bg-grayh rounded-md justify-start items-center cursor-pointer hover:scale-105 duration-200`}> | ||
<div className='flex justify-center items-center w-11 h-11 p-1 rounded-full border-2'> | ||
<h1>{item.id}</h1> | ||
</div> | ||
<h2>{item.name}</h2> | ||
</div> | ||
</Link> | ||
))} | ||
</div> | ||
</div> | ||
); | ||
}; | ||
|
||
export default Qari; |
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,32 @@ | ||
import React from 'react'; | ||
|
||
const Downloader = ({ url, fileName }) => { | ||
const downloadFile = async () => { | ||
try { | ||
|
||
const response = await fetch(url); | ||
|
||
if (!response.ok) throw new Error(`HTTP error! status: ${response.status}`); | ||
|
||
const blob = await response.blob(); | ||
const link = document.createElement('a'); | ||
const fileURL = window.URL.createObjectURL(blob); | ||
link.href = fileURL; | ||
link.download = fileName || 'audio.mp3'; | ||
document.body.appendChild(link); | ||
link.click(); | ||
document.body.removeChild(link); | ||
window.URL.revokeObjectURL(fileURL); | ||
} catch (error) { | ||
console.error("File download failed:", error); | ||
} | ||
}; | ||
|
||
return ( | ||
<button onClick={downloadFile} className="bg-blue-500 text-white px-4 py-2 rounded-md"> | ||
Download File | ||
</button> | ||
); | ||
}; | ||
|
||
export default Downloader; |
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
Oops, something went wrong.