From 40fcc61a1561cc154fe683994b265e41c51a97c9 Mon Sep 17 00:00:00 2001 From: Awakich Date: Thu, 2 Apr 2026 17:38:13 +0300 Subject: [PATCH 1/3] add mobile version of courses & programs list pages --- .eslintrc.json | 5 +- .../src/app/office/chat/chat.component.scss | 2 + .../app/office/courses/courses.component.html | 2 +- .../app/office/courses/courses.component.scss | 35 +++++++- .../office/courses/list/list.component.scss | 10 ++- .../office/features/nav/nav.component.html | 87 ++++++++++++------- .../office/features/nav/nav.component.scss | 53 ++--------- .../app/office/features/nav/nav.component.ts | 17 +--- .../app/office/members/members.component.scss | 2 + .../src/app/office/office.component.html | 30 ++++--- .../src/app/office/office.component.scss | 36 ++++++-- .../office/program/main/main.component.scss | 22 ++++- .../app/office/program/main/main.component.ts | 3 - .../app/office/program/program.component.scss | 21 ++++- .../program-card/program-card.component.html | 4 +- .../program-card/program-card.component.scss | 15 +++- .../office/projects/projects.component.scss | 2 + .../office/vacancies/vacancies.component.scss | 2 + .../src/assets/icons/svg/chats.svg | 2 +- .../src/assets/icons/svg/menu-burger.svg | 2 +- .../src/assets/icons/svg/menu-cross.svg | 2 +- .../assets/icons/symbol/svg/sprite.css.svg | 2 +- .../profile-control-panel.component.scss | 37 ++++++-- .../profile-info/profile-info.component.html | 9 +- .../profile-info/profile-info.component.ts | 2 + .../layout/sidebar/sidebar.component.scss | 2 +- .../primitives/back/back.component.scss | 1 + 27 files changed, 256 insertions(+), 151 deletions(-) diff --git a/.eslintrc.json b/.eslintrc.json index 99e8d33e1..0f241fd0b 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -14,6 +14,9 @@ "rules": { "no-useless-constructor": "off", "@typescript-eslint/no-empty-function": "off", - "dot-notation": "off" + "dot-notation": "off", + "@typescript-eslint/no-explicit-any": "warn", + "@typescript-eslint/no-unused-vars": "warn", + "@typescript-eslint/no-unused-expressions": "warn" } } diff --git a/projects/social_platform/src/app/office/chat/chat.component.scss b/projects/social_platform/src/app/office/chat/chat.component.scss index 311c45cec..e30034d83 100644 --- a/projects/social_platform/src/app/office/chat/chat.component.scss +++ b/projects/social_platform/src/app/office/chat/chat.component.scss @@ -1,4 +1,6 @@ .page { + margin-top: 30px; + &__bar { margin-bottom: 20px; } diff --git a/projects/social_platform/src/app/office/courses/courses.component.html b/projects/social_platform/src/app/office/courses/courses.component.html index d8faa75eb..f23854695 100644 --- a/projects/social_platform/src/app/office/courses/courses.component.html +++ b/projects/social_platform/src/app/office/courses/courses.component.html @@ -4,7 +4,7 @@
- diff --git a/projects/social_platform/src/app/office/courses/courses.component.scss b/projects/social_platform/src/app/office/courses/courses.component.scss index 53c48f8bc..bfba9dc14 100644 --- a/projects/social_platform/src/app/office/courses/courses.component.scss +++ b/projects/social_platform/src/app/office/courses/courses.component.scss @@ -2,9 +2,42 @@ @use "styles/responsive"; .profile { + display: flex; + flex-direction: column; + align-items: center; + padding-bottom: 100px; + margin-top: 30px; + + @include responsive.apply-desktop { + display: block; + } + &__info { display: grid; - grid-template-columns: 8fr 2fr; column-gap: 20px; + + @include responsive.apply-desktop { + grid-template-columns: 8fr 2fr; + } + } + + &__search { + margin-bottom: 24px; + } + + app-back { + display: none; + + @include responsive.apply-desktop { + display: block; + } + } + + app-soon-card { + display: none; + + @include responsive.apply-desktop { + display: block; + } } } diff --git a/projects/social_platform/src/app/office/courses/list/list.component.scss b/projects/social_platform/src/app/office/courses/list/list.component.scss index f7601a355..255072a90 100644 --- a/projects/social_platform/src/app/office/courses/list/list.component.scss +++ b/projects/social_platform/src/app/office/courses/list/list.component.scss @@ -1,9 +1,13 @@ -.courses { - margin-top: 20px; +@use "styles/responsive"; +.courses { &__list { display: grid; - grid-template-columns: 4fr 4fr; + grid-template-columns: 1fr; grid-gap: 20px; + + @include responsive.apply-desktop { + grid-template-columns: 4fr 4fr; + } } } diff --git a/projects/social_platform/src/app/office/features/nav/nav.component.html b/projects/social_platform/src/app/office/features/nav/nav.component.html index cdf606ec4..7ded39491 100644 --- a/projects/social_platform/src/app/office/features/nav/nav.component.html +++ b/projects/social_platform/src/app/office/features/nav/nav.component.html @@ -2,13 +2,14 @@