{% extends 'base.html.twig' %}
{% block body %}
<link rel="stylesheet" href="{{ asset('build/js/bower_components/ng-tags-input/ng-tags-input.css') }}" />
<link rel="stylesheet" href="{{ asset('build/js/bower_components/ng-tags-input/ng-tags-input.bootstrap.css') }}" />
{# <link rel="stylesheet" href="{{ asset('build/js/bower_components/sweetalert/dist/sweetalert.css') }}" /> #}
<style type="text/css">
body {
background-color: #f0f0f0;
}
.navbar-area {
background: var(--mainColor) !important;
position: unset;
}
.page-title-area {
height: auto;
padding-top: 50px;
}
.with-infos-bar .page-title-area {
padding-top: 110px;
}
.select__offer {
background: var(--whiteColor);
border: 1px solid #dededf;
border-radius: 10px;
box-shadow: 0 2px 27px 3px rgba(0, 0, 0, 0.06);
}
.select__offer h2 {
border-bottom: 1px solid #eee;
color: #3e396a;
font-size: 36px;
font-weight: 600;
padding-bottom: 20px;
}
.select__offer .package-container {
position: relative;
}
.select__offer .package-container i {
position: absolute;
top: 0;
bottom: 0;
margin: auto;
height: 20px;
left: 15px;
}
.select__offer .img-profile-container,
.select__offer .summary,
.select__offer .btn-change-action {
align-items: stretch;
justify-content: center;
display: flex;
flex-direction: column;
}
.select__offer .img-profile-container .img-profile-preview {
background: #dedede;
border-radius: 100px;
flex-shrink: 0;
height: 80px;
width: 80px;
}
.select__offer .summary {
flex: auto;
}
.select__offer .summary .username {
font-size: 20px;
line-height: 20px;
font-weight: 700;
}
.select__offer .medias__list {
display: grid;
gap: 10px 10px;
grid-template-columns: auto auto auto auto;
grid-template-rows: auto;
justify-items: stretch;
}
.select__offer .medias__list .medias__list-item {
background-color: #dedede;
border: 1px solid #e0e0e0;
border-radius: 8px;
cursor: pointer;
padding-top: 100%;
position: relative;
user-select: none;
width: 100%;
background-size: cover;
background-repeat: no-repeat;
position: relative;
overflow: hidden;
}
.select__offer .medias__list .medias__list-item .medias__list-item-selected {
position: absolute;
left: 0;
top: 0;
right: 0;
bottom: 0;
background-color: #000000a6;
display: flex;
align-items: center;
justify-content: center;
color: #FFF;
font-weight: bold;
font-size: 24px;
}
/*
Have any Dribbble invite?
Why don't you send me one,
I'll appreciate it and will thank you.
https://dribbble.com/ionelcucu
https://github.com/ionelcucu
https://www.behance.net/ionelcucu
http://www.cucuionel.com
*/
button {
position: relative;
outline: none;
cursor: pointer;
transition: background 0.2s ease-in-out;
}
button:not([disabled]):hover {
background: #2ecc71;
}
button[disabled] {
background: #3c7d57;
color: #ffffff3b;
cursor: default;
}
button:after {
content: '';
display: block;
position: absolute;
opacity: 0;
width: 30px;
height: 30px;
top: 0;
bottom: 0;
margin: auto;
border: 5px solid rgba(255, 255, 255, 0.3);
border-right-color: #fff;
border-radius: 50%;
-webkit-transition-property: -webkit-transform;
-webkit-transition-duration: 0.5s;
-moz-transition-property: -moz-transform;
-moz-transition-duration: 0.5s;
-webkit-animation-name: rotate;
-webkit-animation-duration: 0.5s;
-webkit-animation-iteration-count: infinite;
-webkit-animation-timing-function: linear;
-moz-animation-name: rotate;
-moz-animation-duration: 0.5s;
-moz-animation-iteration-count: infinite;
-moz-animation-timing-function: linear;
transition: all 0.2s linear;
-webkit-transform: scale(2);
transform: scale(2);
}
button.loading:after {
opacity: 1;
left: 15px;
}
@-webkit-keyframes rotate {
from {
-webkit-transform: rotate(0deg);
}
to {
-webkit-transform: rotate(360deg);
}
}
@-moz-keyframes rotate {
from {
-moz-transform: rotate(0deg);
}
to {
-moz-transform: rotate(360deg);
}
}
* {
-webkit-box-sizing: border-box;
-moz-box-sizing: border-box;
box-sizing: border-box;
}
body {
background: #ededed;
font-family: Arial, sans-serif;
}
a {
color: #7f8c8d;
}
.form-container {
padding: 50px 40px;
background: #fff;
width: 400px;
text-align: center;
-webkit-box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
-moz-box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
margin: 0 auto;
-webkit-transition: all 1s linear;
-moz-transition: all 1s linear;
transition: all 1s linear;
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
}
.form-container:after {
content: "";
display: block;
position: absolute;
top: 0;
left: 0;
width: 100px;
height: 10px;
background: #e74c3c;
-webkit-box-shadow: 100px 0 0 #e67e22, 200px 0 0 #f1c40f, 300px 0 0 #1abc9c;
-moz-box-shadow: 100px 0 0 #e67e22, 200px 0 0 #f1c40f, 300px 0 0 #1abc9c;
box-shadow: 100px 0 0 #e67e22, 200px 0 0 #f1c40f, 300px 0 0 #1abc9c;
}
.done .login-form {
display: none;
}
.form-container .thank-msg {
display: none;
}
.done .thank-msg {
display: block;
}
.form-container h3 {
font-size: 32px;
text-align: center;
color: #666;
margin: 0 0 30px;
}
.form-container .login-form > div {
margin-bottom: 20px;
}
.form-container .login-form > div > input {
border: 2px solid #dedede;
padding: 20px;
font-size: 20px;
min-width: 300px;
color: #666;
-webkit-border-radius: 3px;
-moz-border-radius: 3px;
border-radius: 3px;
outline: none;
-webkit-transition: border-color 0.2s linear;
-moz-transition: border-color 0.2s linear;
transition: border-color 0.2s linear;
}
.form-container .login-form > div > input:focus {
border-color: #A5A5A5;
}
.page-container {
min-height: 500px;
}
.credits {
text-align: center;
color: #999;
padding: 10px;
}
tags-input .tags {
padding: 5px 10px;
background-color: #e3f1ff;
border: 1px solid #b5cdff;
border-radius: 0;
box-shadow: none;
}
tags-input .tags .tag-list {
display: flex;
flex-direction: column;
}
tags-input .tags .tag-item {
height: auto;
padding: 4px;
position: relative;
}
tags-input .tags .tag-item .remove-button {
height: max-content;
border: none;
color: #585858;
cursor: pointer;
font: 700 16px Arial, sans-serif;
margin: 0 0 0 5px;
padding: 0;
vertical-align: middle;
position: absolute;
right: 10px;
top: 0;
bottom: 0;
margin: auto;
}
tags-input .tags .input {
background-color: #e3f1ff;
border: none;
border-radius: 0;
}
</style>
<div class="loader-container" id="loading-indicator-container" style="display: none">
<div class="lw-container">
<p class="text">please wait as we direct you to the payment page</p>
<div class="c-progress-bar">
<svg height="8" width="400">
<path id="path" d="M4 4 L394 4"></path>
<path id="loader-line" d="M4 4 L394 4"></path>
</svg>
</div>
<!-- <p class="counter" id="counter-txt">6</p> -->
<div class="btn-container">
<button class="btn" style="display: none" id="inc-btn">INCREASE</button>
<button class="btn" style="display: none" id="dec-btn">DECREASE</button>
<button class="btn" style="display: none" id="complete-btn">COMPLETE</button>
<button class="btn" style="display: none" id="reset-btn">RESET</button>
<button class="btn" style="display: none" id="load-btn">LOAD</button>
</div>
</div>
</div>
<!-- Start Page Title Area -->
<div class="page-title-area mt-5" ng-app="orderApp">
<div class="d-table">
<div class="d-table-cell">
<div class="container">
{% include 'order/partials/'~(current_sub_service.ProcessType | lower)~'.html.twig' %}
</div>
</div>
</div>
</div>
<!-- End Page Title Area -->
{% endblock %}
{% block javascripts %}
{{ parent() }}
<script type="text/javascript">
var current_offer = {{ current_offer | json_encode() | raw }};
var current_sub_service = {{ current_sub_service | json_encode() | raw }};
// Instagram api urls
var load_ig_media_url = "{{ path('load_instagram_posts')|escape('js') }}";
var load_ig_profile_url = "{{ path('load_instagram_profile')|escape('js') }}";
var load_ig_reel_url = "{{ path('load_instagram_reel')|escape('js') }}";
// TikTok api urls
var load_tiktok_profile_url = "{{ path('load_tiktok_profile')|escape('js') }}";
var load_tiktok_media_url = "{{ path('load_tiktok_posts')|escape('js') }}";
// Order api urls
var add_order_api_url = "{{ path('add_order')|escape('js') }}";
</script>
{{ encore_entry_script_tags('order') }}
{% endblock %}