# HG changeset patch
# User mathieui
# Date 1590322769 -7200
# Node ID ee1df80a1715afc720c2ae4e4dc3e840f51b1902
# Parent 46ca1aa0814647617fa730e296effe9577d453b1
Nicer-looking input form
diff --git a/client.js b/client.js
--- a/client.js
+++ b/client.js
@@ -128,6 +128,8 @@ document.addEventListener('DOMContentLoa
function onConnected()
{
+ const connection_form = document.getElementById('connection');
+ connection_form.classList.remove('initial-login');
const new_node = document.createElementNS('http://www.w3.org/1999/xhtml', 'span');
const parent_node = connect.parentNode;
const text = document.createTextNode(`{% trans 'Logged in as ${connection.authzid} ' %}`);
diff --git a/index.xhtml b/index.xhtml
--- a/index.xhtml
+++ b/index.xhtml
@@ -10,7 +10,7 @@
- {% trans 'XMPP account manager' %}
+ {% trans 'XMPP Account Manager' %}
@@ -18,13 +18,13 @@
+
{% trans 'XMPP Account Manager' %}
diff --git a/locale/django.pot b/locale/django.pot
--- a/locale/django.pot
+++ b/locale/django.pot
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-05-24 13:15+0200\n"
+"POT-Creation-Date: 2020-05-24 14:22+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME
\n"
"Language-Team: LANGUAGE \n"
@@ -27,7 +27,7 @@ msgstr ""
msgid "Log in"
msgstr ""
-msgid "XMPP account manager"
+msgid "XMPP Account Manager"
msgstr ""
msgid "Enter your JID (or XMPP address), on the form “you@your-server.tld”"
diff --git a/locale/en/LC_MESSAGES/django.po b/locale/en/LC_MESSAGES/django.po
--- a/locale/en/LC_MESSAGES/django.po
+++ b/locale/en/LC_MESSAGES/django.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-05-24 13:15+0200\n"
+"POT-Creation-Date: 2020-05-24 14:22+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
@@ -28,7 +28,7 @@ msgstr ""
msgid "Log in"
msgstr ""
-msgid "XMPP account manager"
+msgid "XMPP Account Manager"
msgstr ""
msgid "Enter your JID (or XMPP address), on the form “you@your-server.tld”"
diff --git a/locale/fr/LC_MESSAGES/django.po b/locale/fr/LC_MESSAGES/django.po
--- a/locale/fr/LC_MESSAGES/django.po
+++ b/locale/fr/LC_MESSAGES/django.po
@@ -8,7 +8,7 @@ msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
-"POT-Creation-Date: 2020-05-24 13:15+0200\n"
+"POT-Creation-Date: 2020-05-24 14:22+0200\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
@@ -28,7 +28,7 @@ msgstr ""
msgid "Log in"
msgstr ""
-msgid "XMPP account manager"
+msgid "XMPP Account Manager"
msgstr ""
msgid "Enter your JID (or XMPP address), on the form “you@your-server.tld”"
diff --git a/style.css b/style.css
--- a/style.css
+++ b/style.css
@@ -27,6 +27,18 @@ h1 img {
#connect {
margin-top: 1em;
}
+.initial-login {
+ position: absolute;
+ top: 50%;
+ left: 50%;
+ transform: translate(-50%, -50%);
+ background-color: #CCC;
+ border-radius: 10px;
+}
+.initial-login > input {
+ display: block;
+ margin: 1em;
+}
.navbar {
background-color: #6197d6;
background-image: linear-gradient(to right, #000080, #6197d6);