Commit graph

499 commits

Author SHA1 Message Date
324c4a8c4b Adjust title (stream.html.erb) 2024-05-01 08:35:14 -03:00
7d0fa78efe Fix typo 2024-05-01 08:18:02 -03:00
2b7f4b2370 Adjust <title> (stream.html.erb) 2024-05-01 08:16:58 -03:00
d62e34dd3e Replace noise-y generic types 2024-05-01 08:07:00 -03:00
644b19b8d4 Fix typo 2024-05-01 07:42:46 -03:00
7f9cc18961 Improve audio controls
This change builds on the previous commit. There is increased reliability,
and coverage of more scenarios involving audio.
2024-05-01 07:36:36 -03:00
9b69b6d43b Fix stream audio
The Sound(On|Off)Icon would turn off after the first track ends.
This happened thanks to code that handles audio tracks played for
a single ayah. We can identify the context where we don't want to
automatically disable via 'autoPlay'. Not a great fix but works.

We also top up the Timer count when sound is turned on. That helps
make sure the audio will finish before the timer.
2024-05-01 04:59:47 -03:00
3d78cd6fcf Update Timer.tsx 2024-05-01 04:36:20 -03:00
d3f075e98e Hoist 'audio' (HTMLAudioElement) into parent component
A new approach that gives the caller (parent) control over
the HTMLAudioElement. This will hopefully provide a framework
for a stable implementation that can handle multiple retries
over a slow network.
2024-05-01 03:47:09 -03:00
8890b67dbb Update /(en|ar)/index.html 2024-05-01 00:09:13 -03:00
f544be4144 Fix / improve render of meta tags (stream.html.erb) 2024-05-01 00:00:45 -03:00
6bec11a547 Add static JSON to .js files rather than .html files 2024-04-30 22:46:48 -03:00
e8347fa5a5 Add packages/typescript/Quran/ 2024-04-30 09:43:30 -03:00
9e6297f316 s/selected-option/selected/g 2024-04-30 01:46:22 -03:00
4f436062e5 Replace "ChangeEvent" 2024-04-30 01:38:23 -03:00
f59a971577 s/classnames/classNames/g 2024-04-30 01:28:38 -03:00
83e9021108 s/get/query/g 2024-04-30 01:26:53 -03:00
194d757ec3 Update Select.tsx 2024-04-30 01:25:12 -03:00
87a61cfe96 'npm run prettier' 2024-04-30 01:06:16 -03:00
8e7fc9d6d5 Fix eslint 2024-04-30 01:05:48 -03:00
0fb529a7bf Replace 'interface' with 'type' 2024-04-30 01:03:45 -03:00
c0712ac79c Add src/js/components/SurahIndex/ 2024-04-30 00:49:42 -03:00
0c05e5344c Move postman.scss to /css/vendor/postman.scss 2024-04-30 00:28:52 -03:00
8beaf71ac8 json: add parent directory (src/json/) 2024-04-30 00:11:00 -03:00
895135c4b7 Change priority (Between 0.8 <-> 1.0) 2024-04-29 23:56:04 -03:00
9b20c90e4c css: remove components/_Scrollbar.scss (unused) 2024-04-29 23:35:46 -03:00
5845f42454 css: s/icons/icon/g 2024-04-29 23:30:30 -03:00
7c05916998 css: add base/, main/ 2024-04-29 23:26:03 -03:00
28451d0ce4 Improve language dropdown
(SurahIndex|SurahStream).tsx
2024-04-29 20:46:43 -03:00
77c21511dc Assign div before if 2024-04-29 19:52:29 -03:00
05162ad888 Fix / improve Icon.tsx alignment 2024-04-29 19:32:30 -03:00
fe091ad202 Present ayat count on SurahIndex.tsx
Underneath the transliterated name, the ayat count is shown. Applies
to ltr languages (for now English only).
2024-04-29 13:03:12 -03:00
a55e6ba939 Update src/images/opengraph/ 2024-04-29 12:02:27 -03:00
1a199f1ffb Update src/images/opengraph/ 2024-04-29 11:46:56 -03:00
6ca99cf8d8 Merge branch 'main' into production 2024-04-29 11:43:20 -03:00
21d2e236b0 Update src/images/opengraph 2024-04-29 11:43:09 -03:00
54a266bb74 Merge branch 'main' into production 2024-04-29 11:36:32 -03:00
957124398c og:type = "article" 2024-04-29 11:36:26 -03:00
af70576394 Merge branch 'main' into production 2024-04-29 11:33:53 -03:00
e55c6835e9 Update src/images/opengraph 2024-04-29 11:33:38 -03:00
4100c91283 Merge branch 'main' into production 2024-04-22 01:05:14 -03:00
5bd669edf6 Remove stale reference to /favicon.svg 2024-04-22 01:03:23 -03:00
c0b9d9fc4a Apply color to ayah title 2024-04-22 01:01:47 -03:00
29d154c999 Merge branch 'main' into production 2024-03-25 04:59:24 -03:00
71d1029f85 Hide <RightArrow> for non-rtl locale 2024-03-25 04:58:51 -03:00
823fc6646a Merge branch 'main' into production 2024-03-25 02:08:07 -03:00
57e05b2cef Render AudioControl.tsx at end of stream 2024-03-25 02:06:59 -03:00
57d9ec91f1 Update SurahStream.{tsx,css}, SurahIndex.tsx 2024-03-25 02:03:25 -03:00
cfd59c97fa Add Head.tsx 2024-03-25 01:16:28 -03:00
b525108a56 Merge branch 'main' into production 2024-03-21 19:00:27 -03:00
ad5ab6c617 Update stream.html.erb 2024-03-21 18:00:08 -03:00
b3d0a8c6ad Merge branch 'main' into production 2024-03-16 21:38:09 -03:00
05ac909e80 Replace slugs.json with nameById.json 2024-03-16 21:31:06 -03:00
43bd4f1fc4 Update random.ts 2024-03-16 14:09:35 -03:00
ec5c463abe Store json in random.ts 2024-03-16 14:07:53 -03:00
6817f35e54 Replace src/js/lib/Locale.ts 2024-03-16 11:13:27 -03:00
168d86c01d Merge branch 'main' into production 2024-03-16 05:44:36 -03:00
25557888cd Add src/js/main/redirect.ts 2024-03-16 05:35:58 -03:00
047eac5b75 Add src/js/main/random.ts 2024-03-16 05:18:03 -03:00
60c8b9799b Add src/js/main/surah-stream.tsx 2024-03-16 04:56:56 -03:00
8dc06cd004 Add src/js/main/surah-index.tsx 2024-03-16 04:17:49 -03:00
c95da7197c Move top-level json files in src/ to src/json/ 2024-03-15 15:06:16 -03:00
7e04b66db3 Move favicon*.png to src/images/ 2024-03-15 15:06:16 -03:00
284c203489 src/time_slots/ has been replaced by src/durations/ 2024-03-15 15:06:16 -03:00
0cf95b6357 Merge branch 'main' into production 2024-03-15 14:11:37 -03:00
bb2d3549d3 Update src/images/opengraph/quran.png 2024-03-15 14:10:28 -03:00
fdc8de7cc6 Merge branch 'main' into production 2024-03-15 13:12:54 -03:00
7004918676 Update src/images/opengraph/ 2024-03-15 13:06:17 -03:00
b019b9a052 Merge branch 'main' into production 2024-03-12 12:35:57 -03:00
043523e48a Replace 'es-cookie' with 'document.cookie' 2024-03-12 12:34:18 -03:00
54d7e1e99e Merge branch 'main' into production 2024-03-10 08:55:03 -03:00
e2702ded25 Add src/favicon.ico 2024-03-10 08:54:42 -03:00
26a6a09cc0 Merge branch 'main' into production 2024-03-10 08:28:30 -03:00
60379b2de5 Rephrase meta descriptions 2024-03-10 08:27:48 -03:00
12c88fc358 Merge branch 'main' into production 2024-03-10 08:24:01 -03:00
abf06a13c0 Rephrase meta descriptions 2024-03-10 08:23:08 -03:00
a1f7ee3026 Set text-base on Timer.tsx 2024-02-29 14:52:09 -03:00
dd5d63d2b8 Merge branch 'main' into production 2024-02-29 13:40:34 -03:00
113c29439d Fix style / alignment issues 2024-02-29 13:39:22 -03:00
cca0fac05b Merge branch 'main' into production 2024-02-29 00:42:03 -03:00
05323a7ed0 Fix alignment of StalledIcon 2024-02-29 00:40:14 -03:00
73bf104dda Merge branch 'main' into production 2024-02-29 00:09:11 -03:00
1fb81c967b Hoist 'ms' 2024-02-29 00:07:27 -03:00
4696f5c724 Merge branch 'main' into production 2024-02-28 22:49:36 -03:00
ec0f7c480a Align items in footer 2024-02-28 22:45:51 -03:00
4b555a3141 Limit border-top to .surah-index 2024-02-28 21:27:27 -03:00
2123f27dae Remove font (Amiri Quran Regular) 2024-02-28 20:13:54 -03:00
0802c5340a Minor tweaks and improvements 2024-02-28 20:11:24 -03:00
b50192795d Rewrite SurahStream.tsx with tail.css 2024-02-28 19:41:48 -03:00
513fe07c8a Rewrite SurahIndex.tsx with tail.css 2024-02-28 19:41:48 -03:00
93e1898382 Merge branch 'main' into production 2024-02-26 19:19:25 -03:00
bda0c7dbcc Quote meta description within single quotes 2024-02-26 19:06:23 -03:00
f81da7f19a Merge branch 'main' into production 2024-02-26 18:50:47 -03:00
f09e76f26c Fix typo in stream.html.erb 2024-02-26 18:50:23 -03:00
6de0a931ad Merge branch 'main' into production 2024-02-26 18:14:50 -03:00
b784c2bb33 SEO: update meta descriptions. 2024-02-26 18:14:33 -03:00
0c7be46e8d Remove trailing newlines from src/favicon.svg 2024-02-26 17:44:59 -03:00
9846e37abb Merge branch 'main' into production 2024-02-26 17:21:02 -03:00
05f310c670 Update bin/build-favicons 2024-02-26 17:19:27 -03:00
fb9c7da188 Update bin/build-favicons 2024-02-26 16:29:41 -03:00