mastodon-wall/templates/default/index.html.twig

95 lines
2.2 KiB
Twig
Raw Permalink Normal View History

2023-05-17 17:06:51 +02:00
{% extends 'base.html.twig' %}
{% block title %}Hello DefaultController!{% endblock %}
{% block body %}
<style>
2023-05-19 22:42:32 +02:00
body{
background: #313543;
}
2023-05-17 17:06:51 +02:00
.example-wrapper {
margin: 1em auto;
2023-05-19 22:31:29 +02:00
max-width: 1600px;
2023-05-17 17:06:51 +02:00
width: 95%;
font: 18px/1.5 sans-serif;
}
2023-05-22 16:10:59 +02:00
figure{
max-height: 422px;
max-width: 479px;
overflow: auto;
padding: 0;
margin: 5px;
}
2023-05-19 22:31:29 +02:00
.example-wrapper img {
width: 100%;
float:left;
2023-05-22 16:10:59 +02:00
min-height: 422px;
2023-05-19 22:31:29 +02:00
}
.example-wrapper strong {
float: left;
2023-05-22 16:10:59 +02:00
margin-top: -3em;
2023-05-19 22:31:29 +02:00
position: relative;
padding: 0.5em;
background: rgba(0, 0, 0, .7);
color: #fff;
width: 100%;
text-align: right;
}
2023-05-17 17:06:51 +02:00
.example-wrapper code {
background: #F5F5F5;
padding: 2px 6px;
}
2023-05-19 22:31:29 +02:00
a{
float:left;
}
a:hover strong{
color: #ddd;
background: rgba(0, 0, 0, .7);
}
2023-05-22 16:10:59 +02:00
img {
max-width: 90vw;
margin-right: 1em;
/*margin-bottom: 1em;*/
/*width: 600px;*/
}
2023-05-17 17:06:51 +02:00
</style>
<div class="example-wrapper">
2023-05-19 22:31:29 +02:00
<h1>Découverte d'artistes sur mastodon</h1>
2023-05-17 17:06:51 +02:00
<h2>
{{ data | length }} Images
</h2>
2023-05-19 22:31:29 +02:00
{# {{ (data) | length }}#}
2023-05-17 17:06:51 +02:00
<fieldset>
2023-05-19 22:31:29 +02:00
<h2> liste des images</h2>
{% for img in (data) %}
{# {{ img }}#}
{# {{ img.media_attachments | length }}#}
{% for media in img.media_attachments %}
<a href="{{ img.url }}">
<figure>
<img src="{{ media.preview_url }}" alt="image" class="gallery_img /">
<strong>
{{ img.account.acct }}
</strong>
</figure>
</a>
{% endfor %}
2023-05-17 17:06:51 +02:00
{% endfor %}
</fieldset>
</div>
<style>
2023-05-22 16:10:59 +02:00
2023-05-17 17:06:51 +02:00
</style>
{% endblock %}