Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
T
thecybernanny-webapp
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
asranov0003
thecybernanny-webapp
Commits
dddd8417
Commit
dddd8417
authored
Jul 30, 2025
by
asranov0003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: initialise subscription page
parent
caa76582
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
87 additions
and
2 deletions
+87
-2
en.json
src/locales/en/en.json
+6
-0
ru.json
src/locales/ru/ru.json
+6
-0
Subscription.css
src/pages/Subscription/Subscription.css
+2
-1
Subscription.tsx
src/pages/Subscription/Subscription.tsx
+73
-1
No files found.
src/locales/en/en.json
View file @
dddd8417
...
...
@@ -174,6 +174,12 @@
"childPhoneDesc2"
:
"• Log in with your account"
,
"childPhoneDesc3"
:
"• Choose Child mode"
},
"subscription"
:
{
"selectTariff"
:
"Select a tariff"
,
"selectPaymentMethod"
:
"Select a payment method"
,
"cancellPaymentTitle"
:
"Payment can be cancelled within 24 hours"
,
"pay"
:
"Pay for a subscription"
},
"button"
:
{
"login"
:
"Login"
,
"register"
:
"Register"
,
...
...
src/locales/ru/ru.json
View file @
dddd8417
...
...
@@ -174,6 +174,12 @@
"childPhoneDesc2"
:
"• Войдите под Вашим аккаунтом"
,
"childPhoneDesc3"
:
"• Выберите режим Ребенок"
},
"subscription"
:
{
"selectTariff"
:
"Выберите тариф"
,
"selectPaymentMethod"
:
"Выберите способ оплаты"
,
"cancellPaymentTitle"
:
"Платеж можно отменить в течении 24 часов"
,
"pay"
:
"Оплатить подписку"
},
"button"
:
{
"login"
:
"Войти"
,
"register"
:
"Зарегистрироваться"
,
...
...
src/pages/Subscription/Subscription.css
View file @
dddd8417
.subscription
{
padding
:
0
1rem
;
padding
-top
:
60px
;
}
\ No newline at end of file
src/pages/Subscription/Subscription.tsx
View file @
dddd8417
import
React
from
"react"
;
import
"./Subscription.css"
;
import
CButton
from
"../../components/CButton"
;
import
{
useTranslation
}
from
"react-i18next"
;
const
tariffs
=
[
{
id
:
1
,
title
:
"Yearly"
,
amount
:
25
,
},
{
id
:
2
,
title
:
"3-Months"
,
amount
:
15
,
},
{
id
:
3
,
title
:
"Monthly"
,
amount
:
10
,
},
];
const
paymentMethods
=
[
{
id
:
1
,
paymethod_name
:
"Карта РФ: Мир, Visa, Mastercard"
,
},
{
id
:
2
,
paymethod_name
:
"СБП (Все банки РФ)"
,
},
{
id
:
3
,
paymethod_name
:
"МИР"
,
},
];
const
Subscription
:
React
.
FC
=
()
=>
{
return
<
div
className=
"subscription"
>
Subscription
</
div
>;
const
{
t
}
=
useTranslation
();
return
(
<
div
className=
"subscription wrapper"
>
<
div
className=
"subscription__tariffs"
>
<
h3
className=
"subscription__tariffs__title"
>
{
t
(
"subscription.selectTariff"
)
}
</
h3
>
<
div
className=
"subscription__tariffs__list"
>
{
tariffs
.
map
((
tariff
)
=>
(
<
div
key=
{
tariff
.
id
}
className=
"subscription__tariff"
>
<
h4
className=
"subscription__tariff__title"
>
{
tariff
.
title
}
</
h4
>
<
p
className=
"subscription__tariff__amount"
>
$
{
tariff
.
amount
}
</
p
>
</
div
>
))
}
</
div
>
</
div
>
<
div
className=
"subscription__payments"
>
<
h3
className=
"subscription__payments__title"
>
{
t
(
"subscription.selectPaymentMethod"
)
}
</
h3
>
<
div
className=
"subscription__payments__list"
>
{
paymentMethods
.
map
((
method
)
=>
(
<
div
key=
{
method
.
id
}
className=
"subscription__payment"
>
<
p
className=
"subscription__payment__name"
>
{
method
.
paymethod_name
}
</
p
>
</
div
>
))
}
</
div
>
</
div
>
<
CButton
title=
{
t
(
"subscription.pay"
)
}
/>
</
div
>
);
};
export
default
Subscription
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment