From f29c971d6d659f09a3a4eb766b1dd5e2b161f4d6 Mon Sep 17 00:00:00 2001 From: Oksana Filipchuk Date: Wed, 11 Oct 2023 12:54:56 +0300 Subject: [PATCH 1/2] fix friend lists , header --- .../all-friends/all-friends.component.html | 2 +- .../all-friends/all-friends.component.scss | 82 ++++++------- .../friend-dashboard.component.html | 42 +++---- .../friend-dashboard.component.scss | 109 ++++++++++-------- .../friend-item/friend-item.component.html | 2 +- .../friend-item/friend-item.component.scss | 76 ++++++------ .../friend-requests.component.html | 2 +- .../friend-requests.component.scss | 42 +++---- .../recommended-friends.component.html | 72 ++++++------ .../recommended-friends.component.scss | 42 +++---- src/app/shared/header/header.component.scss | 61 +++------- src/assets/i18n/en.json | 2 +- src/assets/i18n/ua.json | 2 +- 13 files changed, 245 insertions(+), 291 deletions(-) diff --git a/src/app/main/component/user/components/profile/users-friends/friend-dashboard/all-friends/all-friends.component.html b/src/app/main/component/user/components/profile/users-friends/friend-dashboard/all-friends/all-friends.component.html index bdc16e9a67..70d79e665c 100644 --- a/src/app/main/component/user/components/profile/users-friends/friend-dashboard/all-friends/all-friends.component.html +++ b/src/app/main/component/user/components/profile/users-friends/friend-dashboard/all-friends/all-friends.component.html @@ -1,4 +1,4 @@ -
+
diff --git a/src/app/main/component/user/components/profile/users-friends/friend-dashboard/all-friends/all-friends.component.scss b/src/app/main/component/user/components/profile/users-friends/friend-dashboard/all-friends/all-friends.component.scss index 95644e674b..cf52e5eee0 100644 --- a/src/app/main/component/user/components/profile/users-friends/friend-dashboard/all-friends/all-friends.component.scss +++ b/src/app/main/component/user/components/profile/users-friends/friend-dashboard/all-friends/all-friends.component.scss @@ -1,58 +1,48 @@ -.container { +.all-friends-container { display: flex; flex-direction: column; flex-wrap: wrap; - align-items: center; - align-content: center; -} - -.friends-list, -.cards-box { - display: flex; - width: 100%; -} - -.cards-box { - justify-content: space-between; - flex-wrap: wrap; - row-gap: 14px; -} - -.user-card { - display: flex; - width: 50%; -} - -.noFriends-wraper { - display: flex; - flex-direction: column; - align-items: center; - justify-content: center; - margin-bottom: 30px; - - .noFriends { - font-family: var(--secondary-font); - font-size: 32px; - font-weight: 500; - font-style: normal; - line-height: 48px; - } -} - -@media (max-width: 1219px) { - .friends-list { - justify-content: center; - width: 100%; - } .cards-box { - flex-direction: column; - width: 100%; + display: flex; + justify-content: space-between; + flex-wrap: wrap; + row-gap: 14px; + column-gap: 32px; + + @media (max-width: 1200px) { + gap: 32px; + } + + @media (max-width: 1000px) { + justify-content: center; + } + + @media (max-width: 320px) { + gap: 20px; + } } .user-card { + @media (max-width: 1000px) { + width: 100%; + margin: 0 auto; + } + } + + .noFriends-wraper { display: flex; + flex-direction: column; + align-items: center; justify-content: center; - width: 100%; + margin-bottom: 30px; + + .noFriends { + font-family: var(--secondary-font); + font-size: 32px; + font-weight: 500; + font-style: normal; + line-height: 48px; + } } } diff --git a/src/app/main/component/user/components/profile/users-friends/friend-dashboard/friend-dashboard.component.html b/src/app/main/component/user/components/profile/users-friends/friend-dashboard/friend-dashboard.component.html index 6567149e1e..723a035512 100644 --- a/src/app/main/component/user/components/profile/users-friends/friend-dashboard/friend-dashboard.component.html +++ b/src/app/main/component/user/components/profile/users-friends/friend-dashboard/friend-dashboard.component.html @@ -1,5 +1,5 @@
-
+
arrow image @@ -8,8 +8,8 @@

{{ 'profile.friends.friends' | translate }}

- diff --git a/src/app/main/component/user/components/profile/users-friends/friend-dashboard/friend-dashboard.component.scss b/src/app/main/component/user/components/profile/users-friends/friend-dashboard/friend-dashboard.component.scss index e8aadf678c..46b27bf95d 100644 --- a/src/app/main/component/user/components/profile/users-friends/friend-dashboard/friend-dashboard.component.scss +++ b/src/app/main/component/user/components/profile/users-friends/friend-dashboard/friend-dashboard.component.scss @@ -1,11 +1,16 @@ .friend-dashboard { background-color: var(--after-primary-light-grey); min-height: calc(100vh - 164px); + + @media screen and (max-width: 576px) { + min-height: calc(100vh - 476px); + } } -.container { - padding: 28px 0 44px 0; +.friend-dashboard-container { padding-top: 28px; + padding-bottom: 44px; + overflow-y: hidden; .profile-link { text-decoration: underline; @@ -16,10 +21,24 @@ display: flex; flex-direction: row; justify-content: space-between; + flex-wrap: wrap; + column-gap: 63px; align-items: center; font-family: var(--primary-font); padding: 12px 0 44px 0; + @media screen and (max-width: 1024px) { + padding: 12px 0 41px 0; + } + + @media screen and (max-width: 576px) { + padding: 12px 0 13px 0; + } + + @media screen and (max-width: 576px) { + padding: 12px 0 21px 0; + } + h1 { font-style: normal; font-weight: 500; @@ -29,6 +48,31 @@ } } + a { + font-family: var(--primary-font); + color: var(--ubs-quaternary-dark-grey); + margin: 0 16px; + font-size: 16px; + line-height: 18.75px; + } + + .friend-tabs { + a { + white-space: nowrap; + } + + @media screen and (max-width: 1200px) { + width: 100%; + display: flex; + justify-content: space-around; + margin-top: 9px; + } + + @media screen and (max-width: 320px) { + margin-top: 17px; + } + } + .searchField { display: inline; position: relative; @@ -40,6 +84,22 @@ border-radius: 4px; padding: 8px; + @media (max-width: 1024px) { + width: 330px; + } + + @media (max-width: 768px) { + width: 219px; + } + + @media (max-width: 576px) { + width: 227px; + } + + @media (max-width: 320px) { + width: 256px; + } + &:focus { outline: none; box-shadow: 0 0 3px 0 var(--quintynary-light-grey); @@ -59,14 +119,6 @@ } } - a { - font-family: var(--primary-font); - color: var(--ubs-quaternary-dark-grey); - margin: 0 16px; - font-size: 16px; - line-height: 18.75px; - } - .button-link { line-height: 16px; margin: 0; @@ -83,43 +135,6 @@ .active { color: var(--primary-green); - padding: 5px 5px 0; text-decoration: none; } } - -@media (max-width: 992px) { - .container { - margin: auto; - - .searchField { - input { - margin-left: 30px; - max-width: 35%; - } - } - } -} - -@media (max-width: 767px) { - .friends { - display: flex; - flex-direction: column !important; - align-items: flex-start; - } - - .search-field-wrapper { - display: flex; - flex-direction: column; - align-items: center; - } - - .searchField { - position: relative; - text-align: center; - - img { - display: none; - } - } -} diff --git a/src/app/main/component/user/components/profile/users-friends/friend-dashboard/friend-item/friend-item.component.html b/src/app/main/component/user/components/profile/users-friends/friend-dashboard/friend-item/friend-item.component.html index 022f97ca19..53e66b0385 100644 --- a/src/app/main/component/user/components/profile/users-friends/friend-dashboard/friend-item/friend-item.component.html +++ b/src/app/main/component/user/components/profile/users-friends/friend-dashboard/friend-item/friend-item.component.html @@ -1,4 +1,4 @@ -
+
+
diff --git a/src/app/main/component/user/components/profile/users-friends/friend-dashboard/friend-requests/friend-requests.component.scss b/src/app/main/component/user/components/profile/users-friends/friend-dashboard/friend-requests/friend-requests.component.scss index 4b24af8019..783e10e629 100644 --- a/src/app/main/component/user/components/profile/users-friends/friend-dashboard/friend-requests/friend-requests.component.scss +++ b/src/app/main/component/user/components/profile/users-friends/friend-dashboard/friend-requests/friend-requests.component.scss @@ -1,16 +1,10 @@ @import url('https://fonts.googleapis.com/css?family=Montserrat&display=swap'); -.container { - display: flex; - flex-direction: row; - flex-wrap: wrap; - justify-content: center; - +.friend-requests-container { .requests-box { display: flex; align-items: center; justify-content: center; - width: 100%; .request-list { display: flex; @@ -18,10 +12,26 @@ flex-wrap: wrap; width: 100%; row-gap: 14px; + column-gap: 32px; + + @media (max-width: 1200px) { + row-gap: 32px; + column-gap: 32px; + } + + @media (max-width: 1000px) { + justify-content: center; + column-gap: 0; + } + + @media (max-width: 320px) { + row-gap: 20px; + } .user-card { - display: flex; - width: 50%; + @media (max-width: 767px) { + width: 100%; + } } } } @@ -41,17 +51,3 @@ line-height: 48px; } } - -@media (max-width: 1219px) { - .request-list { - flex-direction: column; - align-items: center; - width: 100%; - - .user-card { - display: flex; - justify-content: center; - width: 100%; - } - } -} diff --git a/src/app/main/component/user/components/profile/users-friends/friend-dashboard/recommended-friends/recommended-friends.component.html b/src/app/main/component/user/components/profile/users-friends/friend-dashboard/recommended-friends/recommended-friends.component.html index a3e6ff6614..460b5b8d72 100644 --- a/src/app/main/component/user/components/profile/users-friends/friend-dashboard/recommended-friends/recommended-friends.component.html +++ b/src/app/main/component/user/components/profile/users-friends/friend-dashboard/recommended-friends/recommended-friends.component.html @@ -1,48 +1,46 @@ -
-
-
-
-
-
- - -
+