Commit graph

508 commits

Author SHA1 Message Date
7183929079 Translate 'Loading' string 2024-05-26 13:55:09 -03:00
efbd0299f9 Replace single quotes with double quotes 2024-05-26 02:56:50 -03:00
72719684a6 Replace data-locale with lang attribute 2024-05-25 23:33:49 -03:00
09365dd283 Add opengraph to /<locale>/random/ 2024-05-25 23:12:42 -03:00
f9282c1345 Replace hard-coded references with 'server.hostname' 2024-05-25 22:34:55 -03:00
8c2f4df663 Add /<locale>/random/ to sitemap.xml.erb 2024-05-25 20:59:24 -03:00
5d203a12eb Add meta description to /<locale>/random/ 2024-05-25 20:52:03 -03:00
62898d4908 v0.8.3 2024-05-25 03:18:48 -03:00
04784515fe Remove data-app-version 2024-05-25 01:38:43 -03:00
9c348f1223 Add "version" to _revision.html.erb
See https://github.com/dvorapa/meta-version
2024-05-25 01:31:03 -03:00
1673fd2cf4 Add 'revision' meta tag
See https://github.com/krallin/meta-revision
2024-05-25 00:53:15 -03:00
6db1792828 Update src/js/loaders/ 2024-05-24 22:02:03 -03:00
1c08dcede0 Add /components/Timer/ 2024-05-24 16:16:55 -03:00
e8f2f11734 Reduce intesity of Timer.tsx ticks 2024-05-24 15:57:42 -03:00
7d8867e991 Fix bug in redirect.ts 2024-05-24 15:56:52 -03:00
d9b72605fe Adopt darker green for the green theme 2024-05-24 15:19:18 -03:00
f75da19d74 Set SameSite=Strict 2024-05-24 14:17:14 -03:00
9641ea2f57 Fix "rake ci" 2024-05-24 14:07:52 -03:00
4a362b7db8 Reduce re-renders of SurahStream (SurahStream/index.tsx) 2024-05-24 14:02:02 -03:00
96bf486ad2 Add "rake ci" 2024-05-19 23:24:47 -03:00
bcf6e6d0e2 Update info.json (farsi) 2024-05-19 22:46:15 -03:00
6d60da78b1 Update farsi translation 2024-05-19 22:45:41 -03:00
5e202a01fd Close select after an option is clicked 2024-05-19 21:51:49 -03:00
2ead06cf05 Adjust margin based on direction (rtl / ltr) 2024-05-19 20:53:47 -03:00
716096e911 Try to improve ThemeSelect.tsx (mobile) 2024-05-19 20:37:56 -03:00
5acb5484df Add padding (mostly for mobile) 2024-05-19 20:35:16 -03:00
9627c60021 Add translatedBy to surahs.json 2024-05-19 20:22:14 -03:00
0ac9e415a6 Update Filter.tsx 2024-05-19 17:30:04 -03:00
e1249e7b81 Add Farsi support
This change is a big one. It adds Farsi support,
which by itself is significant. In the process of
adding Farsi support other significant improvements
were made:

* Select.tsx component
* TLocale (Quran/index.ts)
* ...
2024-05-19 16:51:37 -03:00
793954b0aa Fix prettier + eslint 2024-05-17 02:55:11 -03:00
d299621488 Add opengraph to root path
Default to the canonical (/en/) for the
title, description, and images.
2024-05-16 17:02:35 -03:00
a966e8a8e2 Restructure info.json
The schema has been changed to be easily
interchangeable between different locales,
and these changes make it easier to adopt
Farsi support as well.
2024-05-16 16:17:12 -03:00
2367cc5792 Reduce max width (1024px -> 768px) 2024-05-16 11:12:10 -03:00
deae96fc4b Add Quran.locales 2024-05-15 21:51:04 -03:00
fcb7aa391a Add self-closing icon links 2024-05-15 01:30:16 -03:00
eeaf48bca8 Add canonical and alternate link tags to all 'main' pages 2024-05-15 00:59:40 -03:00
fe32825e2b src/html/*.html.erb => src/html/main/*.html.erb 2024-05-15 00:35:45 -03:00
8d44281079 Run info.json through JSON.pretty_generate() 2024-05-14 23:18:20 -03:00
82cb7e81e0 Populate surah via info.json 2024-05-14 23:09:31 -03:00
5a59e999b3 Separate information about the surah from surah.json
The first element of the array from surah.json has been
moved into its own file (info.json).

Now we have:
* /json/en/1/surah.json (surah content)
* /json/en/1/info.json (info about the surah)
2024-05-14 23:09:13 -03:00
ea8fe925af s|ref|articleRef|g 2024-05-14 16:26:04 -03:00
2e6952eacc Add SurahStream/ 2024-05-14 16:07:57 -03:00
dc9edbe047 Fix render of refresh icon
It didn't appear quite right with an explicit height of 16px
2024-05-09 19:35:37 -03:00
4f282e12f2 Fix format offenses 2024-05-02 10:46:40 -03:00
610297f60a Remove unused src/json/durations/ 2024-05-02 07:52:10 -03:00
d7cb6f62be images/opengraph/ -> images/og/
But most importantly, for src/og/0.png:

* resize to 512x512
* apply a white background
* similar to the format for og/1.png, og/2.png, etc
2024-05-02 07:32:11 -03:00
cc3b8f27a9 quran.png -> 0.png 2024-05-02 07:15:01 -03:00
4df978e688 Remove src/images/flags/ 2024-05-02 07:12:26 -03:00
adfe95103e !0 evaluates as true, returning early for a case we didn't expect
The if guard in this commit is aimed at catching null / undefined.
2024-05-02 05:31:46 -03:00
1d06b50300 Handle 'ms' being null as "zero" in Timer 2024-05-01 12:40:02 -03:00