← Demos
Web Pages · Hello World

Don't be easily frightened! say hello!

by Junior Montgomery Aug 27, 2026 22 views 6.3 KB
Sandbox · don-t-be-easily-frightened-say-hello · 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">
<title>Hello, World</title>
<style>
  :root { color-scheme: dark; }
  * { box-sizing: border-box; }
  body {
    margin: 0; min-height: 100vh; display: grid; place-items: center;
    overflow: hidden; color: #fff4df; font-family: Georgia, "Times New Roman", serif;
    background: radial-gradient(circle at 50% 35%, #5b1d2b 0, #241326 38%, #090a16 100%);
  }
  main { text-align: center; padding: 2rem; position: relative; z-index: 1; }
  .eyebrow { color: #f1a879; letter-spacing: .25em; text-transform: uppercase; font: 700 .72rem system-ui; }
  h1 { margin: .5rem 0 1.7rem; font-size: clamp(3rem, 10vw, 7rem); line-height: .9; }
  button {
    border: 0; border-radius: 999px; padding: 1rem 2.1rem; cursor: pointer;
    color: #fff8e9; background: linear-gradient(135deg,#ef594e,#b51f4c);
    box-shadow: 0 12px 35px #0008, inset 0 1px #ffffff66;
    font: 700 clamp(1.25rem, 4vw, 2rem) Georgia; transition: transform .2s, filter .2s;
  }
  button:hover { transform: translateY(-4px) scale(1.03); filter: brightness(1.15); }
  button:focus-visible, .close:focus-visible { outline: 3px solid #ffd36a; outline-offset: 5px; }
  .subtitle { margin: 1rem 0 0; color: #f0c8bd; font: italic 1.05rem system-ui; }
  .overlay {
    position: fixed; inset: 0; display: grid; place-items: center; z-index: 5;
    background: #050308; opacity: 0; pointer-events: none; transition: opacity .12s;
  }
  .overlay.show { opacity: 1; pointer-events: auto; }
  .overlay.show .clown { animation: lunge .42s cubic-bezier(.1,.8,.2,1) both; }
  .clown { width: min(92vw, 650px); aspect-ratio: 1/1.08; position: relative; transform: scale(.15); }
  .hair { position: absolute; inset: 2% -4% 8%; background: #b91e27; clip-path: polygon(50% 0,62% 13%,81% 2%,79% 22%,100% 25%,84% 43%,100% 58%,80% 63%,88% 88%,62% 78%,50% 100%,37% 79%,12% 91%,20% 65%,0 57%,16% 42%,1% 24%,23% 22%,19% 3%,39% 13%); filter: drop-shadow(0 0 18px #ef283d); }
  .face { position: absolute; inset: 7% 15% 8%; border-radius: 48% 48% 43% 43%; background: radial-gradient(ellipse at 50% 30%,#fffef0 0,#e9dcc5 58%,#9a7167 100%); box-shadow: inset 0 -20px 30px #543338, 0 10px 30px #000; }
  .ear { position: absolute; top: 42%; width: 15%; height: 20%; border-radius: 50%; background:#d89788; }
  .ear.left { left: 7%; } .ear.right { right: 7%; }
  .brow { position:absolute; top:25%; width:28%; height:8%; border-top:13px solid #3b171b; border-radius:50%; }
  .brow.left { left:16%; transform:rotate(14deg); } .brow.right { right:16%; transform:rotate(-14deg); }
  .eye { position:absolute; top:32%; width:16%; height:18%; border-radius:50%; background:#fdfbe8; box-shadow: inset 0 0 0 5px #32202b; }
  .eye:after { content:""; display:block; width:45%; aspect-ratio:1; margin:28% auto; border-radius:50%; background:#111; box-shadow:0 0 0 5px #9d2c2d; }
  .eye.left { left:22%; } .eye.right { right:22%; }
  .nose { position:absolute; top:46%; left:40%; width:20%; aspect-ratio:1; border-radius:50%; background:radial-gradient(circle at 35% 25%,#ffaaa0,#df1727 58%,#6f101f); box-shadow:0 5px 12px #57202a; }
  .paint { position:absolute; top:27%; width:13%; height:28%; background:#c62332; border-radius:50%; opacity:.8; }
  .paint.left { left:8%; transform:rotate(22deg); } .paint.right { right:8%; transform:rotate(-22deg); }
  .mouth { position:absolute; left:18%; right:18%; bottom:10%; height:29%; border-radius:50% 50% 46% 46%; background:#220c15; border:9px solid #7b182b; overflow:hidden; transform:rotate(2deg); }
  .teeth { height:32%; background:#fff9dd; clip-path:polygon(0 0,100% 0,96% 75%,88% 42%,80% 78%,70% 40%,60% 75%,50% 38%,40% 78%,30% 42%,20% 75%,10% 40%,3% 78%); }
  .close { position:absolute; top:1.4rem; right:1.4rem; border:1px solid #ffffff66; background:#ffffff18; color:white; border-radius:50%; width:44px; height:44px; font-size:1.5rem; cursor:pointer; }
  .caption { position:absolute; bottom:1.5rem; left:0; right:0; text-align:center; font:700 1rem system-ui; color:#ffd5bf; }
  @keyframes lunge { 0% { transform:scale(.15) rotate(-4deg); } 65% { transform:scale(1.13) rotate(2deg); } 100% { transform:scale(1); } }
  @media (prefers-reduced-motion:reduce) { *,*::before,*::after { animation-duration:.01ms!important; transition:none!important; } }
</style>
</head>
<body>
<main>
  <div class="eyebrow">A tiny experiment in surprise</div>
  <h1>Say hello.</h1>
  <button id="hello">Hello, World</button>
  <p class="subtitle">a small button with a large personality.</p>
</main>

<div class="overlay" id="scare" role="dialog" aria-label="Surprise" aria-hidden="true">
  <button class="close" id="close" aria-label="Close">×</button>
  <div class="clown" aria-hidden="true">
    <div class="hair"></div><div class="face"></div>
    <div class="ear left"></div><div class="ear right"></div>
    <div class="brow left"></div><div class="brow right"></div>
    <div class="eye left"></div><div class="eye right"></div>
    <div class="paint left"></div><div class="paint right"></div>
    <div class="nose"></div><div class="mouth"><div class="teeth"></div></div>
  </div>
  <div class="caption">HELLO, WORLD.</div>
</div>

<script>
  const overlay = document.getElementById('scare');
  const hello = document.getElementById('hello');
  const close = document.getElementById('close');
  function tone() {
    try {
      const a = new AudioContext(), o = a.createOscillator(), g = a.createGain();
      o.type = 'sawtooth'; o.frequency.setValueAtTime(90,a.currentTime);
      o.frequency.exponentialRampToValueAtTime(520,a.currentTime+.28);
      g.gain.setValueAtTime(.001,a.currentTime); g.gain.exponentialRampToValueAtTime(.18,a.currentTime+.03);
      g.gain.exponentialRampToValueAtTime(.001,a.currentTime+.42); o.connect(g).connect(a.destination); o.start(); o.stop(a.currentTime+.45);
    } catch(e) {}
  }
  function show() { overlay.classList.add('show'); overlay.setAttribute('aria-hidden','false'); tone(); close.focus(); }
  function hide() { overlay.classList.remove('show'); overlay.setAttribute('aria-hidden','true'); hello.focus(); }
  hello.addEventListener('click', show); close.addEventListener('click', hide);
  overlay.addEventListener('click', e => { if (e.target === overlay) hide(); });
  document.addEventListener('keydown', e => { if (e.key === 'Escape' && overlay.classList.contains('show')) hide(); });
</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 Junior Montgomery. 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.