templates/index.html.twig line 1
{% extends 'base.html.twig' %}
{% block stylesheets %}
{{ encore_entry_link_tags('styles/checkbox') }}
{% endblock %}
{% block body %}
<div class="presentation px-4">
<div class="row text-center">
<div class="col-12">
<p>{{ 'index.presentation.h'|trans|raw }}</p>
<p>{{ 'index.presentation.p'|trans|raw }}</p>
<a href="{{ path('register') }}">{{ 'index.discover'|trans|raw }}</a>
</div>
<div class="col-12">
<img src="{{ asset('images/presentation.svg') }}" alt="socialVault - presentation" class="img-fluid" >
</div>
</div>
</div>
<div class="how px-4">
<div class="title">
<p class="purple_title">{{ 'index.how.h'|trans|raw }}</p>
</div>
<div class="row text-center icones">
<div class="col-lg-4 col-sm-12 col-md-4 col-xl-4">
<img src="{{ asset('images/widget.svg') }}" alt="">
<div>
<p>{{ 'index.how.widget.h'|trans|raw }}</p>
<p>{{ 'index.how.widget.p'|trans|raw }}</p>
</div>
</div>
<div class="col-lg-4 col-sm-12 col-md-4 col-xl-4">
<img src="{{ asset('images/notification.svg') }}" alt="">
<div>
<p>{{ 'index.how.notification.h'|trans|raw }}</p>
<p>{{ 'index.how.notification.p'|trans|raw }}</p>
</div>
</div>
<div class="col-lg-4 col-sm-12 col-md-4 col-xl-4">
<img src="{{ asset('images/search.svg') }}" alt="">
<div>
<p>{{ 'index.how.search.h'|trans|raw }}</p>
<p>{{ 'index.how.search.p'|trans|raw }}</p>
</div>
</div>
</div>
</div>
<div class="subscription text-center mt-4">
<div class="row justify-content-center mx-0">
<div class="card-group card-group-container">
<div class="card col-sm-12 col-md-6 col-lg-4 col-xl-4" id="payment-card">
<div class="card-body bg-white" style="border-radius: 20px;">
<div class="card-header pb-3" style="background-color: white; border: none;">
<span class="sub-title"><strong>{{ 'index.payment.free.title'|trans }}</strong></span>
</div>
<h5 class="card-title">{{ 'index.payment.free.description'|trans({'%count%': MAX_UPLOAD}) }}</h5>
<p class="card-text py-4 font-weight-bold" >{{ 'index.payment.free.number'|trans({'%count%': MAX_UPLOAD}) }}</p><br>
<div class="souscrire_btn"><a href="{{ path('register') }}" class="btn purple_btn text-white">{{ 'subscribe'|trans({}, 'commons')|upper }}</a></div>
</div>
</div>
<div class="card col-sm-12 col-md-6 col-lg-4 col-xl-4" id="payment-card">
<div class="card-body bg-white" style="border-radius: 20px;">
<div class="card-header pb-3" style="background-color: white; border: none;">
<span class="sub-title">{{ 'index.payment.pro.title'|trans }}</span>
</div>
<h5 class="card-title">{{ 'index.payment.pro.description'|trans }}</h5>
<div class="demo">
<form class="mensuel_annuel" action="#">
<span class="text-secondary mr-2">{{ 'IntervalType.month'|trans({}, 'forms')|upper }}</span>
<div class="switch">
<input id="switch-1" type="checkbox" class="switch-input">
<label for="switch-1" class="switch-label">Switch</label>
</div>
<span class="text-secondary ml-2">{{ 'IntervalType.year'|trans({}, 'forms')|upper }}</span>
</form>
</div>
<p class="card-text py-4 font-weight-bold" data-type="price">{{ displayPrice(subscriptions[0].amount, app.request.locale) }}<br><br></p>
<div class="souscrire_btn"><a href="#" class="btn purple_btn text-white" id="sub_button" data-stripe="{{ subscriptions[0].stripeId }}">{{ 'subscribe'|trans({}, 'commons')|upper }}</a></div>
</div>
</div>
</div>
</div>
</div>
<div class="started px-4">
<div class="title mb-0">
<p class="yellow_title">{{ 'index.started.h'|trans|raw }}</p>
</div>
<div class="row">
<div class="col-12 text-center">
<p>{{ 'index.started.p'|trans|raw }}</p>
<div class="yellow_card text-center mt-5">
<div class="yellow_card_header">
<a href="{{ path('register') }}">{{ 'index.started.card.header'|trans|raw }}</a>
</div>
<div class="yellow_card_body">
<span class="yellow_card_title">{{ 'index.started.card.body.title'|trans|raw }}</span>
<ul class="yellow_card_text">
<li><img class="mr-3 align-top" src="{{ asset('images/checker_yellow.svg') }}" alt="">{{ 'index.started.card.body.text.1'|trans|raw }}</li>
<li><img class="mr-3 align-top" src="{{ asset('images/checker_yellow.svg') }}" alt="">{{ 'index.started.card.body.text.2'|trans|raw }}</li>
<li><img class="mr-3 align-top" src="{{ asset('images/checker_yellow.svg') }}" alt="">{{ 'index.started.card.body.text.3'|trans|raw }}</li>
<li><img class="mr-3 align-top" src="{{ asset('images/checker_yellow.svg') }}" alt="">{{ 'index.started.card.body.text.4'|trans|raw }}</li>
</ul>
</div>
<div class="yellow_card_footer">
<a href="{{ path('register') }}">{{ 'index.started.card.footer'|trans|raw }}</a>
</div>
</div>
</div>
</div>
</div>
<div class="partnership mt-5 px-4">
<div class="title mb-0">
<p class="purple_title">{{ 'index.partnership.h'|trans|raw }}</p>
</div>
<div class="row">
<div class="col text-center">
<p>{{ 'index.partnership.p'|trans|raw }}</p>
<a href="https://www.cosavostra.com" target="_blank"><img src="{{ asset('images/logo_cosavostra.svg') }}" alt=""></a>
</div>
</div>
</div>
{% endblock %}
{% block javascripts %}
<script src="https://socialvault.com/snippet/80372d97d0e055fe/socialvault.js"></script>
<script>
$(document).ready(function()
{
let price = $('p[data-type="price"]');
$('.switch-input').change(function()
{
if (this.checked) {
price.html("<span style='text-decoration: line-through;'>{{ displayPrice(subscriptions[1].amount, app.request.locale) }}</span><br>{{ displayPrice((12 - dayToMonth(subscriptions[1].trialPeriodDays)) * subscriptions[0].amount, app.request.locale) }}<span class='ml-2' style='font-size: 0.7rem;'>({{ 'user_subscription.index.trial.month'|trans({'%count%': subscriptions[1].trialPeriodDays|dayToMonth})|raw }})</span>");
$('#sub_button').attr('data-stripe', '{{ subscriptions[1].stripeId }}');
} else {
price.html("{{ displayPrice(subscriptions[0].amount, app.request.locale) }}<br><br>");
$('#sub_button').attr('data-stripe', '{{ subscriptions[0].stripeId }}');
}
});
$('#sub_button').click(function(e) {
e.preventDefault();
url = '{{ path('register', {'stripeId': 'STRIPE'}) }}';
url = url.replace('STRIPE', $(this).data('stripe'));
window.location.href = url;
})
});
</script>
{% endblock %}