JSFiddle - React, Tailwind, and code Playground

by cloveras

HTML

<!DOCTYPE html>
<html lang="en-US">
<head>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">

  <title>Lillevik Lofoten webcam: 2023-07-18</title>

<!-- Javascript for navigation using arrow keys. -->
<script>
  function leftArrowPressed() { window.location.href="?type=day&date=20230717&size="; }
  function rightArrowPressed() { window.location.href="?type=day&date=20230719&size="; }
  function upArrowPressed() { window.location.href="?type=month&year=2023&month=07"; }
  function downArrowPressed() { window.location.href="?type=one&image=20230718230325"; }
  document.onkeydown = function(evt) {
    evt = evt || window.event;
    switch (evt.keyCode) {
      case 37: leftArrowPressed(); break;
      case 38: upArrowPressed(); break;
      case 39: rightArrowPressed(); break;
      case 40: downArrowPressed(); break;
    }
  };
</script>

    <!-- Touch gestures -->
    <script src="https://hammerjs.github.io/dist/hammer.min.js"></script>

</head>
<body>

<h1>Lillevik Lofoten webcam: 2023-07-18</h1>

<p>
<a href=".">Webcam</a>
at
<a href="https://lilleviklofoten.no">Lillevik Lofoten</a>,
<a href="https://maps.app.goo.gl/nZDV8TKvMUvEcLeQ7">Vik, Gimsøy, Lofoten, Norway</a>.
See also: <a href="https://lilleviklofoten.no/webcams/">other webcams in Lofoten</a>.
</p>
<p>Midnight sun &#9728;. Displaying photos taken between 23:00 and 01:00.</p>

<p>
<a href="?type=day&date=20230718&size=mini">Mini photos</a>. <a href="?type=day&date=20230718&size=large">Large photos</a>. </p>

<p>
<a href="?type=day&date=20230717&size=">Previous: Jul 17</a>.
<a href="?type=day&date=20230719">Next: Jul 19</a>.
<a href="?type=day&date=20231116">Today: Nov 16</a>, 
<a href="?type=month&year=2023&month=07">Entire Nov</a>.
<a href="?type=year&year=2023">Entire 2023</a>.
</p>

<p>
<a style="position: relative; display: inline-block;" href="?type=one&image=20230718235625"><img alt="Lillevik Lofoten webcam: 2023-07-18 23:56" title="2023-07-18 23:56" width="160" height="120"...

CSS

body {
  font-family: Helvetica, Verdana, Arial;
  font-size: 14px;

  width: 95%;
  margin-top: 2%;
  margin-left: 5%;
  margin-right: 5%;
  margin-bottom: 5%;
}

a:link, a:visited {
    color: black; 
}

a:hover {
    color: white;
    background-color: black;
}
a:active {
    color: red;
}

img {
    height: auto;
    max-width: 100%;
    max-height: 100%;
    position: relative;
    display: inline-block;
    z-index: -1;
}  
  
  .data-overlay {
    font-family: Helvetica, Arial, sans-serif; 
    font-size: 16px;
    color: white;
    background-color: black;
    width:30px;
    line-height: 16px;
    text-align: center;
    z-index: 2;
    border-radius: 3px;
    position: relative;
    right: 50px;
    bottom: 10px;
}