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 (
<div className="zrok">
<header className="zrok-header">
<h1>zrok</h1>
<Version/>
<Identities user={user}/>
<Logout user={user} logout={() => {
setUser(null);
localStorage.clear();
}}/>
</header>
<div className="container">
<div className="header">
<img src="ziggy.png" width="100px"/>
<p className="title">zrok</p>
<div class="header-left">
<div>
<Logout user={user} logout={() => {
setUser(null);
localStorage.clear();
}}/>
</div>
<div>
<Version/>
</div>
</div>
</div>
<div className="main">
<Identities user={user}/>
</div>
</div>
</div>
);
}

View File

@ -4,7 +4,7 @@ const Logout = (props) => {
}
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 {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
sans-serif;
font-family: 'JetBrains Mono', Consolas, 'Courier New', monospace;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
}
@ -14,4 +12,37 @@ code {
h1, h2, h3, h4, h5, h6 {
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;
}