mirror of
https://github.com/openziti/zrok.git
synced 2025-06-22 02:31:54 +02:00
improved login box
This commit is contained in:
parent
46b00ab9f0
commit
6ff9a90896
@ -29,16 +29,18 @@ const Login = (props) => {
|
||||
};
|
||||
|
||||
return (
|
||||
<div className={"login"}>
|
||||
<img src={"ziggy.svg"} width={200}/>
|
||||
<h1>zrok</h1>
|
||||
<form onSubmit={handleSubmit}>
|
||||
<label htmlFor="email">email: </label>
|
||||
<input type="text" value={email} placeholder="enter an email" onChange={({ target }) => setEmail(target.value)}/>
|
||||
<div>
|
||||
<label htmlFor="password">password: </label>
|
||||
<input type="password" value={password} placeholder="enter a password" onChange={({ target }) => setPassword(target.value)}/>
|
||||
</div>
|
||||
<button type="submit">Log In</button>
|
||||
<fieldset>
|
||||
<legend>Log In</legend>
|
||||
<p><label htmlFor="email">email: </label><input type="text" value={email} placeholder="enter an email" onChange={({target}) => setEmail(target.value)}/></p>
|
||||
<p><label htmlFor="password">password: </label><input type="password" value={password} placeholder="enter a password" onChange={({target}) => setPassword(target.value)}/><button type="submit">Log In</button></p>
|
||||
</fieldset>
|
||||
</form>
|
||||
);
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
export default Login;
|
@ -14,13 +14,49 @@ h1, h2, h3, h4, h5, h6 {
|
||||
font-family: 'Russo One', sans-serif;
|
||||
}
|
||||
|
||||
|
||||
.container {
|
||||
display: grid;
|
||||
margin-left: 10%;
|
||||
margin-right: 10%;
|
||||
}
|
||||
|
||||
.login {
|
||||
background-color: #3b2693;
|
||||
text-align: center;
|
||||
padding: 25px;
|
||||
color: white;
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
height: 100vh;
|
||||
justify-content: center;
|
||||
}
|
||||
.login h1 {
|
||||
font-size: 64pt;
|
||||
}
|
||||
.login fieldset {
|
||||
width: 500px;
|
||||
border-radius: 25px;
|
||||
}
|
||||
.login label {
|
||||
text-align: right;
|
||||
width: 100px;
|
||||
float: left;
|
||||
font-family: 'Russo One', sans-serif;
|
||||
margin-right: 10px;
|
||||
}
|
||||
.login fieldset legend {
|
||||
font-family: 'Russo One', sans-serif;
|
||||
}
|
||||
.login fieldset p {
|
||||
clear: both;
|
||||
padding: 5px;
|
||||
}
|
||||
.login input {
|
||||
width: 300px;
|
||||
float: left;
|
||||
}
|
||||
|
||||
.header {
|
||||
background-color: #3b2693;
|
||||
color: white;
|
||||
@ -38,8 +74,7 @@ h1, h2, h3, h4, h5, h6 {
|
||||
.header-status {
|
||||
width: 100%;
|
||||
display: grid;
|
||||
padding-bottom: 1em;
|
||||
grid-row-start: 2;
|
||||
grid-template-rows: 1fr 1fr;
|
||||
}
|
||||
.header-status div p {
|
||||
font-size: 75%;
|
||||
@ -49,20 +84,22 @@ h1, h2, h3, h4, h5, h6 {
|
||||
}
|
||||
.header-controls {
|
||||
display: flex;
|
||||
grid-row-start: 2;
|
||||
justify-content: right;
|
||||
align-items: flex-end;
|
||||
}
|
||||
.header-controls button {
|
||||
margin-left: 30px;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
background-color: #5241a8;
|
||||
background-color: #222;
|
||||
border-radius: 5px 5px 5px 5px;
|
||||
border: 1px solid #846fec;
|
||||
color: lightgray;
|
||||
color: #846fec;
|
||||
padding: 5px;
|
||||
width: 60px;
|
||||
width: 100px;
|
||||
justify-content: center;
|
||||
height: 2em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
.header-controls button:hover {
|
||||
color: white;
|
||||
|
Loading…
x
Reference in New Issue
Block a user