Projet-Symfony/templates/index.html.twig

49 lines
1.4 KiB
Twig

{% extends 'base.html.twig' %} {% block title %}Welcome to Frutti!{% endblock %}
{% block body %}
<main>
{% if app.user %}
<div>
<h1>Welcome to Frutti {{ app.user.userIdentifier }} !</h1>
</div>
{% else %}
<div>
<h1>Welcome to Frutti!</h1>
</div>
{% endif%}
<p>Frutti is an application to create your own fruit record collection.</p>
<br />
<h2>But what is a fruit record collection? 🤔</h2>
<p>
A fruit collection is composed of albums which have a link with fruits.
</p>
<p>
Frutti uses
<a href="https://www.discogs.com/" title="Visit Discogs website"
>Discogs</a
>
to let you find albums of fruits.
</p>
<br />
<h2>Start your fruit collection today!</h2>
{% if app.user %}
<a href="/login" title="Click here to browse your favorites"
>Check out your favorites</a
>
or
<a href="/search?fruit=🍊&q=Whenever+You+Need+Somebody" title="Click here to browse our selection"
>search for new disks</a
>.
{% else %}
<p>
<a href="/register" title="Click to here to create an account"
>Create an account</a
>
or to
<a href="/login" title="Click here to connect to an existing account"
>connect to an existing one</a
>.
</p>
{% endif%}
</main>
{% endblock %}