JSFiddle - React, Tailwind, and code Playground

by Aaron von Schassen

HTML

<div class="container">
  <header>
    <h1>Smart Energy Meter</h1>
  </header>
  
  <div class="content">
    <div>
      <nav>
        <ul>
          <li><a href="Auswertung">Auswertung</a></li>
          <li><a href="Konfiguration">Konfiguration</a></li>
        </ul>
      </nav>
      
      <article>
        <h1>Konfiguration</h1>
        Datum/Zeit: <br>
        <input type="datetime-local" id="myDate" onblur="myFunction()">

        <form id="myForm" action="/ati" method="get">
          <input type="text" id="epoch_nbr" value="" readonly>
          <input type="checkbox" name="checker" > Ich bin mir bewusst, dass dabei das Gerät zurückgesetzt und der Speicher geleert wird.<br>
          <input type="submit" id="button" value="Aktualisieren" >
        </form>

        <script>
					document.getElementById("button").disabled = true;
				</script>
        <br><br>
        <form id="myForm" action="/apw" method="get">
          Neues Passwort setzen:<br>
          <input type="password" id="pw" value="******"> <br>
          <input type="submit" id="button" value="Aktualisieren" >
        </form>
        <br><br>

        <script>
					function myFunction() {
						var date = document.getElementById("myDate").value;
						var mydate = new Date(date);
						var epoch = mydate.getTime();
						document.getElementById("epoch_nbr").value = epoch;
						document.getElementById("button").disabled = false;
					}
				</script>
      </article>
    </div>
  </div>
  <footer>Copyright &copy; MK</footer>
</div>

CSS

* {
  margin: 0;
  padding: 0;
}

html, body { 
  height: 100%; 
  width: 100%; 
}

.container {
  width: 100%;
  height: 100%;
}

header{
  border-bottom:6px double gray;
  padding: 1px;
  color: white;
  background-color: black;
  text-align: center;
  padding: 21.4px 0;
}

.content {
  height: calc(100% - 110.8px);
}

.content > div:first-child {
  display: flex;
  flex-start: left;
  flex-flow: row;
  height: 100%;
}

nav {
  margin: 0px;
  padding: 1em;
  margin-bottom: 10px;
}
nav > ul {
  list-style-type: none;
  padding: 0;
  margin: 0px; 
}

nav > ul a {
  text-decoration: none;
}

article {
  border-left: 1px solid gray;
  padding: 10px;
  height: 100%;
}

footer {
  position: fixed;
  width: 100%;
  bottom: 0;
  border-top:6px double gray;
  padding: 0.5em;
  color: white;
  background-color: black;
  text-align: center;
}