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

View File

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

View File

@ -968,6 +968,13 @@ tr:nth-child(even) {
display: inline-block; 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 */ /* react-toggle css */

View File

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