A page that says hello world that you can see on real earth from space
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>Hello World from Earth</title>
<style>
:root{color-scheme:dark}
*{box-sizing:border-box}
html,body{margin:0;width:100%;height:100%;overflow:hidden}
body{
display:grid;place-items:center;background:#020611;color:#eaf7ff;
font-family:system-ui,-apple-system,Segoe UI,sans-serif;
}
.space{
position:relative;width:100vw;height:100vh;overflow:hidden;
background:
radial-gradient(circle at 50% 52%,#102b4f 0 1px,transparent 2px),
radial-gradient(circle at 15% 28%,#fff 0 1px,transparent 1.8px),
radial-gradient(circle at 81% 19%,#b9ddff 0 1px,transparent 1.8px),
radial-gradient(circle at 74% 78%,#fff 0 1px,transparent 1.8px),
radial-gradient(ellipse at 50% 60%,#07152a 0,#020611 62%);
}
.space:before,.space:after{
content:"";position:absolute;inset:0;pointer-events:none;opacity:.7;
background-image:radial-gradient(#d5ecff 0 1px,transparent 1.2px);
background-size:137px 113px;transform:rotate(17deg);
}
.space:after{background-size:211px 181px;transform:rotate(-23deg);opacity:.4}
canvas{position:absolute;inset:0;width:100%;height:100%}
.title{
position:absolute;top:clamp(24px,7vh,72px);left:0;right:0;text-align:center;
letter-spacing:.28em;text-transform:uppercase;font-size:clamp(11px,1.4vw,15px);
color:#a9c7df;text-shadow:0 0 18px #49baff;
}
.title b{display:block;margin-top:10px;color:#fff;font-size:clamp(25px,5vw,58px);letter-spacing:.08em;font-weight:650}
.caption{
position:absolute;bottom:clamp(25px,7vh,68px);left:50%;transform:translateX(-50%);
text-align:center;color:#9ab6ce;font-size:12px;letter-spacing:.16em;
text-transform:uppercase;white-space:nowrap
}
button{
position:absolute;right:24px;bottom:22px;border:1px solid #52728e;border-radius:99px;
background:#071827cc;color:#e9f8ff;padding:10px 16px;font:inherit;font-size:12px;
cursor:pointer;backdrop-filter:blur(8px)
}
button:hover,button:focus-visible{background:#12324c;outline:2px solid #72d8ff;outline-offset:3px}
</style>
</head>
<body>
<main class="space" aria-label="A view of Earth from space with the words Hello World">
<canvas id="earth"></canvas>
<div class="title">A message from our planet <b>HELLO WORLD</b></div>
<div class="caption">Earth · 40,075 km around · somewhere in the night</div>
<button id="toggle" type="button">Pause orbit</button>
</main>
<script>
const c=document.querySelector("canvas"),x=c.getContext("2d"),btn=document.querySelector("#toggle");
let w,h,dpr,paused=false,t=0,last=0;
const land=[
[[-.88,-.08],[-.77,-.24],[-.63,-.27],[-.56,-.43],[-.43,-.48],[-.34,-.34],[-.39,-.18],[-.52,-.08],[-.56,.12],[-.68,.22],[-.79,.15]],
[[-.34,-.02],[-.19,-.03],[-.12,.13],[-.19,.28],[-.25,.48],[-.39,.62],[-.47,.48],[-.40,.29]],
[[-.02,-.44],[.13,-.39],[.20,-.24],[.35,-.26],[.45,-.15],[.60,-.19],[.75,-.08],[.84,.06],[.72,.15],[.57,.10],[.48,.22],[.30,.18],[.22,.05],[.08,.08],[-.05,-.04]],
[[.05,.16],[.19,.19],[.28,.30],[.24,.48],[.12,.64],[-.01,.57],[-.08,.38]],
[[.45,.34],[.57,.31],[.67,.43],[.59,.54],[.46,.51]]
];
function size(){dpr=devicePixelRatio||1;w=innerWidth;h=innerHeight;c.width=w*dpr;c.height=h*dpr;x.setTransform(dpr,0,0,dpr,0,0)}
function path(poly,cx,cy,r,shift){
x.beginPath();poly.forEach((p,i)=>{let lon=p[0]*Math.PI+shift, lat=p[1]*Math.PI*.54;
let X=cx+r*Math.cos(lat)*Math.sin(lon),Y=cy-r*Math.sin(lat), z=Math.cos(lat)*Math.cos(lon);
if(z<-.08)return; i?x.lineTo(X,Y):x.moveTo(X,Y)});x.closePath();x.fill()
}
function draw(ms){
if(!last)last=ms; let dt=(ms-last)/1000;last=ms;if(!paused)t+=dt;
x.clearRect(0,0,w,h);let r=Math.min(w,h)*.29,cx=w/2,cy=h*.53,shift=t*.16;
let g=x.createRadialGradient(cx-r*.35,cy-r*.42,r*.05,cx,cy,r*1.08);
g.addColorStop(0,"#287fc3");g.addColorStop(.55,"#075287");g.addColorStop(1,"#011b35");
x.shadowColor="#38bfff";x.shadowBlur=r*.16;x.beginPath();x.arc(cx,cy,r,0,7);x.fillStyle=g;x.fill();x.shadowBlur=0;
x.save();x.beginPath();x.arc(cx,cy,r,0,7);x.clip();
x.fillStyle="#49b86e";land.forEach(p=>path(p,cx,cy,r,shift));
x.fillStyle="#9bd57b";x.globalAlpha=.35;land.slice(0,3).forEach(p=>path(p,cx,cy,r,shift+.03));x.globalAlpha=1;
let night=x.createLinearGradient(cx-r,cy,cx+r,cy);night.addColorStop(0,"#000816");night.addColorStop(.48,"transparent");night.addColorStop(1,"#000b20");
x.fillStyle=night;x.fillRect(cx-r,cy-r,cx+r*2,r*2);
x.strokeStyle="#b9edff";x.lineWidth=2;x.font=`700 ${Math.max(16,r*.13)}px system-ui`;x.textAlign="center";x.textBaseline="middle";
x.shadowColor="#8be9ff";x.shadowBlur=14;x.fillStyle="#fff";x.fillText("HELLO WORLD",cx,cy+r*.08);x.restore();
x.strokeStyle="#6edbff";x.globalAlpha=.55;x.lineWidth=1.5;x.beginPath();x.arc(cx,cy,r+3,0,7);x.stroke();x.globalAlpha=1;
requestAnimationFrame(draw)
}
addEventListener("resize",size);btn.onclick=()=>{paused=!paused;btn.textContent=paused?"Resume orbit":"Pause orbit"};size();requestAnimationFrame(draw);
</script>
</body>
</html>
Nothing. This page is entirely self-contained and contacts no other website when it runs.
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 Maitri Mistry. Licensed under the MIT License. Published on Globefin.
Provided as is, without warranty. Any external libraries it loads keep their own licences. Terms →
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.