diff --git a/addons/default/visiosoft/advs-module/resources/css/step.scss b/addons/default/visiosoft/advs-module/resources/css/step.scss new file mode 100644 index 000000000..b898317a4 --- /dev/null +++ b/addons/default/visiosoft/advs-module/resources/css/step.scss @@ -0,0 +1,86 @@ +#stepProgressBar { + counter-reset: step; + + .step { + text-align: center; + min-width: 0; + + &.current { + &::after { + background: linear-gradient(to right, #209579 50%, #dfdfdf 50%); + } + + .bullet { + color: #209579; + background-color: #fff; + border: .2rem solid #209579; + @media only screen and (min-width: 768px) { + border: .3rem solid #209579; + } + } + + .step-text { + font-weight: 500; + } + + & ~ * { + &::after { + background-color: #dfdfdf; + } + + .bullet { + color: #999; + background-color: #DFDFDF; + } + } + } + + &::after { + content: ''; + position: absolute; + height: .16rem; + top: 0.96rem; + left: 0; + z-index: -1; + width: 100%; + background-color: #209579; + @media only screen and (min-width: 768px) { + height: .3rem; + top: 1.4rem; + } + } + + .bullet { + height: 2rem; + width: 2rem; + border-radius: 100%; + color: #fff; + display: inline-block; + position: relative; + line-height: 20px; + background-color: #209579; + @media only screen and (min-width: 768px) { + height: 3rem; + width: 3rem; + } + + &::before { + content: counter(step); + counter-increment: step; + font-size: 14px; + font-weight: 600; + @media only screen and (min-width: 768px) { + font-size: 20px; + } + } + } + + .step-text { + color: #999; + font-size: 12px; + @media only screen and (min-width: 768px) { + font-size: initial; + } + } + } +} diff --git a/addons/default/visiosoft/advs-module/resources/lang/en/field.php b/addons/default/visiosoft/advs-module/resources/lang/en/field.php index 6fd4f4005..c3ec7489f 100644 --- a/addons/default/visiosoft/advs-module/resources/lang/en/field.php +++ b/addons/default/visiosoft/advs-module/resources/lang/en/field.php @@ -301,6 +301,10 @@ return [ // New create page 'options' => 'Options', + 'category_selection' => 'Category Selection', + 'listing_details' => 'Listing Details', + 'preview' => 'Preview', + 'congratulations' => 'Congratulations', 'free' => 'Free', 'ad_date' => 'Ad Date', diff --git a/addons/default/visiosoft/advs-module/resources/views/new-ad/new-create.twig b/addons/default/visiosoft/advs-module/resources/views/new-ad/new-create.twig index f8b2952e2..40a74f785 100644 --- a/addons/default/visiosoft/advs-module/resources/views/new-ad/new-create.twig +++ b/addons/default/visiosoft/advs-module/resources/views/new-ad/new-create.twig @@ -2,6 +2,8 @@ {% block content %}
+ {% include 'visiosoft.module.advs::new-ad/partials/steps' with {'step': 'new-create'} %} +