Mercurial > libervia-templates
comparison sat_templates/templates/bulma/blog/discover.html @ 230:0e69b5843c2f
theme: bulma theme first draft:
This theme uses the Bulma CSS framework, Brython to handle the menu on touch devices, and
Sass to customize Bulma. CSS default fallbacks are disabled as Bulma uses its own naming
conventions, and default fallbacks would lead to hard to debug conflicts.
`common.js` has been slightly improved to handle custom classed in `tab_select`
The theme is not complete yet, but it is functional.
author | Goffi <goffi@goffi.org> |
---|---|
date | Tue, 19 May 2020 00:02:34 +0200 |
parents | |
children | 1928ba66c194 |
comparison
equal
deleted
inserted
replaced
229:739c3e6999fa | 230:0e69b5843c2f |
---|---|
1 {% extends 'base/base.html' %} | |
2 {% import 'components/block.html' as block %} | |
3 {% import 'components/images.html' as images with context %} | |
4 {% import 'components/avatar.html' as avatar with context %} | |
5 {% import 'input/form.html' as form with context %} | |
6 {% import 'input/field.html' as field with context %} | |
7 | |
8 {% block body %} | |
9 {{ icon_defs('blog') }} | |
10 | |
11 <section class="section"> | |
12 <article class="message has-text-centered"> | |
13 <div class="message-body"> | |
14 {% trans %} | |
15 Please select the blog you want to consult | |
16 {% endtrans %} | |
17 </div> | |
18 </article> | |
19 </section> | |
20 | |
21 <section class="section disco_blogs"> | |
22 <div class="columns is-mobile is-multiline"> | |
23 {% for entity in disco_entities %} | |
24 <div class="column is-2-desktop is-4-touch"> | |
25 <div class="card x-is-hoverable"> | |
26 <a href="{{entities_url[entity]}}" class="items_vert--centered"> | |
27 <div class="card-image is-flex has-items-centered has-padding-1"> | |
28 {{ avatar.avatar(entity, "is-64x64") }} | |
29 </div> | |
30 <div class="card-content has-text-centered has-text-shortenable has-padding-1"> | |
31 <span>{{ identities[entity].nicknames[0] if identities[entity].nicknames else entity }}</span> | |
32 </div> | |
33 </a> | |
34 </div> | |
35 </div> | |
36 {% endfor %} | |
37 </div> | |
38 </section> | |
39 | |
40 <section class="section"> | |
41 <p class="content">{% trans %}Or enter the jid of a blog writer{% endtrans %}</p> | |
42 {% call form.form(class="form--single") %} | |
43 {{ field.text("jid", _("blog writer jid"), required=true)}} | |
44 {{ field.submit(_("Consult")) }} | |
45 {% endcall %} | |
46 </section> | |
47 {% endblock body %} |