From 90062f2659fc2fadc9abaa61345968c26687de6f Mon Sep 17 00:00:00 2001 From: Muammer Top Date: Tue, 29 Sep 2020 12:59:42 +0300 Subject: [PATCH 1/6] =?UTF-8?q?#1935=20user=20profile=20design=20pyro'ya?= =?UTF-8?q?=20aktar=C4=B1lmas=C4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../resources/assets/css/profile.scss | 122 +++++++++- .../resources/images/detail.svg | 3 + .../resources/images/password.svg | 3 + .../profile-module/resources/images/user.svg | 5 + .../resources/views/profile/detail.twig | 213 +++++++++--------- .../resources/views/profile/index.twig | 1 + 6 files changed, 241 insertions(+), 106 deletions(-) create mode 100644 addons/default/visiosoft/profile-module/resources/images/detail.svg create mode 100644 addons/default/visiosoft/profile-module/resources/images/password.svg create mode 100644 addons/default/visiosoft/profile-module/resources/images/user.svg diff --git a/addons/default/visiosoft/profile-module/resources/assets/css/profile.scss b/addons/default/visiosoft/profile-module/resources/assets/css/profile.scss index 9ccc05938..ab48125c9 100644 --- a/addons/default/visiosoft/profile-module/resources/assets/css/profile.scss +++ b/addons/default/visiosoft/profile-module/resources/assets/css/profile.scss @@ -1,5 +1,119 @@ -.profile-section .nav-link.active { - background-color: #343a40 !important; - border-color: #343a40 #343a40 #343a40; - color: white!important; +.profile-section { + .nav-tabs { + border-bottom: 1px solid rgba(#0a001f, .3); + padding-bottom: 10px; + } + + & .nav-link { + border: none; + border-radius: 0; + font-size: 16px; + color: #BCBDC3; + + &:not(:last-child) { + border-right: 1px solid rgba(#0a001f, .3); + } + + img{ + opacity: .5; + width: 15px; + } + } + + & .nav-link.active { + font-size: 17px; + font-weight: bold; + color: #505050; + + img{ + opacity: 1; + } + } +} + +.tab-content { + color: #707070; + + & #nav-profile { + + & .username { + font-size: 19px; + font-weight: 600; + } + + & .last-login { + font-weight: 400; + } + + & img { + width: 165px; + height: 130px; + object-fit: cover; + border-radius: 20px; + } + + .profile--form--area { + display: flex; + justify-content: space-between; + + .form-group { + width: 100%; + + &:not(:last-child) { + margin-right: 10px; + } + + & input { + border-radius: 4px; + font-size: 13px; + border: 1px solid #E5E5E5; + } + } + } + + .account--disable--content { + width: 80%; + height: 58px; + background-color: #f3f5f6; + border-radius: 20px; + margin-top: 50px; + padding: 10px; + font-size: .7em; + + button { + font-size: 14px; + height: 34px; + } + } + } +} + +@media (max-width: 992px) { + .tab-content { + & #nav-profile { + + .profile--desc { + flex-direction: column; + text-align: center; + } + + & img { + width: 15rem; + height: auto; + margin: auto; + } + + .profile--form--area { + display: block; + + & input { + width: 100%; + } + } + + button { + width: 100%; + } + } + } } \ No newline at end of file diff --git a/addons/default/visiosoft/profile-module/resources/images/detail.svg b/addons/default/visiosoft/profile-module/resources/images/detail.svg new file mode 100644 index 000000000..8e883c42d --- /dev/null +++ b/addons/default/visiosoft/profile-module/resources/images/detail.svg @@ -0,0 +1,3 @@ + + + diff --git a/addons/default/visiosoft/profile-module/resources/images/password.svg b/addons/default/visiosoft/profile-module/resources/images/password.svg new file mode 100644 index 000000000..042a4f017 --- /dev/null +++ b/addons/default/visiosoft/profile-module/resources/images/password.svg @@ -0,0 +1,3 @@ + + + diff --git a/addons/default/visiosoft/profile-module/resources/images/user.svg b/addons/default/visiosoft/profile-module/resources/images/user.svg new file mode 100644 index 000000000..3937e6baf --- /dev/null +++ b/addons/default/visiosoft/profile-module/resources/images/user.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/addons/default/visiosoft/profile-module/resources/views/profile/detail.twig b/addons/default/visiosoft/profile-module/resources/views/profile/detail.twig index 12f1e5e3d..5ef1dfb2a 100644 --- a/addons/default/visiosoft/profile-module/resources/views/profile/detail.twig +++ b/addons/default/visiosoft/profile-module/resources/views/profile/detail.twig @@ -12,28 +12,6 @@
- -
-
-
-
- {% if setting_value('visiosoft.module.profile::upload_avatar') %} -
- -
- {% endif %} -
-

{{ user.name }}

- {{ auth_user().last_login_at|date("d/m/Y H:i:s") }} -
-
-
-
-
- - -