JSFiddle - React, Tailwind, and code Playground
by Snj
HTML
<div id="info"><button id="checkButton">Run/Check</button><b> ::</b> Information Template</div>
<div id="inputSlider"><input type="range" id="range" min="1" max="100" value="15"></div>
<div id="wrapper">
<div id="mainC">
<div id="mainF">
<span id="console">Console <b>::</b></span>
<span style="margin-left:0px;">Scan: #</span><b><span id="state">0</span></b>
<span style="margin-left:40px;"><b>::</b> Result:</span>
<b><span id="result">Nothing</span></b>
</div>
<p>Information and such...</p>
</div>
</div>
CSS
html { box-sizing: border-box; }
*, *::before, *::after { box-sizing: inherit; }
body {
font-family: monospace;
margin: 0.5rem 0.5rem 0.5rem;
background: #565656;
display: flex;
flex-direction: column;
--size: 15px;
}
p { font-size: var(--size); }
#checkButton {
background: #6f6f6fab;
box-shadow: 0px 0px 6px #ffffffb0;
border-radius: 5px;
border: #313131 solid 1px;
}#checkButton:hover { box-shadow: 0px 0px 6px #8aff9fb0; cursor: pointer; }
#wrapper {
align-items: center;
justify-content: center;
text-align: center;
border-radius: 3px;
width: calc(100% - 20px);
margin: auto;
background: #8e8e8e;
box-shadow: 0px 6.2px 15px #272727;
padding: 0.5rem;
height: auto;
min-height: 150px;
margin-top: 0px;
padding-bottom: 30px;
position: relative;
border: #313131 solid 1px;
z-index: 1;
}
#mainC { display: block; z-index: 2; }
#mainF {
padding: 1px;
border: #5a5a5a solid 1px;
color: #060606;
border-left: none;
position: absolute;
width: calc(100% - 20px);
bottom: 4px;
border-right: none;
}
#inputSlider{
text-align: center;
position: sticky;
opacity: 0.6;
display: grid;
top: 40px;
margin-left: 40px;
background: #00000036;
box-shadow: 3px 0px 10px black;
width: 90%;
z-index: 0;
}
#console {
margin-left: -4px;
left: 0px;
position: absolute;
text-align: left;
}
.scale {
position: absolute;
top: 50%;
left: 50%;
transform: translateX(-50%) translateY(-50%) scale(1);
width: var(--size);
}
JavaScript
range.addEventListener("input", function() {
document.body.style.setProperty("--size", this.value + "px");
});
document.getElementById("checkButton").onclick = function () {
//pass
};