Software /
code /
prosody-modules
Changeset
5642:6109496a7ccc
mod_http_oauth2: Move site name into <header>
Because it's the site header
author | Kim Alvefur <zash@zash.se> |
---|---|
date | Mon, 31 Jul 2023 02:05:49 +0200 |
parents | 5641:8de02381e80a |
children | 5643:e86a1018cdb3 |
files | mod_http_oauth2/html/consent.html mod_http_oauth2/html/device.html mod_http_oauth2/html/error.html mod_http_oauth2/html/login.html mod_http_oauth2/html/oob.html mod_http_oauth2/html/style.css |
diffstat | 6 files changed, 18 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/mod_http_oauth2/html/consent.html Mon Jul 31 02:04:05 2023 +0200 +++ b/mod_http_oauth2/html/consent.html Mon Jul 31 02:05:49 2023 +0200 @@ -7,16 +7,18 @@ <link rel="stylesheet" href="style.css" /> </head> <body> - <main> {state.error&<div class="error"> <p>{state.error}</p> </div>} + <header> <h1>{site_name}</h1> + </header> + <main> <fieldset> - <form method="post"> <legend>Authorize new application</legend> <p>A new application wants to connect to your account.</p> + <form method="post"> <dl> <dt>Name</dt> <dd>{client.client_name}</dd>
--- a/mod_http_oauth2/html/device.html Mon Jul 31 02:04:05 2023 +0200 +++ b/mod_http_oauth2/html/device.html Mon Jul 31 02:05:49 2023 +0200 @@ -7,8 +7,10 @@ <link rel="stylesheet" href="style.css" /> </head> <body> + <header> + <h1>{site_name}</h1> + </header> <main> - <h1>{site_name}</h1> <fieldset> <legend>Device Authorization</legend> {error&<div class="error">
--- a/mod_http_oauth2/html/error.html Mon Jul 31 02:04:05 2023 +0200 +++ b/mod_http_oauth2/html/error.html Mon Jul 31 02:05:49 2023 +0200 @@ -7,8 +7,10 @@ <link rel="stylesheet" href="style.css" /> </head> <body> + <header> + <h1>{site_name}</h1> + </header> <main> - <h1>{site_name}</h1> <h2>Authentication error</h2> <p>There was a problem with the authentication request. If you were trying to sign in to a third-party application, you may want to report this issue to the developers.</p>
--- a/mod_http_oauth2/html/login.html Mon Jul 31 02:04:05 2023 +0200 +++ b/mod_http_oauth2/html/login.html Mon Jul 31 02:05:49 2023 +0200 @@ -7,8 +7,10 @@ <link rel="stylesheet" href="style.css" /> </head> <body> + <header> + <h1>{site_name}</h1> + </header> <main> - <h1>{site_name}</h1> <fieldset> <legend>Sign in</legend> <p>Sign in to your account to continue.</p>
--- a/mod_http_oauth2/html/oob.html Mon Jul 31 02:04:05 2023 +0200 +++ b/mod_http_oauth2/html/oob.html Mon Jul 31 02:05:49 2023 +0200 @@ -7,8 +7,10 @@ <link rel="stylesheet" href="style.css" /> </head> <body> + <header> + <h1>{site_name}</h1> + </header> <main> - <h1>{site_name}</h1> <h2>Your Authorization Code</h2> <p>Here’s your authorization code, copy and paste it into {client.client_name}</p> <div class="oob">
--- a/mod_http_oauth2/html/style.css Mon Jul 31 02:04:05 2023 +0200 +++ b/mod_http_oauth2/html/style.css Mon Jul 31 02:05:49 2023 +0200 @@ -53,7 +53,7 @@ text-align: left; } -main { +header, main, footer { max-width: 600px; padding: 0 1.5em 1.5em 1.5em; } @@ -106,7 +106,7 @@ @media(min-width: 768px) { - main + header, main, footer { margin-left: auto; margin-right: auto;