From f53760faa673d74a8cdf2673d71a5d1f98e8f7a6 Mon Sep 17 00:00:00 2001 From: MaryWylde Date: Thu, 1 Jan 2026 14:32:07 +0400 Subject: [PATCH] chore: change text of Christmas popup --- .../ChristmasPopup/ChristmasPopup.module.scss | 4 +++ .../ChristmasPopup/ChristmasPopup.tsx | 36 +++++++++---------- 2 files changed, 21 insertions(+), 19 deletions(-) diff --git a/src/components/ChristmasPopup/ChristmasPopup.module.scss b/src/components/ChristmasPopup/ChristmasPopup.module.scss index 3add97e..ea2da5e 100644 --- a/src/components/ChristmasPopup/ChristmasPopup.module.scss +++ b/src/components/ChristmasPopup/ChristmasPopup.module.scss @@ -16,6 +16,10 @@ text-align: center; line-height: 28px; width: 100%; + + p { + padding: 0 25px; + } } .thankYouTxt { diff --git a/src/components/ChristmasPopup/ChristmasPopup.tsx b/src/components/ChristmasPopup/ChristmasPopup.tsx index 71dd010..c22cd77 100644 --- a/src/components/ChristmasPopup/ChristmasPopup.tsx +++ b/src/components/ChristmasPopup/ChristmasPopup.tsx @@ -20,42 +20,39 @@ const ChristmasPopup: FC = ({ open }) => { const [close, setClose] = useState(false); const title = - locale === 'en' - ? 'MERRY CHRISTMAS AND HAPPY NEW YEAR' - : 'С Новым Годом и Рождеством!'; + locale === 'ru' + ? 'С Новым Годом и Рождеством!' + : 'MERRY CHRISTMAS AND HAPPY NEW YEAR'; + const happyNewYearTxt = - locale === 'en' - ? '🎄 Merry Christmas and Happy New Year! 🎄' - : '🎄 С Новым Годом и Рождеством! 🎄'; + locale === 'ru' + ? '🎄 С Новым Годом и Рождеством! 🎄' + : '🎄 Merry Christmas and Happy New Year! 🎄'; + const descriptionEn = (

- {' '} - Thousands of users from 148 countries! 🎉
100,000+ sessions! 🎉🎉{' '} -
3 upcoming projects in development 🎉🎉🎉 + Over 200,000 visitors from 183 (!) countries have spent 140 DAYS with + us🎉🎉🎉

); const descriptionRu = (

- Тысячи пользователей из 148 стран! 🎉
Более 100,000 сессий! 🎉🎉{' '} -
3 новых проекта-дополнения в разработке! 🎉🎉🎉 + 200,000 пользователей из 183 стран провели на нашем проекте 140 ДНЕЙ! + 🎉🎉🎉

); - const description = locale === 'en' ? descriptionEn : descriptionRu; + const description = locale === 'ru' ? descriptionRu : descriptionEn; const thankYouTxtEn = (

- {' '} - Thank you for staying with us, with open-source.
Be Kind. Do - Good.{' '} + We love you all. We'll build more epic stuff just for you!

); const thankYouTxtRu = (

- {' '} - Спасибо что помогаете нам развивать open-source.
Be Kind. Do - Good.{' '} + Мы любим вас. Мы продолжим релизить классные штуки.

); - const thankYouTxt = locale === 'en' ? thankYouTxtEn : thankYouTxtRu; + const thankYouTxt = locale === 'ru' ? thankYouTxtRu : thankYouTxtEn; const closePopUp = () => { Cookies.set('helpToHelpModal', 'seen', { expires: 14 }); sessionStorage.setItem('seenHelpToHelp', String(true)); @@ -71,6 +68,7 @@ const ChristmasPopup: FC = ({ open }) => { setClose(!reopeningPopUp); } }, []); + return ( open && (