← Demos
Web Pages · Hello World

Hello World Assignment

by Ethan Wheatley Sep 1, 2026 4 views 3.6 KB
Sandbox · hello-world-assignment · no access to your account
View source — the whole page is this one file
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Welcome to the Pool</title>

  <style>
    * {
      box-sizing: border-box;
    }

    body {
      margin: 0;
      min-height: 100vh;
      font-family: Arial, sans-serif;
      background: #12aee0;
      display: flex;
      justify-content: center;
      align-items: center;
      overflow: hidden;
    }

    .pool {
      position: relative;
      width: 100vw;
      height: 100vh;
      background:
        repeating-linear-gradient(
          0deg,
          rgba(255,255,255,0.12) 0px,
          rgba(255,255,255,0.12) 3px,
          transparent 3px,
          transparent 35px
        ),
        linear-gradient(135deg, #20c5ed, #087fc1);
      overflow: hidden;
    }

    .pool::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(ellipse at 20% 25%, rgba(255,255,255,.3), transparent 18%),
        radial-gradient(ellipse at 75% 60%, rgba(255,255,255,.25), transparent 20%),
        radial-gradient(ellipse at 45% 85%, rgba(255,255,255,.2), transparent 18%);
    }

    .edge {
      position: absolute;
      inset: 25px;
      border: 12px solid white;
      border-radius: 45px;
      box-shadow: inset 0 0 0 6px #b7e9f7;
    }

    .content {
      position: absolute;
      inset: 0;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      z-index: 2;
      text-align: center;
    }

    h1 {
      margin: 0 0 20px;
      padding: 25px 45px;
      border-radius: 20px;
      background: rgba(255,255,255,.9);
      color: #0878b5;
      font-size: clamp(40px, 7vw, 75px);
      box-shadow: 0 10px 30px rgba(0,0,0,.15);
    }

    #date {
      font-size: 25px;
      color: white;
      font-weight: bold;
      text-shadow: 0 2px 5px rgba(0,0,0,.3);
    }

    #time {
      margin-top: 8px;
      font-size: 42px;
      color: white;
      font-weight: bold;
      text-shadow: 0 2px 5px rgba(0,0,0,.3);
    }

    .bubble {
      position: absolute;
      width: 28px;
      height: 28px;
      border: 3px solid rgba(255,255,255,.7);
      border-radius: 50%;
      animation: rise 6s infinite ease-in;
    }

    .b1 { left: 15%; bottom: -40px; }
    .b2 { left: 35%; bottom: -80px; animation-delay: 2s; }
    .b3 { right: 25%; bottom: -50px; animation-delay: 1s; }
    .b4 { right: 10%; bottom: -100px; animation-delay: 3s; }

    @keyframes rise {
      from {
        transform: translateY(0);
        opacity: 0;
      }
      20% {
        opacity: .8;
      }
      to {
        transform: translateY(-110vh);
        opacity: 0;
      }
    }
  </style>
</head>

<body>

  <div class="pool">
    <div class="edge"></div>

    <div class="bubble b1"></div>
    <div class="bubble b2"></div>
    <div class="bubble b3"></div>
    <div class="bubble b4"></div>

    <div class="content">
      <h1>Welcome to the Pool!</h1>

      <div id="date"></div>
      <div id="time"></div>
    </div>
  </div>

  <script>
    function updateDateTime() {
      const now = new Date();

      const date = now.toLocaleDateString(undefined, {
        weekday: "long",
        year: "numeric",
        month: "long",
        day: "numeric"
      });

      const time = now.toLocaleTimeString(undefined, {
        hour: "numeric",
        minute: "2-digit",
        second: "2-digit"
      });

      document.getElementById("date").textContent = date;
      document.getElementById("time").textContent = time;
    }

    updateDateTime();
    setInterval(updateDateTime, 1000);
  </script>

</body>
</html>

Reaches out to

Nothing. This page is entirely self-contained and contacts no other website when it runs.

Licence

Published on Globefin under the MIT License. You may copy, change, and reuse this page, including commercially — just keep the notice below with it.

Copyright © 2026 Ethan Wheatley. Licensed under the MIT License. Published on Globefin.

Provided as is, without warranty. Any external libraries it loads keep their own licences. Terms →

Sandbox

Scripts run, but the demo has its own throwaway origin. It can't read your session or cookies, can't reach the page around it, and can't navigate your tab. Don't enter real passwords or personal data into any demo.