templates/main/index.html.twig line 1
{% extends 'public_layout.html.twig' %}
{% block title %}{{ 'Accueil'|trans }}{% endblock %}
{% block content %}
<turbo-frame id="frame_content" data-turbo-action="advance">
<section>
<h1 class="display-3">{{ 'Benjamin Zaslavsky'|trans }}</h1>
<span class="display-6" {{ stimulus_controller('symfony/ux-typed', {
strings: [
"Développeur PHP-Symfony."|trans,
"Développeur PHP-Symfony.<br>Et un peu d'écriture."|trans,
"Développeur PHP-Symfony.<br>Et beaucoup d'écriture."|trans,
],
startDelay: 500,
cursorChar: '|'
}) }}></span>
<hr>
<section>
<h2>{{ 'Qui suis-je?'|trans }}</h2>
{% trans %}
<p>Obi-Wan was wise to hide her from me. Now his failure is complete. If you will not turn to the
dark side, then perhaps she will. Never-r-r! Good! Your hate has made you powerful. Now, fulfill
your destiny and take your father's place at my side! Never! I'll never turn to the dark
side.</p>
{% endtrans %}
</section>
<hr>
<div>
<a href="{{ path('cms_post_index') }}"
class="btn btn-outline-primary float-end">{{ 'Liste des billets'|trans }}</a>
<h3>{{ 'Dernier post :'|trans }}</h3>
{% if lastPost is not null %}
<article class="surface p-3">
{{ include('post/includes/_post.html.twig', {'post': lastPost}, with_context = false) }}
</article>
{% else %}
<p>{{ 'Pas de posts...'|trans }}</p>
{% endif %}
</div>
</section>
</turbo-frame>
{% endblock %}