diff --git a/homeserver/index.html b/homeserver/index.html index c9ab4c5..7aedf97 100644 --- a/homeserver/index.html +++ b/homeserver/index.html @@ -2,7 +2,7 @@ - Signup - Burgernotes + Homeserver - Burgernotes @@ -14,12 +14,13 @@
-

Homeserver

-

Change your Burgernotes homeserver

-

Loading...

+

Alternative servers

+

Enter your custom homeserver URL What does this mean?

-
-

+ Server URL:
+

+ +

Loading...

Please put in the URL in standard format; https://, http://, etc.

diff --git a/login/index.html b/login/index.html index ea074c3..b08659e 100644 --- a/login/index.html +++ b/login/index.html @@ -31,9 +31,9 @@ -



+

- Change homeserver

+

Privacy & Terms diff --git a/signup/index.html b/signup/index.html index e7bae58..85516d9 100644 --- a/signup/index.html +++ b/signup/index.html @@ -2,7 +2,7 @@ - Signup - Burgernotes + Create account - Burgernotes @@ -23,7 +23,7 @@


- Change homeserver

+ Privacy & Terms diff --git a/static/css/style.css b/static/css/style.css index cb79baa..122deec 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -707,6 +707,26 @@ iframe#markdown { text-align: center; } +.inoutdiv .iconbutton { + position: absolute; + right: 15px; + bottom: 15px; + width: 41px; + height: 41px; + border: none; + border-radius: 99px; + transition: 0.125s; +} + +.inoutdiv .iconbutton img { + height: 20px; + transform: translateY(10px); +} + +.inoutdiv .iconbutton:hover { + background-color: var(--hover-nonimportant-theme-color); +} + @media only screen and (max-width: 600px) { .inoutdiv { position: absolute; diff --git a/static/js/homeserver.js b/static/js/homeserver.js index 435ab70..24eb225 100644 --- a/static/js/homeserver.js +++ b/static/js/homeserver.js @@ -3,6 +3,7 @@ let homeserverBox = document.getElementById("homeserverBox") let statusBox = document.getElementById("statusBox") let changeButton = document.getElementById("changeButton") +let backButton = document.getElementById("backButton") let remote = localStorage.getItem("homeserverURL") if (remote == null) { @@ -10,7 +11,6 @@ if (remote == null) { remote = "https://notes.hectabit.org" } - document.addEventListener("DOMContentLoaded", function() { statusBox.innerText = "You are currently connected to: " + remote + ". " }); @@ -66,4 +66,8 @@ changeButton.addEventListener("click", (event) => { doStuff() }); +backButton.addEventListener("click", (event) => { + history.back() +}); + // @license-end diff --git a/static/svg/server.svg b/static/svg/server.svg new file mode 100644 index 0000000..74702b7 --- /dev/null +++ b/static/svg/server.svg @@ -0,0 +1,10 @@ + + + + + + + + + +