diff --git a/addons/default/visiosoft/profile-module/resources/assets/css/profile.css b/addons/default/visiosoft/profile-module/resources/assets/css/profile.css deleted file mode 100644 index 9ccc05938..000000000 --- a/addons/default/visiosoft/profile-module/resources/assets/css/profile.css +++ /dev/null @@ -1,5 +0,0 @@ -.profile-section .nav-link.active { - background-color: #343a40 !important; - border-color: #343a40 #343a40 #343a40; - color: white!important; -} \ No newline at end of file diff --git a/addons/default/visiosoft/profile-module/resources/assets/css/profile.scss b/addons/default/visiosoft/profile-module/resources/assets/css/profile.scss new file mode 100644 index 000000000..cf8f444de --- /dev/null +++ b/addons/default/visiosoft/profile-module/resources/assets/css/profile.scss @@ -0,0 +1,92 @@ +.profile-section .nav-link.active { + background-color: #343a40 !important; + border-color: #343a40 #343a40 #343a40; + color: white!important; +} + +.profile-nav-toggler { + color: rgba(0,0,0,.5); + border: 1px solid rgba(0,0,0,.1); + padding: .25rem .75rem; + font-size: 1.25rem; + line-height: 1; + background-color: transparent; + border-radius: .25rem; +} + +.profile-navigation { + padding: 1.5rem .25rem; + height: 100%; + position: fixed; + top: 0; + left: 0; + overflow-y: auto; + z-index: 9999; + -webkit-transform: translateX(-100%); + -ms-transform: translateX(-100%); + transform: translateX(-100%); + -webkit-transition: 300ms ease; + transition: 300ms ease; + @media only screen and (min-width: 768px) { + padding: 1.5rem 2.25rem; + height: initial; + position: initial; + -webkit-transform: initial; + -ms-transform: initial; + transform: initial; + } + + &.reveal { + -webkit-transform: translateX(0%); + -ms-transform: translateX(0%); + transform: translateX(0%); + -webkit-transition: 300ms ease; + transition: 300ms ease; + } + + a { + display: flex; + align-items: center; + margin-bottom: 1.25rem; + + &.active, &:hover { + cursor: pointer; + + p { + color: #707070; + font-weight: 500; + } + } + + &:first-child { + p { + font-weight: 500; + color: #707070; + } + } + + img { + margin-right: .75rem; + width: 1.5rem; + height: 1.5rem; + } + + p { + color: #A1A1A1; + margin-bottom: 0; + } + } +} + +.overlay { + position: fixed; + display: none; + top: 0; + left: 0; + right: 0; + bottom: 0; + cursor: pointer; + background: #000; + opacity: .2; + z-index: 1; +} \ No newline at end of file diff --git a/addons/default/visiosoft/profile-module/resources/assets/js/profile-nav.js b/addons/default/visiosoft/profile-module/resources/assets/js/profile-nav.js new file mode 100644 index 000000000..b9adb169d --- /dev/null +++ b/addons/default/visiosoft/profile-module/resources/assets/js/profile-nav.js @@ -0,0 +1,8 @@ +$('#navbarSideButton').on('click', function() { + $('#navbarSide').addClass('reveal'); + $('.overlay').show(); +}); +$('.overlay').on('click', function(){ + $('#navbarSide').removeClass('reveal'); + $('.overlay').hide(); +}); diff --git a/addons/default/visiosoft/profile-module/resources/images/interface.svg b/addons/default/visiosoft/profile-module/resources/images/interface.svg new file mode 100644 index 000000000..6b1df5999 --- /dev/null +++ b/addons/default/visiosoft/profile-module/resources/images/interface.svg @@ -0,0 +1,6 @@ + + + + + + diff --git a/addons/default/visiosoft/profile-module/resources/images/location.svg b/addons/default/visiosoft/profile-module/resources/images/location.svg new file mode 100644 index 000000000..74fcde598 --- /dev/null +++ b/addons/default/visiosoft/profile-module/resources/images/location.svg @@ -0,0 +1,2 @@ + + diff --git a/addons/default/visiosoft/profile-module/resources/images/social-media.svg b/addons/default/visiosoft/profile-module/resources/images/social-media.svg new file mode 100644 index 000000000..e948e1bfc --- /dev/null +++ b/addons/default/visiosoft/profile-module/resources/images/social-media.svg @@ -0,0 +1,2 @@ + + diff --git a/addons/default/visiosoft/profile-module/resources/images/website.svg b/addons/default/visiosoft/profile-module/resources/images/website.svg new file mode 100644 index 000000000..babe27185 --- /dev/null +++ b/addons/default/visiosoft/profile-module/resources/images/website.svg @@ -0,0 +1,2 @@ + + diff --git a/addons/default/visiosoft/profile-module/resources/views/address/create.twig b/addons/default/visiosoft/profile-module/resources/views/address/create.twig index 8713e5d86..587478940 100644 --- a/addons/default/visiosoft/profile-module/resources/views/address/create.twig +++ b/addons/default/visiosoft/profile-module/resources/views/address/create.twig @@ -1,8 +1,15 @@ {% extends "theme::layouts/default" %} + +{% block styles %} + {{ asset_style("visiosoft.module.profile::assets/css/profile.scss") }} +{% endblock %} + {% block content %}
+ {% include "visiosoft.module.profile::profile/partials/navigation" %} -
+ +

{{ trans('visiosoft.module.profile::field.create_address.name') }}

diff --git a/addons/default/visiosoft/profile-module/resources/views/address/edit.twig b/addons/default/visiosoft/profile-module/resources/views/address/edit.twig index c14ce8890..f0bd273a9 100644 --- a/addons/default/visiosoft/profile-module/resources/views/address/edit.twig +++ b/addons/default/visiosoft/profile-module/resources/views/address/edit.twig @@ -1,9 +1,15 @@ {% extends "theme::layouts/default" %} -{% block content %} +{% block styles %} + {{ asset_style("visiosoft.module.profile::assets/css/profile.scss") }} +{% endblock %} + +{% block content %}
+ {% include "visiosoft.module.profile::profile/partials/navigation" %} -
+ +

{{ trans('visiosoft.module.profile::field.edit_address.name') }}

diff --git a/addons/default/visiosoft/profile-module/resources/views/address/list.twig b/addons/default/visiosoft/profile-module/resources/views/address/list.twig index 0cb2954fc..2e5b212b6 100644 --- a/addons/default/visiosoft/profile-module/resources/views/address/list.twig +++ b/addons/default/visiosoft/profile-module/resources/views/address/list.twig @@ -1,8 +1,15 @@ {% extends "theme::layouts/default" %} + +{% block styles %} + {{ asset_style("visiosoft.module.profile::assets/css/profile.scss") }} +{% endblock %} + {% block content %}
+ {% include "visiosoft.module.profile::profile/partials/navigation" %} -
+ +
diff --git a/addons/default/visiosoft/profile-module/resources/views/profile/ads.twig b/addons/default/visiosoft/profile-module/resources/views/profile/ads.twig index dc8c7b70f..94a39f68b 100644 --- a/addons/default/visiosoft/profile-module/resources/views/profile/ads.twig +++ b/addons/default/visiosoft/profile-module/resources/views/profile/ads.twig @@ -1,8 +1,15 @@ {% extends "theme::layouts/default" %} + +{% block styles %} + {{ asset_style("visiosoft.module.profile::assets/css/profile.scss") }} +{% endblock %} + {% block content %}
+ {% include "visiosoft.module.profile::profile/partials/navigation" %} -
+ +

{{ trans('visiosoft.module.advs::field.my_ads.name') }}

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 d2b384a0d..74fef0959 100644 --- a/addons/default/visiosoft/profile-module/resources/views/profile/detail.twig +++ b/addons/default/visiosoft/profile-module/resources/views/profile/detail.twig @@ -1,4 +1,9 @@ {% extends "theme::layouts/default" %} + +{% block styles %} + {{ asset_style("visiosoft.module.profile::assets/css/profile.scss") }} +{% endblock %} + {% block content %} {% set profile_photo = user.file %} @@ -8,9 +13,11 @@ {% set profile_photo = img('visiosoft.module.profile::images/profile-default.png').url %} {% endif %} -
+
+ {% include "visiosoft.module.profile::profile/partials/navigation" %} -
+ +
@@ -175,13 +182,10 @@ {{ addBlock('profile/detail/content')|raw }}
-
- -
+
{{ asset_add("scripts.js", "visiosoft.module.profile::assets/js/profile.js") }} - {{ asset_add("styles.css", "visiosoft.module.profile::assets/css/profile.css") }} {% endblock %} \ No newline at end of file diff --git a/addons/default/visiosoft/profile-module/resources/views/profile/partials/navigation.twig b/addons/default/visiosoft/profile-module/resources/views/profile/partials/navigation.twig index 5477bfc5f..51f1bee68 100644 --- a/addons/default/visiosoft/profile-module/resources/views/profile/partials/navigation.twig +++ b/addons/default/visiosoft/profile-module/resources/views/profile/partials/navigation.twig @@ -1,14 +1,33 @@ - \ No newline at end of file + {{ addBlock('profile/navigation')|raw }} +
+ +
+ +{{ asset_add("scripts.js", "visiosoft.module.profile::assets/js/profile-nav.js") }} \ No newline at end of file