← Demos
Web Pages · Hello World

Torrie Frist - Hello World

by Torrie Frist Aug 30, 2026 7 views 3.9 KB
Sandbox · torrie-frist-hello-world · no access to your account
View source — the whole page is this one file
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Hello World</title>
<style>
  html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    background: #cdeeff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Segoe UI', Helvetica, Arial, sans-serif;
    overflow: hidden;
    cursor: pointer;
    user-select: none;
  }

  .border-frame {
    position: absolute;
    inset: 28px;
    border-radius: 40px;
    pointer-events: none;
  }

  /* Unique scalloped border made of repeating radial bumps */
  .border-frame::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 40px;
    padding: 14px;
    background:
      repeating-radial-gradient(circle at 0 50%, #ffb3d9 0 6px, transparent 7px 20px),
      repeating-linear-gradient(90deg, #7fd8ff 0 20px, #ffb3d9 20px 40px);
    -webkit-mask:
      linear-gradient(#fff 0 0) content-box,
      linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
  }

  /* dotted inner accent ring */
  .border-frame::after {
    content: "";
    position: absolute;
    inset: 22px;
    border-radius: 28px;
    border: 3px dotted #ffd1ea;
  }

  h1 {
    margin: 0;
    font-size: clamp(2.5rem, 8vw, 5.5rem);
    font-weight: 800;
    letter-spacing: 2px;
    color: #ffb6da;
    text-shadow: 0 0 12px rgba(255, 182, 218, 0.7), 0 3px 0 rgba(255,255,255,0.6);
    position: relative;
    z-index: 1;
    animation: bob 3s ease-in-out infinite;
  }

  @keyframes bob {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-8px); }
  }

  .hint {
    position: absolute;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    color: #6fb8dd;
    font-size: 0.95rem;
    letter-spacing: 1px;
    opacity: 0.8;
  }

  canvas {
    position: fixed;
    top: 0;
    left: 0;
    pointer-events: none;
  }
</style>
</head>
<body>
  <div class="border-frame"></div>
  <h1>Hello World</h1>
  <div class="hint">click anywhere for confetti</div>
  <canvas id="confetti"></canvas>

  <script>
    const canvas = document.getElementById('confetti');
    const ctx = canvas.getContext('2d');
    function resize() {
      canvas.width = window.innerWidth;
      canvas.height = window.innerHeight;
    }
    resize();
    window.addEventListener('resize', resize);

    const blues = ['#1e90ff', '#4cc9f0', '#0077b6', '#00b4d8', '#90e0ef', '#023e8a'];
    let particles = [];

    function burst(x, y) {
      for (let i = 0; i < 90; i++) {
        const angle = Math.random() * Math.PI * 2;
        const speed = Math.random() * 8 + 2;
        particles.push({
          x, y,
          vx: Math.cos(angle) * speed,
          vy: Math.sin(angle) * speed - 2,
          size: Math.random() * 6 + 4,
          color: blues[Math.floor(Math.random() * blues.length)],
          rotation: Math.random() * 360,
          spin: (Math.random() - 0.5) * 20,
          life: 1,
          shape: Math.random() > 0.5 ? 'rect' : 'circle'
        });
      }
    }

    function animate() {
      ctx.clearRect(0, 0, canvas.width, canvas.height);
      particles.forEach(p => {
        p.vy += 0.15; // gravity
        p.x += p.vx;
        p.y += p.vy;
        p.rotation += p.spin;
        p.life -= 0.012;

        ctx.save();
        ctx.globalAlpha = Math.max(p.life, 0);
        ctx.translate(p.x, p.y);
        ctx.rotate((p.rotation * Math.PI) / 180);
        ctx.fillStyle = p.color;
        if (p.shape === 'rect') {
          ctx.fillRect(-p.size / 2, -p.size / 4, p.size, p.size / 2);
        } else {
          ctx.beginPath();
          ctx.arc(0, 0, p.size / 2, 0, Math.PI * 2);
          ctx.fill();
        }
        ctx.restore();
      });
      particles = particles.filter(p => p.life > 0 && p.y < canvas.height + 50);
      requestAnimationFrame(animate);
    }
    animate();

    document.body.addEventListener('click', (e) => {
      burst(e.clientX, e.clientY);
    });
  </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 Torrie Frist. 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.