Skip to content

Commit e2bbdb7

Browse files
show donation popup Dhul Hijja 1446 (#2422)
* feat: update banner and links to promote Best Days donation campaign * feat: add Dhul-Hijjah best days landing page with styling and OG image support * fix: update QuranReflect post links in the-best-days page * fix: update text for best-day modal link to use plural form * style: update CSS properties and restructure content layout for Dhul-Hijjah page * refactor: update donation URLs and improve styling for best days page * feat: add donation popup with Best Days theme and subtitle * chore: format config files and reorganize imports in _app.tsx * Sync locales --------- Co-authored-by: Osama Sayed <toto777_90@hotmail.com>
1 parent adb1540 commit e2bbdb7

File tree

22 files changed

+50
-22
lines changed

22 files changed

+50
-22
lines changed

locales/ar/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,10 @@
297297
"popup": {
298298
"companion-title": "يا رفيق القرآن العزيز",
299299
"footnote": "التبرعات الشهرية تمكننا من التركيز بشكل أقل على جمع التبرعات",
300+
"subtitle": "«ما من أيام العمل الصالح فيها أحب إلى الله من هذه الأيام» [رياض الصالحين ١٢٤٩]",
300301
"text-1": "نحن ملتزمون بخدمة العالم المعرفة القرآنية والتقنية بالمجان دائماً",
301302
"text-2": "الفرصة المثالية للصدقة المستمرة (الصدقة الجارية). استثمر في آخرتك كمتبرع شهري (أو لمرة واحدة).",
302-
"title": "يا رفيق القرآن العزيز"
303+
"title": "تبرع في أفضل الأيام!"
303304
},
304305
"powered-by": "مشغل بواسطة",
305306
"prepare-hearts": {

locales/bn/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,10 @@
297297
"popup": {
298298
"companion-title": "কুরআনের প্রিয় সাহাবী,",
299299
"footnote": "মাসিক অনুদান আমাদের তহবিল সংগ্রহে কম ফোকাস করার অনুমতি দেয়",
300+
"subtitle": "\"এই দিনগুলোর চেয়ে ভালো কাজ আল্লাহর কাছে এত পছন্দনীয় আর কোন দিন নেই\" [রিয়াদ আস-সালিহিন ১২৪৯]",
300301
"text-1": "আমরা সর্বদা বিনামূল্যে বিশ্বকে কুরআনের জ্ঞান ও প্রযুক্তি পরিবেশন করতে প্রতিশ্রুতিবদ্ধ।",
301302
"text-2": "ক্রমাগত দাতব্য (সদকা জারিয়াহ) জন্য উপযুক্ত সুযোগ। মাসিক (বা একবার) দাতা হিসাবে আপনার পরকালে বিনিয়োগ করুন।",
302-
"title": "প্রিয় কুরআনের সাহাবী,"
303+
"title": "সেরা দিনগুলিতে দান করুন!"
303304
},
304305
"powered-by": "দ্বারা চালিত",
305306
"prepare-hearts": {

locales/en/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,10 @@
297297
"popup": {
298298
"companion-title": "Dear Companion of the Quran,",
299299
"footnote": "Monthly donations allow us to focus less on fundraising",
300+
"subtitle": "\"There are no days during which the righteous action is so pleasing to Allah than these days\" [Riyad as-Salihin 1249]",
300301
"text-1": "We are committed to serving the world Quranic knowledge and technology, always for free.",
301302
"text-2": "The perfect opportunity for continous charity (Sadaqa Jariyah). Invest in your Hereafter as a monthly (or one time) donor.",
302-
"title": "Dear Companion of the Quran,"
303+
"title": "Give During The Best Days!"
303304
},
304305
"powered-by": "Powered by",
305306
"prepare-hearts": {

locales/es/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,10 @@
297297
"popup": {
298298
"companion-title": "Querido Compañero del Corán,",
299299
"footnote": "Las donaciones mensuales nos permiten centrarnos menos en la recaudación de fondos.",
300+
"subtitle": "“No hay días en que la acción justa sea tan agradable a Dios como estos días” [Riyad as-Salihin 1249]",
300301
"text-1": "Estamos comprometidos a servir al mundo el conocimiento y la tecnología coránica, siempre de forma gratuita.",
301302
"text-2": "La oportunidad perfecta para la caridad continua (Sadaqa Jariyah). Invierte en tu Más Allá como donante mensual (o solo una vez).",
302-
"title": "Querido Compañero del Corán,"
303+
"title": "¡Dona durante los mejores días!"
303304
},
304305
"powered-by": "Desarrollado por",
305306
"prepare-hearts": {

locales/fa/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,10 @@
297297
"popup": {
298298
"companion-title": "یاران گرامی قرآن",
299299
"footnote": "کمک های مالی ماهانه به ما امکان می دهد کمتر روی جمع آوری کمک های مالی تمرکز کنیم",
300+
"subtitle": "«هیچ ایامی نیست که عمل صالح در آن به اندازه این ایام مورد رضایت خداوند باشد.» [ریاض الصالحین ۱۲۴۹]",
300301
"text-1": "ما متعهد هستیم که همواره به صورت رایگان به دانش و فناوری قرآنی جهان خدمت کنیم.",
301302
"text-2": "فرصت عالی برای صدقه مستمر (صدقه جاریه). به عنوان یک اهدا کننده ماهانه (یا یک بار) در آخرت خود سرمایه گذاری کنید.",
302-
"title": "یاران گرامی قرآن"
303+
"title": "در بهترین روزها، بخشش کنید!"
303304
},
304305
"powered-by": "پشتیبانی شده توسط",
305306
"prepare-hearts": {

locales/fr/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,10 @@
297297
"popup": {
298298
"companion-title": "Cher compagnon du Coran,",
299299
"footnote": "Les dons mensuels nous permettent de moins nous concentrer sur la collecte de fonds",
300+
"subtitle": "« Il n'y a pas de jours où la bonne action est aussi agréable à Allah que ces jours-ci » [Riyad as-Salihin 1249]",
300301
"text-1": "Nous nous engageons à transmettre la connaissance du Coran gratuitement pour toutes et tous.",
301302
"text-2": "L’occasion idéale pour une charité continue (Sadaqa Jariyah). Investissez dans votre au-delà en tant que donateur mensuel (ou ponctuel).",
302-
"title": "Cher compagnon du Coran,"
303+
"title": "Donnez pendant les meilleurs jours !"
303304
},
304305
"powered-by": "Propulsé par",
305306
"prepare-hearts": {

locales/id/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,10 @@
297297
"popup": {
298298
"companion-title": "Wahai Sahabat Al-Quran yang terkasih,",
299299
"footnote": "Donasi bulanan memungkinkan kami untuk tidak terlalu fokus pada penggalangan dana",
300+
"subtitle": "“Tidak ada hari-hari di mana amal saleh lebih diridhai Allah daripada hari-hari ini.” [Riyad as-Salihin 1249]",
300301
"text-1": "Kami berkomitmen untuk melayani dunia pengetahuan dan teknologi Qur'ani, selalu gratis.",
301302
"text-2": "Kesempatan sempurna untuk Sedekah Jariyah. Investasi untuk Akhirat Anda dengan menjadi donor bulanan (atau donor satu kali).",
302-
"title": "Wahai Sahabat Al-Quran yang terkasih,"
303+
"title": "Berikan Selama Hari Terbaik!"
303304
},
304305
"powered-by": "Dipersembahkan oleh",
305306
"prepare-hearts": {

locales/it/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,10 @@
297297
"popup": {
298298
"companion-title": "Caro compagno del Corano,",
299299
"footnote": "Le donazioni mensili ci consentono di concentrarci meno sulla raccolta fondi",
300+
"subtitle": "\"Non ci sono giorni in cui l'azione giusta sia così gradita ad Allah come in questi giorni\" [Riyad as-Salihin 1249]",
300301
"text-1": "Ci impegniamo a servire il mondo della conoscenza e della tecnologia coraniche, sempre gratuitamente.",
301302
"text-2": "L'occasione perfetta per una carità continua (Sadaqa Jariyah). Investi nel tuo Aldilà come donatore mensile (o una tantum).",
302-
"title": "Caro compagno del Corano,"
303+
"title": "Dona nei giorni migliori!"
303304
},
304305
"powered-by": "Offerto da",
305306
"prepare-hearts": {

locales/ms/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,10 @@
297297
"popup": {
298298
"companion-title": "Sahabat Al-Quran yang dihormati,",
299299
"footnote": "Derma bulanan anda membantu mengurangkan usaha pengutipan dana kami sejurusnya melebihkan tumpuan pada program yang manfaat",
300+
"subtitle": "“Tidak ada hari-hari yang di dalamnya amal shalih lebih diredhai Allah daripada hari-hari ini.” [Riyad as-Salihin 1249]",
300301
"text-1": "Kami komited untuk memberi khidmat percuma dalam pengluasan pengetahuan dan teknologi pembelajaran al-Quran ke seantaro dunia.",
301302
"text-2": "Peluang terbaik untuk amal yang berterusan (Sadaqa Jariyah). Melabur untuk Akhirat anda sebagai penderma bulanan (atau sekali).",
302-
"title": "Sahabat al-Quran yang dihormati,"
303+
"title": "Berikan Semasa Hari-Hari Terbaik!"
303304
},
304305
"powered-by": "Dikuasai oleh",
305306
"prepare-hearts": {

locales/nl/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,10 @@
297297
"popup": {
298298
"companion-title": "Beste metgezel van de Koran,",
299299
"footnote": "Dankzij maandelijkse donaties kunnen we ons minder richten op fondsenwerving",
300+
"subtitle": "\"Er zijn geen dagen waarop de rechtvaardige handeling zo aangenaam is voor Allah als deze dagen\" [Riyad as-Salihin 1249]",
300301
"text-1": "We zijn toegewijd om de wereld kennis en technologie van de Koran te dienen, altijd gratis.",
301302
"text-2": "De perfecte gelegenheid voor voortdurende liefdadigheid (Sadaqa Jariyah). Investeer in uw Hiernamaals als maandelijkse (of eenmalige) donateur.",
302-
"title": "Beste metgezel van de Koran,"
303+
"title": "Geef tijdens de beste dagen!"
303304
},
304305
"powered-by": "Aangedreven door",
305306
"prepare-hearts": {

locales/pt/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,10 @@
297297
"popup": {
298298
"companion-title": "Caro companheiro do Alcorão,",
299299
"footnote": "As doações mensais permitem que nos concentremos menos na angariação de fundos",
300+
"subtitle": "“Não há dias em que a ação virtuosa seja tão agradável a Allah como estes dias” [Riyad as-Salihin 1249]",
300301
"text-1": "Estamos comprometidos em servir o conhecimento e a tecnologia do Alcorão, sempre de graça.",
301302
"text-2": "A oportunidade perfeita para caridade contínua (Sadaqa Jariyah). Invista no seu futuro como doador mensal (ou único).",
302-
"title": "Caro companheiro do Alcorão,"
303+
"title": "Doe nos melhores dias!"
303304
},
304305
"powered-by": "Distribuído por",
305306
"prepare-hearts": {

locales/ru/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,10 @@
297297
"popup": {
298298
"companion-title": "Дорогой сподвижник Корана,",
299299
"footnote": "Ежемесячные пожертвования позволяют нам меньше сосредотачиваться на сборе средств",
300+
"subtitle": "«Нет дней, в которые праведные деяния были бы столь угодны Аллаху, как эти дни» [Рияд ас-Салихин 1249]",
300301
"text-1": "Мы стремимся служить миру знаниями и технологиями Корана всегда бесплатно.",
301302
"text-2": "Прекрасная возможность для постоянной благотворительности (Садака Джария). Инвестируйте в свою будущую жизнь в качестве ежемесячного (или разового) донора.",
302-
"title": "Дорогой сподвижник Корана,"
303+
"title": "Дарите в лучшие дни!"
303304
},
304305
"powered-by": "Питаться от",
305306
"prepare-hearts": {

locales/sq/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,10 @@
297297
"popup": {
298298
"companion-title": "I dashur shok i Kur'anit,",
299299
"footnote": "Donacionet mujore na lejojnë të fokusohemi më pak në mbledhjen e fondeve",
300+
"subtitle": "\"Nuk ka ditë gjatë të cilave vepra e mirë është më e këndshme për Allahun sesa këto ditë\" [Rijad es-Salihin 1249]",
300301
"text-1": "Ne jemi të përkushtuar t'i shërbejmë njohurive dhe teknologjisë botërore kuranore, gjithmonë falas.",
301302
"text-2": "Mundësia e përsosur për bamirësi të vazhdueshme (Sadaka Jariyah). Investoni në Ahiretin tuaj si donator mujor (ose një herë).",
302-
"title": "I dashur shok i Kur'anit,"
303+
"title": "Dhuro në ditët më të mira!"
303304
},
304305
"powered-by": "Mundësuar nga",
305306
"prepare-hearts": {

locales/sw/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,10 @@
297297
"popup": {
298298
"companion-title": "Mpendwa Mwenzi wa Qur'ani,",
299299
"footnote": "Michango ya kila mwezi huturuhusu kupunguza uchangishaji",
300+
"subtitle": "“Hakuna siku ambazo vitendo vyema vinampendeza Mwenyezi Mungu kuliko siku hizi.” [Riyad as-Salihin 1249]",
300301
"text-1": "Tumejitolea kutumikia ulimwengu kupitia elimu ya Qur'ani pamoja na teknolojia, bila malipo.",
301302
"text-2": "Fursa nzuri ya kutoa sadaka endelevu (Sadaqa Jariyah). Wekeza katika Akhera yako kama mfadhili wa kila mwezi (au mara moja).",
302-
"title": "Mpendwa Mwenzi wa Qur'ani,"
303+
"title": "Toa Wakati wa Siku Bora!"
303304
},
304305
"powered-by": "Inaendeshwa na",
305306
"prepare-hearts": {

locales/th/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,10 @@
297297
"popup": {
298298
"companion-title": "เพื่อนผู้รักการอ่านอัลกุรอาน",
299299
"footnote": "การบริจาครายเดือนจะทำให้ความกังเวลาเกี่ยวกับการหาทุนลดลง",
300+
"subtitle": "“ไม่มีวันใดที่การกระทำความดีเป็นที่พอพระทัยต่ออัลลอฮ์ได้เท่ากับช่วงเวลานี้” [ริยาด อัส-ซาลิฮิน 1249]",
300301
"text-1": "เรามุ่งมั่นที่จะเผยแพร่ความรู้และเทคโนโลยีเกี่ยวกับอัลกุรอานแก่โลกโดยไม่หวังกำไร",
301302
"text-2": "โอกาสอันดีสำหรับการทำทานอย่างต่อเนื่อง (ซอดาเกาะญาริยาฮ์) ลงทุนในปรโลกของคุณในฐานะผู้บริจาครายเดือน (หรือครั้งเดียว)",
302-
"title": "เพื่อนผู้รักการอ่านอัลกุรอาน"
303+
"title": "ให้ในช่วงเวลาที่ดีที่สุด!"
303304
},
304305
"powered-by": "ขับเคลื่อนโดย",
305306
"prepare-hearts": {

locales/tr/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,10 @@
297297
"popup": {
298298
"companion-title": "Sevgili Kur'an Arkadaşı,",
299299
"footnote": "Aylık bağışlar, bağış toplamaya daha az odaklanmamızı sağlıyor",
300+
"subtitle": "\"Allah katında salih amelin en çok hoş karşılandığı günler bu günlerdir.\" [Riyadüs-Salihin 1249]",
300301
"text-1": "Her zaman ücretsiz olarak dünya Kuran bilgisine ve teknolojisine hizmet etmeye kararlıyız.",
301302
"text-2": "Sürekli hayırseverlik (Sadaqa Jariyah) için mükemmel bir fırsat. Aylık (veya bir defalık) bağışçı olarak ahiretinize yatırım yapın.",
302-
"title": "Sevgili Kur'an Arkadaşı,"
303+
"title": "En İyi Gününüzde Verin!"
303304
},
304305
"powered-by": "Tarafından desteklenmektedir",
305306
"prepare-hearts": {

locales/ur/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,10 @@
297297
"popup": {
298298
"companion-title": "قرآن کے پیارے ساتھی!",
299299
"footnote": "ماہانہ عطیات ہمیں فنڈ ریزنگ پر کم توجہ دینے کا موقع فراہم کرتے ہیں۔",
300+
"subtitle": "’’کوئی دن ایسا نہیں جس میں عمل صالح اللہ کے نزدیک ان دنوں سے زیادہ پسندیدہ ہو۔‘‘ (ریاض الصالحین 1249)",
300301
"text-1": "ہم دنیا کو قرآن کی تعلیمات اور ٹیکنالوجی مفت فراہم کرنے کے لیے پرعزم ہیں۔",
301302
"text-2": "صدقہ جاریہ (صدقہ جاریہ) کا بہترین موقع۔ ماہانہ (یا ایک بار) ڈونر کے طور پر اپنی آخرت میں سرمایہ کاری کریں۔",
302-
"title": "قرآن کے پیارے ساتھی!"
303+
"title": "بہترین دنوں کے دوران دیں!"
303304
},
304305
"powered-by": "کے ذریعے چلایا گیا",
305306
"prepare-hearts": {

locales/zh/common.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,9 +297,10 @@
297297
"popup": {
298298
"companion-title": "亲爱的《古兰经》同伴,",
299299
"footnote": "每月捐款让我们可以减少对筹款的关注",
300+
"subtitle": "“没有哪一天,正义的行为比这些日子更令真主喜悦。”[Riyad as-Salihin 1249]",
300301
"text-1": "我们致力于为世界提供古兰经知识和技术,始终免费。",
301302
"text-2": "这是持续慈善 (Sadaqa Jariyah) 的绝佳机会。作为每月 (或一次性) 捐赠者,投资您的来世。",
302-
"title": "亲爱的《古兰经》同伴,"
303+
"title": "在最好的日子里给予!"
303304
},
304305
"powered-by": "Powered by",
305306
"prepare-hearts": {

src/components/DonatePopup/DonatePopup.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ const DonatePopup = () => {
4545
</Button>
4646
<h1 className={styles.title}>{t('popup.title')}</h1>
4747
<div className={styles.textsContainer}>
48+
<p className={styles.text}>{t('popup.subtitle')}</p>
4849
<p className={styles.text}>{t('popup.text-1')}</p>
4950
<p className={styles.text}>{t('popup.text-2')}</p>
5051
</div>

src/pages/_app.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import React, { useEffect } from 'react';
1+
import { useEffect } from 'react';
22

33
import { DirectionProvider } from '@radix-ui/react-direction';
44
import { TooltipProvider } from '@radix-ui/react-tooltip';
@@ -11,6 +11,7 @@ import useSWRImmutable from 'swr/immutable';
1111
import AudioPlayer from '@/components/AudioPlayer/AudioPlayer';
1212
import UserAccountModal from '@/components/Auth/UserAccountModal';
1313
import DeveloperUtility from '@/components/DeveloperUtility/DeveloperUtility';
14+
import DonatePopup from '@/components/DonatePopup/DonatePopup';
1415
import FontPreLoader from '@/components/Fonts/FontPreLoader';
1516
import GlobalListeners from '@/components/GlobalListeners';
1617
import Navbar from '@/components/Navbar/Navbar';
@@ -32,10 +33,10 @@ import DataContext from 'src/contexts/DataContext';
3233
import ThemeProvider from 'src/styles/ThemeProvider';
3334
import { AudioPlayerMachineProvider } from 'src/xstate/AudioPlayerMachineContext';
3435

35-
import 'src/styles/reset.scss';
3636
import 'src/styles/fonts.scss';
37-
import 'src/styles/theme.scss';
3837
import 'src/styles/global.scss';
38+
import 'src/styles/reset.scss';
39+
import 'src/styles/theme.scss';
3940
import 'src/styles/variables.scss';
4041

4142
function MyApp({ Component, pageProps }): JSX.Element {
@@ -105,6 +106,7 @@ function MyApp({ Component, pageProps }): JSX.Element {
105106
<Component {...pageProps} />
106107
<AudioPlayer />
107108
<Footer />
109+
<DonatePopup />
108110
</OnboardingProvider>
109111
</ThemeProvider>
110112
<SessionIncrementor />

src/redux/migrations.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -266,4 +266,11 @@ export default {
266266
wordClickFunctionality: WordClickFunctionality.PlayAudio,
267267
},
268268
}),
269+
35: (state) => ({
270+
...state,
271+
session: {
272+
...state.session,
273+
isDonationPopupVisible: true,
274+
},
275+
}),
269276
};

src/redux/store.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ import SliceName from './types/SliceName';
4747

4848
const persistConfig = {
4949
key: 'root',
50-
version: 34,
50+
version: 35,
5151
storage,
5252
migrate: createMigrate(migrations, {
5353
debug: process.env.NEXT_PUBLIC_VERCEL_ENV === 'development',

0 commit comments

Comments
 (0)