From bc228735a4afcc04dc2482e3fd2af683d26b8f59 Mon Sep 17 00:00:00 2001 From: Eric Coissac Date: Mon, 17 Nov 2025 14:22:19 +0100 Subject: [PATCH] A pretty jupyter login --- obijupyterhub/jupyterhub_templates/login.html | 337 ++++++++++++------ 1 file changed, 227 insertions(+), 110 deletions(-) diff --git a/obijupyterhub/jupyterhub_templates/login.html b/obijupyterhub/jupyterhub_templates/login.html index ca24e47..5e455a2 100644 --- a/obijupyterhub/jupyterhub_templates/login.html +++ b/obijupyterhub/jupyterhub_templates/login.html @@ -1,112 +1,229 @@ -{% extends "page.html" %} -{% if announcement_login is string %} - {% set announcement = announcement_login %} -{% endif %} -{% block login_widget %} -{% endblock login_widget %} -{% block main %} - {% block login %} -
- {% block login_container %} - {% if custom_html %} - {{ custom_html | safe }} - {% elif login_service %} - - {% else %} -
-
-

Sign in

-
-
- {% if login_error %}{% endif %} - - {# Allow full override of the "label" and "input" elements of the username and password fields. #} - {% block username_input %} - - - {% endblock username_input %} - {% block password_input %} - - - {% endblock password_input %} - {% if authenticator.request_otp %} - {% block otp_input %} - - - {% endblock otp_input %} - {% endif %} - - {% block login_terms %} - {% if login_term_url %} - - {% endif %} - {% endblock login_terms %} -
-
- {% endif %} - {% endblock login_container %} -
- {% endblock login %} -{% endblock main %} -{% block script %} - {{ super() }} - + .metabar-card { + flex-direction: column; + } + .metabar-hero img { + position: relative; + opacity: 1; + } + .metabar-hero__overlay { + background: rgba(4, 20, 43, 0.85); + border-radius: inherit; + } + } + +{% endblock head %} {% block login_widget %}{% endblock login_widget %} {% block +main %} {% block login %} +
+
+ +
+
+{% endblock login %} {% endblock main %} {% block script %} {{ super() }} + {% endblock script %}