Hey, {{ user.name }}
+ {% if user.picture %} +{{ user.email }}
+ Logout +diff --git a/src/templates/index.html b/src/templates/index.html index f13c4e7..28ac9ec 100644 --- a/src/templates/index.html +++ b/src/templates/index.html @@ -24,7 +24,7 @@ flex-direction: column; width: fit-content; align-items: center; - justify-content: center; + margin: 5px auto; box-shadow: 0px 0px 10px lightgreen; background-color: lightgreen; } @@ -36,6 +36,16 @@ max-width: 3em; max-height: 3em } + .user-info a.logout { + background-color: darkkhaki; + padding: 3px 6px; + text-decoration: none; + text-align: center; + color: black; + } + .user-info a.logout:hover { + background-color: orange; + } .login-box { text-align: center; } @@ -62,17 +72,9 @@ font-weight: bold; flex: 1 1 auto; } - .login-toolbox a.logout:hover { - background-color: orange; - } .login-toolbox a:hover { background-color: lightgreen; } - .login-toolbox .link-to-protected { - margin: 1em; - background-color: cyan; - box-shadow: 0px 0px 20px cyan; - } .debug-auth { font-size: 90%; } @@ -82,36 +84,83 @@ .content { text-align: left; } + .content .links-to-protected { + display: flex; + text-align: center; + } + .content .links-to-protected a { + margin: 5px; + color: black; + padding: 3px 5px; + text-decoration: none; + } + .hasResponseStatus { + background-color: #88888840; + } + .hasResponseStatus.status-200 { + background-color: #00ff0040; + } + .hasResponseStatus.status-401 { + background-color: #ff000040; + } + -
+Hey, {{ user.name }}
+ {% if user.picture %} +{{ user.email }}
+ Logout +Session details: