change BanInfo

This commit is contained in:
HF 2022-08-08 14:11:22 +02:00
parent 8f91b3c241
commit 7d2161883d
4 changed files with 11 additions and 5 deletions

View File

@ -119,7 +119,9 @@ const BanInfo = ({ close }) => {
<React.Fragment key="btnr">
<button
type="button"
style={{ fontSize: 16 }}
style={{
animation: 'glowing 1300ms infinite',
}}
onClick={handleSubmit}
>
{(submitting) ? '...' : t`Why?`}
@ -129,7 +131,6 @@ const BanInfo = ({ close }) => {
)}
<button
type="submit"
style={{ fontSize: 16 }}
onClick={close}
>
{t`OK`}

View File

@ -43,14 +43,12 @@ const GlobalCaptcha = ({ close }) => {
<button
type="button"
onClick={close}
style={{ fontSize: 16 }}
>
{t`Cancel`}
</button>
&nbsp;
<button
type="submit"
style={{ fontSize: 16 }}
>
{t`Send`}
</button>

View File

@ -968,6 +968,13 @@ tr:nth-child(even) {
display: inline-block;
}
@keyframes glowing {
0% { background-color: #2ba805; box-shadow: 0 0 5px #2ba805; }
50% { background-color: #49e819; box-shadow: 0 0 20px #49e819; }
100% { background-color: #2ba805; box-shadow: 0 0 5px #2ba805; }
}
/*-----------*/
/* react-toggle css */

View File

@ -247,7 +247,7 @@ export function receivePixelReturn(
break;
case 14:
errorTitle = t`Banned`;
type = t`ban`;
type = 'ban';
break;
case 15:
errorTitle = t`Range Banned`;