Commit fac0cfce authored by Robert Czechowski's avatar Robert Czechowski
Browse files

Template jwinf: Tweak layout after enhancing mobile friendlyness, change colour of buttons

parent 2180d9e8
Pipeline #693 passed with stages
in 28 minutes and 37 seconds
...@@ -19,8 +19,7 @@ ...@@ -19,8 +19,7 @@
<body style="background-color: {{#if server_message}}#fbebeb{{else}}white{{/if}};"> <body style="background-color: {{#if server_message}}#fbebeb{{else}}white{{/if}};">
<div class="container" style="padding: 1.5rem;"> <div class="container" style="padding: 1.5rem;">
<div class="columns"> <div class="columns">
<div class="column is-two-thirds"> <div class="column is-7">
<p>&nbsp;<p>
{{#if firstlogin }} {{#if firstlogin }}
<img style="float:left; margin-right: 10px;" src="/static/images/klein.png"> <img style="float:left; margin-right: 10px;" src="/static/images/klein.png">
{{else}} {{else}}
...@@ -31,15 +30,14 @@ ...@@ -31,15 +30,14 @@
<h1 class="title">Jugendwettbewerb Informatik</h1> <h1 class="title">Jugendwettbewerb Informatik</h1>
<h2 class="subtitle">Programmieren – leichter, als du denkst!</h2> <h2 class="subtitle">Programmieren – leichter, als du denkst!</h2>
</div> </div>
<div class="column is-one-third"> <div class="column is-5">
&nbsp;
{{#if logged_in}} {{#if logged_in}}
{{#if firstlogin }}{{else}} {{#if firstlogin }}{{else}}
<div class="columns" style="margin-bottom: 0px;"> <div class="columns" style="margin-bottom: 0px;">
<div class="column is-three-fifths"> <div class="column is-8">
Eingeloggt als <em>{{ username }}</em> Eingeloggt als <em>{{ username }}</em>
{{#if firstname}}{{#if lastname}} {{#if firstname}}{{#if lastname}}
({{firstname}} {{lastname}}) {{firstname}} {{lastname}}
{{/if}}{{/if}} {{/if}}{{/if}}
{{#if teacher}} {{#if teacher}}
[Lehrer] [Lehrer]
...@@ -52,10 +50,10 @@ ...@@ -52,10 +50,10 @@
<a href="/profile" class="button is-info is-small">👤 &nbsp; Profil</a> <a href="/profile" class="button is-info is-small">👤 &nbsp; Profil</a>
{{#if teacher}} {{#if teacher}}
<a href="/group/" class="button is-warning is-small">&nbsp; Gruppenverwaltung</a> <a href="/group/" class="button is-warning is-small">&nbsp; Gruppenverwaltung</a>
<a href="/teacher" class="button is-primary is-small">👨‍🏫 &nbsp; Lehrer-Informationen</a> <a href="/teacher" class="button is-success is-small">👨‍🏫 &nbsp; Lehrer-Informationen</a>
{{/if}} {{/if}}
{{#if admin}} {{#if admin}}
<a href="/admin/" class="button is-warning is-small">&nbsp; Administration</a> <a href="/admin/" class="button is-primary is-small">&nbsp; Administration</a>
{{/if}} {{/if}}
</div> </div>
</div> </div>
...@@ -69,7 +67,7 @@ ...@@ -69,7 +67,7 @@
</form --> </form -->
<form action="/clogin" method="post" autocomplete="off" class="columns blogin"> <form action="/clogin" method="post" autocomplete="off" class="columns blogin">
<!-- <div class=> --> <!-- <div class=> -->
<div class="column is-three-fifths"><input class="input is-small" type="text" name="code" placeholder="Gruppencode oder Logincode" autofocus></div> <div class="column is-8"><input class="input is-small" type="text" name="code" placeholder="Gruppencode oder Logincode" autofocus></div>
<div class="column"><input class="button is-small is-success" type="submit" value="↪ &nbsp; Login" style="font-weight:bold;"></div> <div class="column"><input class="button is-small is-success" type="submit" value="↪ &nbsp; Login" style="font-weight:bold;"></div>
<!-- </div> --> <!-- </div> -->
</form> </form>
...@@ -101,7 +99,6 @@ ...@@ -101,7 +99,6 @@
{{~> page}} {{~> page}}
</div> </div>
<div style="margin-bottom:50px;"> &nbsp; </div>
<footer class="footer"> <footer class="footer">
<div class="content has-text-centered"> <div class="content has-text-centered">
<p> <p>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment