Files
ENI-sortir/templates/profile/view.html.twig
Olivier PARPAILLON 4561cea8d4 profile done
2024-11-25 11:00:36 +01:00

46 lines
2.2 KiB
Twig

{% extends 'main/base.html.twig' %}
{% block head %}
<head>
<meta charset="UTF-8">
{% block title %}&#128227; Sortie.com {{ profile.pseudo }} &#128266;{% endblock %}
{% block stylesheets %}
{{ encore_entry_link_tags('app') }}
{% endblock %}
</head>
{% endblock %}
{% block content %}
<div class="relative mx-auto md:max-w-xl py-48 min-w-0 break-words">
<div class="flex flex-wrap justify-center mb-16">
<div class="w-full flex justify-center">
<div class="relative">
<img src="{{ profile.fileName ? asset('upload/image/profile/' ~ profile.fileName) : asset('upload/image/profile/default.png') }}" class="shadow-xl rounded-full align-middle border-none absolute -m-16 -ml-20 lg:-ml-16 max-w-[150px]"/>
</div>
</div>
</div>
<div class="px-2 bg-white shadow-lg rounded-lg py-2">
<div class="text-center mt-2">
<h3 class="text-2xl text-slate-700 font-bold leading-normal mb-1">{{ profile.prenom }} {{ profile.nom }}</h3>
<div class="text-sm mt-0 mb-2 text-slate-400 font-bold uppercase">
<i class="fas fa-map-marker-alt mr-2 text-slate-400 opacity-75"></i>{{ profile.pseudo }}
</div>
<div class="text-xs mt-0 mb-2 text-slate-400 font-bold uppercase">
<i class="fas fa-map-marker-alt mr-2 text-slate-400 opacity-75"></i>{{ profile.telephone }} - {{ profile.email }}
</div>
</div>
{% if isActiveUser %}
<div class="mt-6 py-6 border-t border-slate-200 text-center">
<div class="flex flex-wrap justify-center">
<div class="w-full px-4">
<a href="{{ path('profile_edit', {'uuid': app.user.idParticipant}) }}" class="text-slate-700 hover:text-slate-400">
<button class="bg-green-500 px-4 py-2 rounded hover:bg-green-700">
Modifier
</button>
</a>
</div>
</div>
</div>
{% endif %}
</div>
</div>
{% endblock %}