]> git.ipfire.org Git - pbs.git/commitdiff
web: Refactor the index page for Bulma
authorMichael Tremer <michael.tremer@ipfire.org>
Wed, 19 Oct 2022 01:03:23 +0000 (01:03 +0000)
committerMichael Tremer <michael.tremer@ipfire.org>
Wed, 19 Oct 2022 01:03:23 +0000 (01:03 +0000)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/templates/base.html
src/templates/index.html

index 97fba2bba812a5dafd5ea6e4d6c3727dc72e2763..a3ca941656e5ef8931f6a15525477897fa3ffa51 100644 (file)
 
                {# Main Stuff #}
 
-               <section class="section">
-                       <div class="container">
-                               {% block container %}
-                                       <div class="grid-x grid-padding-x">
-                                               {% block body %}EMPTY BODY{% end block %}
-                                       </div>
-                               {% end block %}
-                       </div>
-               </section>
+               {% block body %}
+                       <section class="section">
+                               <div class="container">
+                                       {% block container %}
+                                               NO CONTENT
+                                       {% end block %}
+                               </div>
+                       </section>
+               {% end block %}
 
                {# Footer #}
 
index d92be77648e83c1f2e85114f5e331f4ed9462728..0847998720170433cd9ffd705343af77799222c9 100644 (file)
@@ -2,19 +2,31 @@
 
 {% block title %}{{ _("Welcome!") }}{% end block %}
 
-{% block container %}
-       <h1 class="text-center">{{ _("Pakfire Build Service") }}</h1>
-       <h3 class="text-center">{{ _("Development Powered By Community") }}</h3>
+{% block body %}
+       <section class="hero is-primary">
+               <div class="hero-body">
+                       <p class="title">
+                               {{ _("Pakfire Build Service") }}
+                       </p>
+                       <p class="subtitle">
+                               {{ _("Development Powered By Community") }}
+                       </p>
+               </div>
+       </section>
 
        {% if jobs %}
-               <h5>{{ _("Current Jobs") }}</h5>
+               <section class="section">
+                       <h5>{{ _("Current Jobs") }}</h5>
 
-               {% module JobsList(jobs) %}
+                       {% module JobsList(jobs) %}
+               </section>
        {% end %}
 
-       <a class="button expanded" href="/queue">
+       <section class="section has-text-centered">
                {% set q = len(backend.jobqueue) %}
 
-               {{ _("One Job In Queue", "%(num)s Jobs In Queue", q) % { "num" : q } }}
-       </a>
+               <a href="/queue">
+                       {{ _("One Job In Queue", "%(num)s Jobs In Queue", q) % { "num" : q } }}
+               </a>
+       </section>
 {% end block %}