Added locales for login flow + some css improvements on /web

This commit is contained in:
Bofh 2021-11-28 19:39:30 +01:00
parent 697204fe7b
commit ff59a48ee1
3 changed files with 20 additions and 3 deletions

View File

@ -81,9 +81,14 @@ header#web table div.profile > img {
header#web table span.brand { header#web table span.brand {
color: #3e78a2; color: #3e78a2;
font-size: .9em; font-size: .9em;
font-weight: bold;
word-wrap: anywhere; word-wrap: anywhere;
line-height: 1.2em; line-height: 1.2em;
top: .4em; }
@media (max-width: 500px) {
header#web table span.brand {
font-size: .8em !important;
}
} }

View File

@ -64,7 +64,8 @@ if ($function === 'oauth') {
<?php if ($function === 'view'): ?> <?php if ($function === 'view'): ?>
<?php if ($login_method === null): ?> <?php if ($login_method === null): ?>
<h4><?php l('login.login_with_fediverse', 'Use RealFan with your Fediverse account') ?></h4> <h4><?php l('login.login_with_fediverse', 'Use RealFan with the Fediverse') ?></h4>
<br>
<div class="center login-buttons"> <div class="center login-buttons">
<div class="_"> <div class="_">
<a href="/login/mastodon" class="button button-primary bg-mastodon"> <a href="/login/mastodon" class="button button-primary bg-mastodon">
@ -83,7 +84,7 @@ if ($function === 'oauth') {
<h4><?php l('login.login_with_mastodon', 'Log In using Mastodon') ?></h4> <h4><?php l('login.login_with_mastodon', 'Log In using Mastodon') ?></h4>
<div class="columns"> <div class="columns">
<label for="instanceURL"><?php l('login.select_instance', 'Select your instance') ?></label> <label for="instanceURL"><?php l('login.select_instance', 'Select your instance') ?></label>
<input class="u-full-width" type="text" placeholder="example.org" id="instanceURL" <input class="u-full-width" type="text" placeholder="<?php l('login.example_domain', 'example.org') ?>" id="instanceURL"
onkeypress="if (event.keyCode == 13) API.mastodon.registerInstance(null)"/> onkeypress="if (event.keyCode == 13) API.mastodon.registerInstance(null)"/>
<div class="right"> <div class="right">
<input onclick="API.mastodon.registerInstance(null)" class="button-primary u-full-width bg-mastodon" <input onclick="API.mastodon.registerInstance(null)" class="button-primary u-full-width bg-mastodon"

View File

@ -1,6 +1,7 @@
{ {
"all": { "all": {
"app_name": "RealFan", "app_name": "RealFan",
"continue": "Continuar",
"_": "" "_": ""
}, },
"home": { "home": {
@ -10,5 +11,15 @@
"hero": "Eres un <b>Real Fan</b> cuando deseas que tus creadores de contenido se lleven la mayor parte.", "hero": "Eres un <b>Real Fan</b> cuando deseas que tus creadores de contenido se lleven la mayor parte.",
"_": "" "_": ""
}, },
"login": {
"login_with_fediverse": "Usa RealFan con el Fediverso",
"login_mastodon": "Yo uso Mastodon",
"dont_have_mastodon": "¿No tienes Mastodon?",
"choose_community": "elige una comunidad",
"login_with_mastodon": "Entrar con Mastodon",
"select_instance": "Elige tu instancia",
"example_domain": "ejemplo.org",
"_": ""
},
"_": "" "_": ""
} }