some polish

This commit is contained in:
Michael Quigley 2022-08-02 18:12:03 -04:00
parent 254240a3d6
commit 2dec94e0bc
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62
4 changed files with 56 additions and 13 deletions

BIN
ui/public/ziggy.png Executable file

Binary file not shown.

After

Width:  |  Height:  |  Size: 342 KiB

View File

@ -25,15 +25,27 @@ const App = () => {
return ( return (
<div className="zrok"> <div className="zrok">
<header className="zrok-header"> <div className="container">
<h1>zrok</h1> <div className="header">
<Version/> <img src="ziggy.png" width="100px"/>
<Identities user={user}/> <p className="title">zrok</p>
<Logout user={user} logout={() => { <div class="header-left">
setUser(null); <div>
localStorage.clear(); <Logout user={user} logout={() => {
}}/> setUser(null);
</header> localStorage.clear();
}}/>
</div>
<div>
<Version/>
</div>
</div>
</div>
<div className="main">
<Identities user={user}/>
</div>
</div>
</div> </div>
); );
} }

View File

@ -4,7 +4,7 @@ const Logout = (props) => {
} }
return ( return (
<button onClick={onClick}>Log Out {props.user.email}</button> <a onClick={onClick}>[x] {props.user.email}</a>
); );
} }

View File

@ -1,8 +1,6 @@
body { body {
margin: 0; margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', font-family: 'JetBrains Mono', Consolas, 'Courier New', monospace;
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
-webkit-font-smoothing: antialiased; -webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale; -moz-osx-font-smoothing: grayscale;
} }
@ -14,4 +12,37 @@ code {
h1, h2, h3, h4, h5, h6 { h1, h2, h3, h4, h5, h6 {
font-family: 'Russo One', sans-serif; font-family: 'Russo One', sans-serif;
}
.title {
font-family: 'Russo One', sans-serif;
font-size: 3em;
}
.container {
display: grid;
margin-left: 10%;
margin-right: 10%;
}
.header {
background-color: #3c2693;
color: white;
padding-left: 2em;
padding-right: 2em;
display: flex;
}
.header-left {
width: 100%;
display: grid;
align-items: center;
justify-content: right;
}
.header-left div {
text-align: right;
}
.main {
padding: 2em;
} }