-
-
-
-
- Увы, этот адрес уже занят, выберите другой
-
+
+
+
+
+
+
+
{t('Profile settings')}
+
{t('Here you can customize your profile the way you want.')}
+
-
-
Представление
-
-
-
-
-
-
О себе
-
-
-
-
-
-
Чем могу помочь/навыки
-
-
-
-
-
Откуда
-
-
-
-
-
-
Дата рождения
-
-
-
-
-
-
-
-
-
-
-
-
+
+
+
+
{JSON.stringify(form, null, 2)}
-
+
)
}
diff --git a/src/components/Pages/profile/ProfileSubscriptionsPage.tsx b/src/components/Pages/profile/ProfileSubscriptionsPage.tsx
new file mode 100644
index 00000000..d4b65eb9
--- /dev/null
+++ b/src/components/Pages/profile/ProfileSubscriptionsPage.tsx
@@ -0,0 +1,137 @@
+import { PageWrap } from '../../_shared/PageWrap'
+import type { PageProps } from '../../types'
+import styles from './Settings.module.scss'
+import stylesSettings from '../../../styles/FeedSettings.module.scss'
+import { clsx } from 'clsx'
+import ProfileSettingsNavigation from '../../Discours/ProfileSettingsNavigation'
+import { SearchField } from '../../_shared/SearchField'
+
+export const ProfileSubscriptionsPage = (props: PageProps) => {
+ return (
+
+
+
+
+
+
+
+
Подписки
+
Здесь можно управлять всеми своими подписками на сайте.
+
+
+
+
+
+
+
+ )
+}
+
+// for lazy loading
+export default ProfileSubscriptionsPage
diff --git a/src/components/Pages/profile/Settings.module.scss b/src/components/Pages/profile/Settings.module.scss
index 70b5246d..dca79dc8 100644
--- a/src/components/Pages/profile/Settings.module.scss
+++ b/src/components/Pages/profile/Settings.module.scss
@@ -1,7 +1,17 @@
-h4 {
+h4,
+h5 {
font-weight: 500;
}
+h4 {
+ @include font-size(2.4rem);
+}
+
+h5 {
+ @include font-size(1.7rem);
+ margin: 0 0 0.8rem;
+}
+
.avatarContainer {
border-radius: 100%;
overflow: hidden;
@@ -103,3 +113,77 @@ h4 {
.discoursNameField {
flex: 1;
}
+
+.leftNavigation {
+ top: 9rem !important;
+}
+
+.passwordToggleControl {
+ position: absolute;
+ right: 1em;
+ transform: translateY(-50%);
+ top: 50%;
+}
+
+.passwordInput {
+ padding-right: 3em !important;
+}
+
+.searchContainer {
+ margin-top: 2.4rem;
+}
+
+.searchField {
+ display: block;
+
+ label:first-child {
+ opacity: 0.5;
+ position: absolute;
+ right: 1em;
+ transform: translateY(-50%);
+ top: 50%;
+ }
+}
+
+.topicsList {
+ label {
+ @include font-size(1.7rem);
+ }
+}
+
+.topicsListItem {
+ padding-right: 1.5rem !important;
+}
+
+.socialButton {
+ color: #000;
+ display: flex;
+ padding: 0.8em 1em;
+ transition: background-color 0.3s, color 0.3s;
+
+ &:hover {
+ background: #000;
+ color: #fff;
+ }
+
+ img {
+ vertical-align: middle;
+ }
+
+ .icon {
+ margin-right: 1em;
+ }
+}
+
+.socialButtonApple {
+ &:hover {
+ .icon {
+ filter: invert(1);
+ }
+ }
+
+ .icon {
+ filter: invert(0);
+ transition: filter 0.3s;
+ }
+}
diff --git a/src/components/Root.tsx b/src/components/Root.tsx
index 75a470f5..4bb38cd2 100644
--- a/src/components/Root.tsx
+++ b/src/components/Root.tsx
@@ -33,6 +33,8 @@ import { InboxPage } from './Pages/InboxPage'
import { LayoutShoutsPage } from './Pages/LayoutShoutsPage'
import { SessionProvider } from '../context/session'
import { ProfileSettingsPage } from './Pages/profile/ProfileSettingsPage'
+import { ProfileSecurityPage } from './Pages/profile/ProfileSecurityPage'
+import { ProfileSubscriptionsPage } from './Pages/profile/ProfileSubscriptionsPage'
// TODO: lazy load
// const SomePage = lazy(() => import('./Pages/SomePage'))
@@ -60,7 +62,9 @@ const pagesMap: Record
> = {
principles: PrinciplesPage,
termsOfUse: TermsOfUsePage,
thanks: ThanksPage,
- profileSettings: ProfileSettingsPage
+ profileSettings: ProfileSettingsPage,
+ profileSecurity: ProfileSecurityPage,
+ profileSubscriptions: ProfileSubscriptionsPage
}
export const Root = (props: PageProps) => {
diff --git a/src/components/Views/FeedSettings.tsx b/src/components/Views/FeedSettings.tsx
index b6d70ad0..3175933f 100644
--- a/src/components/Views/FeedSettings.tsx
+++ b/src/components/Views/FeedSettings.tsx
@@ -1,4 +1,4 @@
-import '../../styles/FeedSettings.scss'
+import styles from '../../styles/FeedSettings.module.scss'
import { t } from '../../utils/intl'
// type FeedSettingsSearchParams = {
@@ -27,20 +27,20 @@ export const FeedSettingsView = (_props) => {
-
-
+
+
Общее
-
-