try adding some polish

This commit is contained in:
kjeld Schouten-Lebbing
2021-08-15 13:08:03 +02:00
parent 5eb2cfab4c
commit 938d0e75a2
2 changed files with 145 additions and 12 deletions

View File

@@ -4,3 +4,129 @@
--md-primary-fg-color--dark: #000000;
--md-footer-bg-color--dark: #000000;
}
body {
align-items: center;
background-color: #000;
display: flex;
justify-content: center;
height: 100vh;
}
.form {
background-color: #15172b;
border-radius: 20px;
box-sizing: border-box;
height: 420px;
padding: 20px;
width: 320px;
}
.title {
color: #eee;
font-family: sans-serif;
font-size: 36px;
font-weight: 600;
margin-top: 30px;
}
.subtitle {
color: #eee;
font-family: sans-serif;
font-size: 16px;
font-weight: 600;
margin-top: 10px;
}
.input-container {
height: 50px;
position: relative;
width: 100%;
}
.ic1 {
margin-top: 40px;
}
.ic2 {
margin-top: 30px;
}
.input {
background-color: #303245;
border-radius: 12px;
border: 0;
box-sizing: border-box;
color: #eee;
font-size: 18px;
height: 100%;
outline: 0;
padding: 4px 20px 0;
width: 100%;
}
.cut {
background-color: #15172b;
border-radius: 10px;
height: 20px;
left: 20px;
position: absolute;
top: -20px;
transform: translateY(0);
transition: transform 200ms;
width: 76px;
}
.cut-short {
width: 50px;
}
.input:focus ~ .cut,
.input:not(:placeholder-shown) ~ .cut {
transform: translateY(8px);
}
.placeholder {
color: #65657b;
font-family: sans-serif;
left: 20px;
line-height: 14px;
pointer-events: none;
position: absolute;
transform-origin: 0 50%;
transition: transform 200ms, color 200ms;
top: 20px;
}
.input:focus ~ .placeholder,
.input:not(:placeholder-shown) ~ .placeholder {
transform: translateY(-30px) translateX(10px) scale(0.75);
}
.input:not(:placeholder-shown) ~ .placeholder {
color: #808097;
}
.input:focus ~ .placeholder {
color: #dc2f55;
}
.submit {
background-color: #08d;
border-radius: 12px;
border: 0;
box-sizing: border-box;
color: #eee;
cursor: pointer;
font-size: 18px;
height: 50px;
margin-top: 38px;
// outline: 0;
text-align: center;
width: 100%;
}
.submit:active {
background-color: #06b;
}

View File

@@ -48,21 +48,28 @@ function generatesvc(name, app, service) {
</SCRIPT>
<div id="svcdns">
<h2>Generate Internal DNS Name:</h2>
<div id="svcdns-form">
<FORM NAME="frameform" ACTION="" METHOD="GET"><BR>
<input type="text" NAME="name">
<input type="text" NAME="app">
<input type="text" NAME="service">
<INPUT TYPE="button" NAME="button" Value="Click" onClick="process(this.form)">
<div class="form">
<div class="subtitle">Generate Internal DNS Name:</div>
<div class="input-container ic1">
<input id="name" class="input" type="text" placeholder=" " />
<div class="cut"></div>
<label for="name" class="placeholder">Name:</label>
</div>
<div class="input-container ic2">
<input id="app" class="input" type="text" placeholder=" " />
<div class="cut"></div>
<label for="app" class="placeholder">App</label>
</div>
<div class="input-container ic2">
<input id="service" class="input" type="text" placeholder=" " />
<div class="cut cut-short"></div>
<label for="service" class="placeholder">Service</>
</div>
<INPUT TYPE="button" class="submit" NAME="button" Value="Generate" onClick="process(this.form)">
</div>
</FORM>
</div>
</div>
#### Video Guide
![type:video](https://www.youtube.com/embed/TKh7NXjk91w)