From 4ad37547d3996d6730b9bc9d9cbc2e1ff9cd8d49 Mon Sep 17 00:00:00 2001 From: Marwan Ansari <8071158+marwan@users.noreply.github.com> Date: Wed, 6 Mar 2024 21:37:29 +0530 Subject: [PATCH] audio modal changes, added Tajweed word type and some more minor changes and fixes. --- public/global.css | 5 +- rollup.config.js | 1 - src/components/svgs/Logo.svelte | 4 +- src/components/ui/Drawer.svelte | 7 +- src/components/ui/Navbar.svelte | 2 +- src/components/ui/modals/AudioModal.svelte | 103 ++++++------------ .../ui/modals/InitialSetupModal.svelte | 5 +- src/components/verses/VersesButtons.svelte | 4 +- src/components/verses/VersesWords.svelte | 52 +++++++-- .../verses/displays/WBWDisplay.svelte | 2 +- src/utils/audioController.js | 93 +++++++++++++++- src/utils/commonStyles.js | 2 +- src/utils/elementInViewport.js | 6 + src/views/Chapter.svelte | 14 +++ src/views/Home.svelte | 2 +- 15 files changed, 202 insertions(+), 100 deletions(-) create mode 100644 src/utils/elementInViewport.js diff --git a/public/global.css b/public/global.css index 04b20b31..f04d5565 100644 --- a/public/global.css +++ b/public/global.css @@ -86,11 +86,12 @@ svg { } .arabic-font-1, -.arabic-font-2 { +.arabic-font-2, +.arabic-font-3 { direction: rtl; } -.arabic-font-1 { +.arabic-font-1, .arabic-font-3 { font-family: "Uthmani-Hafs"; } diff --git a/rollup.config.js b/rollup.config.js index a070b397..46b8f48c 100644 --- a/rollup.config.js +++ b/rollup.config.js @@ -34,7 +34,6 @@ export default { plugins: [ alias({ entries: { - $components: path.resolve(__dirname, "./src/components"), $ui: path.resolve(__dirname, "./src/components/ui"), $modals: path.resolve(__dirname, "./src/components/ui/modals"), $verses: path.resolve(__dirname, "./src/components/verses"), diff --git a/src/components/svgs/Logo.svelte b/src/components/svgs/Logo.svelte index 66922ebb..3209be54 100644 --- a/src/components/svgs/Logo.svelte +++ b/src/components/svgs/Logo.svelte @@ -1,5 +1,5 @@ - - + + diff --git a/src/components/ui/Drawer.svelte b/src/components/ui/Drawer.svelte index e1ab9ffa..0c3b782e 100644 --- a/src/components/ui/Drawer.svelte +++ b/src/components/ui/Drawer.svelte @@ -50,8 +50,9 @@

Select the Quranic font type depending on your region.

@@ -131,7 +132,7 @@ +
- - + +
@@ -81,31 +46,31 @@
- +
-
- +
+
-
- +
+
-
+
Select the range of verses or words to be played.
- {#each Array.from(Array(quranMetaData[$chapterNumberStore].verses).keys()).slice(0) as verse} {/each} @@ -113,37 +78,35 @@
- - - + {#each Array.from(Array(quranMetaData[$chapterNumberStore].verses).keys()).slice(0) as verse} {/each}
+
+
- -