Skip to content

Commit d683aa2

Browse files
authored
Merge pull request #33 from keepsimpleio/chore/christmas-popup-text
chore: change text of Christmas popup
2 parents 93d442d + f53760f commit d683aa2

File tree

2 files changed

+21
-19
lines changed

2 files changed

+21
-19
lines changed

src/components/ChristmasPopup/ChristmasPopup.module.scss

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@
1616
text-align: center;
1717
line-height: 28px;
1818
width: 100%;
19+
20+
p {
21+
padding: 0 25px;
22+
}
1923
}
2024

2125
.thankYouTxt {

src/components/ChristmasPopup/ChristmasPopup.tsx

Lines changed: 17 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -20,42 +20,39 @@ const ChristmasPopup: FC<ChristmasPopupProps> = ({ open }) => {
2020

2121
const [close, setClose] = useState(false);
2222
const title =
23-
locale === 'en'
24-
? 'MERRY CHRISTMAS AND HAPPY NEW YEAR'
25-
: 'С Новым Годом и Рождеством!';
23+
locale === 'ru'
24+
? 'С Новым Годом и Рождеством!'
25+
: 'MERRY CHRISTMAS AND HAPPY NEW YEAR';
26+
2627
const happyNewYearTxt =
27-
locale === 'en'
28-
? '🎄 Merry Christmas and Happy New Year! 🎄'
29-
: '🎄 С Новым Годом и Рождеством! 🎄';
28+
locale === 'ru'
29+
? '🎄 С Новым Годом и Рождеством! 🎄'
30+
: '🎄 Merry Christmas and Happy New Year! 🎄';
31+
3032
const descriptionEn = (
3133
<p>
32-
{' '}
33-
Thousands of users from 148 countries! 🎉 <br /> 100,000+ sessions! 🎉🎉{' '}
34-
<br /> 3 upcoming projects in development 🎉🎉🎉
34+
Over 200,000 visitors from 183 (!) countries have spent 140 DAYS with
35+
us🎉🎉🎉
3536
</p>
3637
);
3738
const descriptionRu = (
3839
<p>
39-
Тысячи пользователей из 148 стран! 🎉 <br /> Более 100,000 сессий! 🎉🎉{' '}
40-
<br /> 3 новых проекта-дополнения в разработке! 🎉🎉🎉
40+
200,000 пользователей из 183 стран провели на нашем проекте 140 ДНЕЙ!
41+
🎉🎉🎉
4142
</p>
4243
);
43-
const description = locale === 'en' ? descriptionEn : descriptionRu;
44+
const description = locale === 'ru' ? descriptionRu : descriptionEn;
4445
const thankYouTxtEn = (
4546
<p className={styles.thankYouTxt}>
46-
{' '}
47-
Thank you for staying with us, with open-source. <br /> Be Kind. Do
48-
Good.{' '}
47+
We love you all. We&#39;ll build more epic stuff just for you!
4948
</p>
5049
);
5150
const thankYouTxtRu = (
5251
<p className={styles.thankYouTxt}>
53-
{' '}
54-
Спасибо что помогаете нам развивать open-source. <br /> Be Kind. Do
55-
Good.{' '}
52+
Мы любим вас. Мы продолжим релизить классные штуки.
5653
</p>
5754
);
58-
const thankYouTxt = locale === 'en' ? thankYouTxtEn : thankYouTxtRu;
55+
const thankYouTxt = locale === 'ru' ? thankYouTxtRu : thankYouTxtEn;
5956
const closePopUp = () => {
6057
Cookies.set('helpToHelpModal', 'seen', { expires: 14 });
6158
sessionStorage.setItem('seenHelpToHelp', String(true));
@@ -71,6 +68,7 @@ const ChristmasPopup: FC<ChristmasPopupProps> = ({ open }) => {
7168
setClose(!reopeningPopUp);
7269
}
7370
}, []);
71+
7472
return (
7573
open && (
7674
<Modal

0 commit comments

Comments
 (0)