Spruce it up a bit (unfinished)
This commit is contained in:
parent
f3728cc981
commit
790a9f4a7d
4 changed files with 74 additions and 13 deletions
BIN
static/Nekomata.png
Normal file
BIN
static/Nekomata.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 514 KiB |
|
@ -1,16 +1,24 @@
|
||||||
|
:root {
|
||||||
|
--red: #cb0b0b;
|
||||||
|
--blue: #2081c3;
|
||||||
|
--large: 2em;
|
||||||
|
--medium: 1em;
|
||||||
|
}
|
||||||
|
|
||||||
html,
|
html,
|
||||||
body {
|
body {
|
||||||
background: linear-gradient(300deg, #cb0b0b, #2081c3);
|
background: linear-gradient(300deg, var(--red), var(--blue));
|
||||||
background-size: 100vw 100vh;
|
background-size: 100vw 100vh;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
min-height: 100vh;
|
min-height: 100vh;
|
||||||
height: 100vh;
|
height: 100vh;
|
||||||
|
font-family: sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
dialog {
|
dialog {
|
||||||
background-color: white;
|
background-color: white;
|
||||||
border: 0;
|
border: 0;
|
||||||
border-radius: 2em;
|
border-radius: var(--large);
|
||||||
opacity: 0;
|
opacity: 0;
|
||||||
transition: opacity 0.125s ease-out;
|
transition: opacity 0.125s ease-out;
|
||||||
}
|
}
|
||||||
|
@ -35,6 +43,15 @@ dialog[open] {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
header {
|
||||||
|
display: flex;
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
abbr[title] {
|
||||||
|
text-decoration-color: var(--blue);
|
||||||
|
}
|
||||||
|
|
||||||
.flex-vcenter {
|
.flex-vcenter {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
|
@ -42,3 +59,28 @@ dialog[open] {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.flex-row {
|
||||||
|
display: flex;
|
||||||
|
flex-direction: row;
|
||||||
|
}
|
||||||
|
|
||||||
|
.half-width {
|
||||||
|
min-width: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.half-height {
|
||||||
|
min-height: 50%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.separator-bottom {
|
||||||
|
border-bottom: solid 1px #0008;
|
||||||
|
}
|
||||||
|
|
||||||
|
.margin-auto-top {
|
||||||
|
margin-top: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
.margin-large-bottom {
|
||||||
|
margin-bottom: var(--large);
|
||||||
|
}
|
|
@ -14,9 +14,16 @@
|
||||||
getMainDialog().show(); // Don't show until the page is ready
|
getMainDialog().show(); // Don't show until the page is ready
|
||||||
</script>
|
</script>
|
||||||
<div class="flex-vcenter">
|
<div class="flex-vcenter">
|
||||||
<dialog id="mainDialog">
|
<dialog id="mainDialog" class="half-width half-height">
|
||||||
|
<header class="separator-bottom margin-large-bottom">
|
||||||
|
<div class="flex-row">
|
||||||
<h1>FeDirect</h1>
|
<h1>FeDirect</h1>
|
||||||
<p>By Nekomata</p>
|
<p class="margin-auto-top">  By Nekomata</p>
|
||||||
|
</div>
|
||||||
|
<img src="/static/nekomata_small.png" alt="Nekomata Logo" style="height: 4em;" />
|
||||||
|
</header>
|
||||||
|
<div class="flex-row">
|
||||||
|
<div class="half-width">
|
||||||
<form>
|
<form>
|
||||||
<input id="radio" type="radio" />
|
<input id="radio" type="radio" />
|
||||||
<label for="radio">
|
<label for="radio">
|
||||||
|
@ -25,6 +32,9 @@
|
||||||
</form>
|
</form>
|
||||||
<br>
|
<br>
|
||||||
<button onclick="showAddInstanceDialog()">Add an instance</button>
|
<button onclick="showAddInstanceDialog()">Add an instance</button>
|
||||||
|
</div>
|
||||||
|
<div class="half-width"></div>
|
||||||
|
</div>
|
||||||
</dialog>
|
</dialog>
|
||||||
</div>
|
</div>
|
||||||
<dialog id="addInstance">
|
<dialog id="addInstance">
|
||||||
|
@ -35,6 +45,15 @@
|
||||||
</label>
|
</label>
|
||||||
<input id="instanceHost" type="text" name="instanceHost" />
|
<input id="instanceHost" type="text" name="instanceHost" />
|
||||||
<br>
|
<br>
|
||||||
|
<input id="autoQueryMetadata" type="checkbox" name="autoQueryMetadata" checked />
|
||||||
|
<label for="autoQueryMetadata">
|
||||||
|
<abbr title="This makes a single API request to FeDirect to automatically try to detect instance metadata, such as the name, software, and an icon.
|
||||||
|
We do this on the backend to avoid CORS problems.
|
||||||
|
We do not track or save any requests or data.">
|
||||||
|
Automatically query metadata
|
||||||
|
</abbr>
|
||||||
|
</label>
|
||||||
|
<br><br>
|
||||||
<button type="submit">OK</button>
|
<button type="submit">OK</button>
|
||||||
<button type="reset" class="close">Cancel</button>
|
<button type="reset" class="close">Cancel</button>
|
||||||
</form>
|
</form>
|
||||||
|
|
BIN
static/nekomata_small.png
Normal file
BIN
static/nekomata_small.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 23 KiB |
Loading…
Add table
Reference in a new issue