Create a page for a website called On Time. the app should be for an alarm that requires you to do certain tasks like take a picture of something or get up and walk around to get the alarm to go off.
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1">
<title>On Time — Wake up with purpose</title>
<style>
:root{--ink:#17213a;--muted:#68728b;--cream:#f7f5ef;--card:#fff;--blue:#4968ff;--mint:#bff1d3;--line:#e5e7ef;--coral:#ff836d}
*{box-sizing:border-box}body{margin:0;background:var(--cream);color:var(--ink);font-family:system-ui,-apple-system,Segoe UI,sans-serif;min-height:100vh}
main{max-width:1120px;margin:auto;padding:28px 24px 50px}.top{display:flex;justify-content:space-between;align-items:center;margin-bottom:54px}
.logo{display:flex;align-items:center;gap:11px;font-weight:800;font-size:1.25rem;letter-spacing:-.03em}.logo-mark{width:36px;height:36px;border-radius:12px;background:var(--blue);display:grid;place-items:center;color:white;font-size:20px;box-shadow:0 7px 18px #4968ff35}
.status{font-size:.82rem;color:#28754b;background:var(--mint);padding:9px 14px;border-radius:99px;font-weight:700}
.hero{display:grid;grid-template-columns:1.05fr .95fr;gap:70px;align-items:center}
.eyebrow{color:var(--blue);text-transform:uppercase;letter-spacing:.14em;font-size:.72rem;font-weight:800}
h1{font-size:clamp(3.2rem,7vw,6.5rem);line-height:.9;letter-spacing:-.085em;margin:14px 0 24px;max-width:650px}
.intro{font-size:1.08rem;line-height:1.65;color:var(--muted);max-width:510px}
.alarm-card{background:var(--card);border:1px solid var(--line);border-radius:30px;padding:28px;box-shadow:0 24px 60px #29375e12}
.card-head{display:flex;justify-content:space-between;align-items:start}.label{font-size:.78rem;color:var(--muted);font-weight:700}.time{font-size:4.3rem;line-height:1;letter-spacing:-.08em;font-weight:800;margin:8px 0}
.day{color:var(--muted);font-size:.95rem}.bell{width:54px;height:54px;border-radius:18px;background:#fff0df;display:grid;place-items:center;font-size:25px}
hr{border:0;border-top:1px solid var(--line);margin:25px 0}.row{display:flex;justify-content:space-between;align-items:center;margin:17px 0}.row strong{font-size:.93rem}.row small{color:var(--muted)}
.switch{width:44px;height:25px;border-radius:20px;background:var(--blue);padding:3px}.switch i{display:block;width:19px;height:19px;border-radius:50%;background:white;margin-left:19px}
button{border:0;font:inherit;font-weight:750;cursor:pointer}.primary{width:100%;background:var(--blue);color:white;padding:15px;border-radius:14px;margin-top:12px;box-shadow:0 9px 20px #4968ff35}.primary:hover{background:#3555ed}
.section{margin-top:90px}.section-title{display:flex;justify-content:space-between;align-items:end;margin-bottom:22px}.section h2{font-size:2rem;letter-spacing:-.06em;margin:0}.section-title p{color:var(--muted);margin:0}
.tasks{display:grid;grid-template-columns:repeat(2,1fr);gap:16px}.task{background:white;border:1px solid var(--line);border-radius:22px;padding:22px;display:flex;gap:17px;align-items:flex-start;min-height:150px}.task-icon{width:45px;height:45px;border-radius:14px;background:#edf0ff;display:grid;place-items:center;font-size:22px;flex:none}.task h3{margin:0 0 5px;font-size:1.05rem}.task p{margin:0;color:var(--muted);font-size:.9rem;line-height:1.45}.task button,.file-label{background:#f1f3f8;color:var(--ink);padding:9px 12px;border-radius:10px;font-size:.8rem;margin-top:14px;display:inline-block}.task button:hover,.file-label:hover{background:#e5e9f4}.complete{background:var(--mint)!important;color:#28754b!important}.progress{height:8px;border-radius:9px;background:#e9ebf2;margin-top:22px;overflow:hidden}.bar{height:100%;width:0;background:var(--blue);transition:.4s}
#file{display:none}.ringing{background:#fff1ed;border-color:#ffb4a5}.ringing .bell{animation:shake .35s infinite alternate}.ringing .time{color:#df513d}@keyframes shake{to{transform:rotate(14deg)}}footer{text-align:center;color:var(--muted);font-size:.82rem;margin-top:70px}
:focus-visible{outline:3px solid #ff9f43;outline-offset:3px}
@media(max-width:760px){main{padding:22px 17px 35px}.top{margin-bottom:42px}.status{font-size:.7rem}.hero{display:block}.hero>div:first-child{margin-bottom:35px}h1{font-size:clamp(3.3rem,18vw,5rem)}.section{margin-top:60px}.section-title{display:block}.section-title p{margin-top:8px}.tasks{grid-template-columns:1fr}.time{font-size:3.7rem}}
</style>
</head>
<body>
<main>
<header class="top">
<div class="logo"><span class="logo-mark">◒</span> On Time</div>
<div class="status">● Ready for tomorrow</div>
</header>
<section class="hero">
<div>
<div class="eyebrow">An alarm with follow-through</div>
<h1>Wake up.<br><em>Show up.</em></h1>
<p class="intro">On Time makes mornings active. Choose a few tiny challenges and your alarm stays on until you complete them.</p>
</div>
<div class="alarm-card" id="alarmCard">
<div class="card-head">
<div><div class="label">NEXT ALARM</div><div class="time">7:00<span style="font-size:1.4rem;letter-spacing:-.04em"> AM</span></div><div class="day">Tomorrow · Weekdays</div></div>
<div class="bell">⏰</div>
</div>
<hr>
<div class="row"><div><strong>Smart alarm</strong><br><small>Tasks must be complete to silence</small></div><div class="switch" aria-label="Smart alarm enabled"><i></i></div></div>
<div class="row"><div><strong>Gentle start</strong><br><small>Builds volume gradually</small></div><div class="switch" aria-label="Gentle start enabled"><i></i></div></div>
<button class="primary" id="test">Test alarm now</button>
</div>
</section>
<section class="section">
<div class="section-title"><div><h2>Your wake-up tasks</h2><p>Complete both to silence the test alarm.</p></div></div>
<div class="tasks">
<article class="task" id="photoTask">
<div class="task-icon">📸</div><div><h3>Take a morning photo</h3><p>Capture something bright from your morning. Your photo stays on this device.</p><label class="file-label" for="file">Choose photo</label><input id="file" type="file" accept="image/*"><button class="task-action" data-task="photo" hidden>Done</button></div>
</article>
<article class="task" id="moveTask">
<div class="task-icon">🚶</div><div><h3>Get up and move</h3><p>Walk around for ten seconds. A small start is still a start.</p><button class="task-action" data-task="move">Start movement</button></div>
</article>
</div>
<div class="progress" aria-label="Task progress"><div class="bar" id="bar"></div></div>
</section>
<footer>Small actions. Better mornings.</footer>
</main>
<script>
const test=document.querySelector('#test'), card=document.querySelector('#alarmCard'), bar=document.querySelector('#bar');
const tasks={photo:false,move:false}; let timer;
function update(){let done=Object.values(tasks).filter(Boolean).length;bar.style.width=done*50+'%';if(done===2&&card.classList.contains('ringing')){card.classList.remove('ringing');test.textContent='Alarm silenced ✓';test.disabled=true;clearInterval(timer);}}
function finish(name,button){tasks[name]=true;button.textContent='Completed ✓';button.classList.add('complete');button.disabled=true;update();}
document.querySelector('#file').addEventListener('change',e=>{if(e.target.files[0])finish('photo',document.querySelector('[data-task=photo]'));});
document.querySelector('[data-task=move]').addEventListener('click',function(){let n=10;this.textContent='Walk for '+n+'s';this.disabled=true;timer=setInterval(()=>{n--;this.textContent='Keep going · '+n+'s';if(n<=0){clearInterval(timer);finish('move',this)}},1000);});
test.addEventListener('click',()=>{if(test.disabled)return;card.classList.add('ringing');test.textContent='Alarm ringing · complete tasks';try{let a=new AudioContext(),o=a.createOscillator(),g=a.createGain();o.frequency.value=680;g.gain.value=.035;o.connect(g);g.connect(a.destination);o.start();setTimeout(()=>{o.stop();a.close()},1200)}catch(e){}});
</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 Kathryn Cook. 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.