templates/services/index.html.twig line 1
{% extends 'base_footer.html.twig' %}
{% block title %}{{ 'services.title'|trans }}{% endblock %}
{% block body %}
<!-- En-tête -->
<div class="bg-gray-200 py-16 mb-8 text-center w-full">
<div class="container mx-auto px-4">
<h1 class="text-3xl font-bold">{{ 'services.header'|trans }}</h1>
</div>
</div>
<!-- Section Simplifiez la recherche de logement -->
<div class="py-16 mb-8 text-center">
<div class="container mx-auto px-4">
<h2 class="text-3xl font-bold mb-6 max-w-4xl mx-auto">{{ 'services.simplified_solution'|trans }}</h2>
<div class="max-w-3xl mx-auto space-y-4">
<p>{{ 'services.simplified_solution_text_1'|trans|raw }}</p>
<p>{{ 'services.simplified_solution_text_2'|trans|raw }}</p>
</div>
</div>
</div>
<div class="flex justify-center">
<hr class="my-6 border-gray-300 w-1/2">
</div>
<!-- Section Locataires : Trouver un logement depuis l'étranger -->
<div class="py-16 mb-8 bg-white w-full">
<div class="container mx-auto px-4">
<div class="flex flex-col md:flex-row gap-12">
<div class="md:w-1/2 flex items-center">
<h2 class="text-3xl font-bold">{{ 'services.tenants_section_title'|trans }}</h2>
</div>
<div class="md:w-1/2">
<p class="mb-6">{{ 'services.tenants_section_text'|trans }}</p>
<ul class="list-disc pl-6 space-y-3">
<li><strong>{{ 'services.simplified_search'|trans }}</strong> : {{ 'services.simplified_search_description'|trans }}</li>
<li><strong>{{ 'services.accommodation_prereservation'|trans }}</strong> : {{ 'services.accommodation_prereservation_description'|trans }}</li>
<li><strong>{{ 'services.final_booking'|trans }}</strong> : {{ 'services.final_booking_description'|trans }}</li>
<li><strong>{{ 'services.dedicated_support'|trans }}</strong> : {{ 'services.dedicated_support_description'|trans }}</li>
</ul>
<br/>
<h3 class="font-semibold mb-3">{{ 'services.useful_services'|trans }}</h3>
<ul class="list-disc pl-6 space-y-3">
<li><strong>{{ 'services.irrevocable_transfer_certificate'|trans }}</strong> : {{ 'services.irrevocable_transfer_certificate_description'|trans }}</li>
<li><strong>{{ 'services.home_insurance'|trans }}</strong> : {{ 'services.home_insurance_description'|trans }}</li>
</ul> <br>
<div class="flex justify-center"> <br>
{% if app.user %}
{% if app.user.asRole('ROLE_TENANT') %}
<a href="{{ path('tenant_home') }}" class="inline-block bg-yellow-400 text-black font-semibold px-8 py-4 rounded-lg hover:bg-yellow-500 transition-colors">
{{ 'services.start_search'|trans }}
</a>
{% elseif app.user.asRole('ROLE_LESSOR') or app.user.asRole('ROLE_LESSOR_RESIDENT') %}
<a href="{{ path('lessor-home') }}" class="inline-block bg-yellow-400 text-black font-semibold px-8 py-4 rounded-lg hover:bg-yellow-500 transition-colors">
{{ 'services.start_search'|trans }}
</a>
{% endif %}
{% else %}
<button id="openModalLink1" class="inline-block bg-yellow-400 text-black font-semibold px-8 py-4 rounded-lg hover:bg-yellow-500 transition-colors">
{{ 'services.start_search'|trans }}
</button>
{% endif %}
</div>
</div>
</div>
</div>
</div>
<div class="flex justify-center">
<hr class="my-6 border-gray-300 w-1/2">
</div>
<!-- Section Bailleurs : Gestion simplifiée -->
<div class="py-16 mb-8 bg-white w-full">
<div class="container mx-auto px-4">
<div class="flex flex-col md:flex-row gap-12">
<div class="md:w-1/2 flex items-center">
<h2 class="text-3xl font-bold">{{ 'services.landlords_section_title'|trans }}</h2>
</div>
<div class="md:w-1/2">
<p class="mb-6">{{ 'services.landlords_section_text'|trans|raw }}</p>
<ul class="list-disc pl-6 space-y-3">
<li><strong>{{ 'services.detailed_listings'|trans }}</strong> : {{ 'services.detailed_listings_description'|trans }}</li>
<li><strong>{{ 'services.complete_applications'|trans }}</strong> : {{ 'services.complete_applications_description'|trans }}</li>
<li><strong>{{ 'services.simplified_selection'|trans }}</strong> : {{ 'services.simplified_selection_description'|trans }}</li>
<li><strong>{{ 'services.dedicated_support'|trans }}</strong> : {{ 'services.dedicated_support_description'|trans }}</li>
</ul>
<br/>
<div class="flex justify-center">
{% if app.user %}
{% if app.user.asRole('ROLE_LESSOR') or app.user.asRole('ROLE_LESSOR_RESIDENT') %}
<a href="{{ path('building_temp_step1', {'newBuilding': true}) }}" class="inline-block bg-yellow-400 text-black font-semibold px-8 py-4 rounded-lg hover:bg-yellow-500 transition-colors">
{{ 'services.create_listing'|trans }}
</a>
{% elseif app.user.asRole('ROLE_TENANT') %}
<button id="openPopLink1" class="inline-block bg-yellow-400 text-black font-semibold px-8 py-4 rounded-lg hover:bg-yellow-500 transition-colors">
{{ 'services.create_listing'|trans }}
</button>
{% else %}
<button id="openModalLink2" class="inline-block bg-yellow-400 text-black font-semibold px-8 py-4 rounded-lg hover:bg-yellow-500 transition-colors">
{{ 'services.create_listing'|trans }}
</button>
{% endif %}
{% else %}
<button id="openModalLink2" class="inline-block bg-yellow-400 text-black font-semibold px-8 py-4 rounded-lg hover:bg-yellow-500 transition-colors">
{{ 'services.create_listing'|trans }}
</button>
{% endif %}
</div>
</div>
</div>
</div>
</div>
<!-- Modal de connexion/inscription -->
<div id="connectModal" class="fixed inset-0 bg-gray-500 bg-opacity-50 flex justify-center items-center hidden z-50">
<div class="bg-white p-6 rounded-lg shadow-lg max-w-sm w-full text-center">
<p class="text-lg font-semibold mb-4">{{ 'services.choose_option'|trans }}</p>
<button onclick="window.location.href='{{ path('app_login_site') }}'" class="bg-yellow-400 text-black px-4 py-2 rounded-lg font-semibold hover:bg-yellow-500 transition mb-2 w-full">
{{ 'services.login'|trans }}
</button>
<button onclick="window.location.href='{{ path('app_register') }}'" class="bg-yellow-400 text-black px-4 py-2 rounded-lg font-semibold hover:bg-yellow-500 transition w-full">
{{ 'services.register'|trans }}
</button>
</div>
</div>
<!-- Modal2 -->
<div id="connectPop" class="fixed inset-0 bg-gray-500 bg-opacity-50 flex justify-center items-center hidden z-50">
<div class="bg-white p-6 rounded-lg shadow-lg max-w-sm w-full text-center">
<p class="text-lg font-semibold mb-4">{{ 'services.please_login_as_landlord'|trans }}</p>
<button onclick="window.location.href='{{ path('app_login_site') }}'" class="bg-yellow-400 text-black px-4 py-2 rounded-lg font-semibold hover:bg-yellow-500 transition mb-2 w-full">
{{ 'services.login'|trans }}
</button>
</div>
</div>
{% endblock %}
{% block javascripts %}
<script>
function toggleFaq(button) {
const content = button.nextElementSibling;
content.classList.toggle('hidden');
}
document.addEventListener('DOMContentLoaded', function () {
console.log('DOM fully loaded and parsed');
// Gestion du modal de connexion/inscription
const openModalElements = document.querySelectorAll('#openModalLink1, #openModalLink2');
const connectModal = document.getElementById('connectModal');
if (openModalElements.length > 0 && connectModal) {
openModalElements.forEach(element => {
element.addEventListener('click', function (event) {
event.preventDefault();
connectModal.classList.remove('hidden');
});
});
connectModal.addEventListener('click', function (event) {
if (event.target === connectModal) {
connectModal.classList.add('hidden');
}
});
connectModal.querySelector('.bg-white').addEventListener('click', function (event) {
event.stopPropagation();
});
} else {
console.log('openModalElements or connectModal not found');
}
const openPopElements = document.querySelectorAll('#openPopLink1, #openPopLink2');
const connectPop = document.getElementById('connectPop');
if (openPopElements.length > 0 && connectPop) {
openPopElements.forEach(element => {
element.addEventListener('click', function (event) {
event.preventDefault();
connectPop.classList.remove('hidden');
});
});
connectPop.addEventListener('click', function (event) {
if (event.target === connectPop) {
connectPop.classList.add('hidden');
}
});
connectPop.querySelector('.bg-white').addEventListener('click', function (event) {
event.stopPropagation();
});
} else {
console.log('openPopElements or connectPop not found');
}
});
</script>
{% endblock %}