From 8c0e2168dffde8a6091be5da870a5aee5d99b943 Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Mar 15 2021 10:27:24 +0000 Subject: Update fedora theme This updates the fedora theme for ipsilon, removing references to FAS, and replacing with Fedora Accounts. Also adds themes for OIDC, and a redo of most of the templates. Signed-off-by: Ryan Lerch --- diff --git a/setup.py b/setup.py index 02d6c6c..2d1e52e 100755 --- a/setup.py +++ b/setup.py @@ -77,6 +77,8 @@ setup( glob('themes/Fedora/templates/openid/*.html')), (DATA+'themes/Fedora/templates/openid', glob('themes/Fedora/templates/openid/*.xml')), + (DATA+'themes/Fedora/templates/openidc', + glob('themes/Fedora/templates/openidc/*.html')), (DATA+'themes/Fedora/templates/persona', glob('themes/Fedora/templates/persona/*.html')), (DATA+'themes/openSUSE/res', diff --git a/themes/Fedora/res/fedora-authn-logo-white.png b/themes/Fedora/res/fedora-authn-logo-white.png index 555fe59..a3b8ae0 100644 Binary files a/themes/Fedora/res/fedora-authn-logo-white.png and b/themes/Fedora/res/fedora-authn-logo-white.png differ diff --git a/themes/Fedora/res/login.css b/themes/Fedora/res/login.css index 58eda39..f284974 100644 --- a/themes/Fedora/res/login.css +++ b/themes/Fedora/res/login.css @@ -1,7 +1,14 @@ -html, body, .bodycontent { - height: 100vh; - max-width: 100vw; - margin: 0; - display: flex; - flex-flow: column; +.masthead{ + border-bottom: 1px solid #ccc; + box-shadow: 0 0 10px 2px #ddd; + position: relative; +} + +.min-height-50{ + min-height: 50vh; +} + +.footer a{ + color:rgba(255,255,255,0.5); + border-bottom: 1px dotted rgba(255,255,255,0.2) } diff --git a/themes/Fedora/res/redhat.png b/themes/Fedora/res/redhat.png new file mode 100644 index 0000000..5215f5c Binary files /dev/null and b/themes/Fedora/res/redhat.png differ diff --git a/themes/Fedora/templates/badrequest.html b/themes/Fedora/templates/badrequest.html new file mode 100644 index 0000000..96e895c --- /dev/null +++ b/themes/Fedora/templates/badrequest.html @@ -0,0 +1,10 @@ +{% extends "layout.html" %} +{% block maincontent %} +

400 - Bad Request

+{% if message: %} +

{{ message }}

+{% else %} +

Your client made a request that could not be understood.

+{% endif %} +

If the error persists and if you think this is an error, contact Fedora Infra to resolve the problem.

+{% endblock %} diff --git a/themes/Fedora/templates/index.html b/themes/Fedora/templates/index.html index 1385877..4a2fa98 100644 --- a/themes/Fedora/templates/index.html +++ b/themes/Fedora/templates/index.html @@ -1,7 +1,11 @@ {% extends "layout.html" %} -{% block maintitle %} -Federated Open Authentication -{% endblock %} -{% block main %} -You will be redirected to this application whenever another application requires you to authenticate. +{% block maincontent %} +

Nothing to Authenticate

+

+ You will be redirected to this service when an application requires authentication against your Fedora Account +

+

+ Visit Fedora Accounts to create or modify your Fedora Account +

{% endblock %} + diff --git a/themes/Fedora/templates/internalerror.html b/themes/Fedora/templates/internalerror.html index 4c7f6d0..d9c7267 100644 --- a/themes/Fedora/templates/internalerror.html +++ b/themes/Fedora/templates/internalerror.html @@ -1,15 +1,12 @@ {% extends "layout.html" %} -{% block maintitle %} -500 - Internal Server Error -{% endblock %} -{% block main %} +{% block maincontent %} +

500 - Internal Server Error

{% if message: %} -

{{ message }}

+

{{ message }}

{% else %} -

Ipsilon encountered an unexpected internal error while trying to +

The Fedora Accounts Ipsilon encountered an unexpected internal error while trying to fulfill your request.

{% endif %} -

Please retry again.

-

If the error persists, contact the server administrator to resolve - the problem.

+

Please retry again.

+

If the error persists, contact Fedora Infra to resolve the problem.

{% endblock %} diff --git a/themes/Fedora/templates/layout.html b/themes/Fedora/templates/layout.html index c0648a2..1b494b4 100644 --- a/themes/Fedora/templates/layout.html +++ b/themes/Fedora/templates/layout.html @@ -8,7 +8,7 @@ href="//fedoraproject.org/static/images/favicon.ico"/> - + @@ -22,31 +22,91 @@