You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
1.1 KiB

import React from "react";
import "./style.css";
class AuthForm extends React.Component {
isMobile() {
return navigator.userAgentData.mobile;
}
render() {
return (
<div id="spAuth" className="spAuth ">
<div className={this.isMobile() ? "formAuth mobile" : "formAuth modal"}>
<h2>Авторизация</h2>
<div>
<p>
{" "}
Username: <input type="text" placeholder="demo" />
</p>
<p>
{" "}
Password:
<input type="password" placeholder="demo" />
</p>
`
<p>
{" "}
Server:
<input type="password" placeholder={window.location.href} />
</p>
<div
className="authBtn"
onClick={() =>
(document.getElementById("spAuth").style.display = "none")
}
>
Войти
</div>
</div>
</div>
</div>
);
}
}
export default AuthForm;