Something went wrong. Try again.
Monorepo for Aesthetic.Computer aesthetic.computer
Something went wrong. Try again.
17 kB · 619 lines
HTML
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620<!DOCTYPE html><html lang="en"><head> <meta charset="UTF-8"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <title>Gift — Aesthetic Computer</title> <meta name="description" content="Support Aesthetic Computer — a creative coding platform and community for everyone."> <link rel="icon" href="https://aesthetic.computer/icon/128x128/prompt.png" type="image/png"> <style> @import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500;600&display=swap'); :root { --bg: #0a0a0a; --fg: #f0f0f0; --dim: #888; --accent: #ff6b6b; --accent-glow: rgba(255, 107, 107, 0.3); --blue: #6b9fff; --green: #6bff9f; --yellow: #ffeb6b; --purple: #b06bff; --card: #151515; --card-border: #2a2a2a; } * { box-sizing: border-box; margin: 0; padding: 0; } body { font-family: 'IBM Plex Mono', monospace; background: var(--bg); color: var(--fg); min-height: 100vh; line-height: 1.7; font-size: 14px; } .page { max-width: 720px; margin: 0 auto; padding: 3rem 1.5rem; } /* Header */ header { text-align: center; margin-bottom: 4rem; position: relative; } .logo { font-size: 0.9rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--dim); margin-bottom: 1rem; } h1 { font-size: 2.5rem; font-weight: 400; margin-bottom: 0.75rem; letter-spacing: -0.02em; } h1 .highlight { color: var(--accent); } .tagline { color: var(--dim); font-size: 1rem; } /* Story Section */ .story { margin-bottom: 3rem; padding: 2rem; background: linear-gradient(135deg, var(--card) 0%, transparent 100%); border-left: 3px solid var(--accent); border-radius: 0 8px 8px 0; } .story h2 { font-size: 1rem; font-weight: 500; color: var(--accent); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.1em; } .story p { margin-bottom: 1rem; color: var(--fg); } .story p:last-child { margin-bottom: 0; } .story a { color: var(--blue); text-decoration: none; } .story a:hover { text-decoration: underline; } /* Stats Grid */ .stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 3rem; } .stat { text-align: center; padding: 1.25rem 0.5rem; background: var(--card); border: 1px solid var(--card-border); border-radius: 8px; } .stat-num { font-size: 1.5rem; font-weight: 600; color: var(--yellow); display: block; } .stat-label { font-size: 0.7rem; color: var(--dim); text-transform: uppercase; letter-spacing: 0.05em; } /* Highlights */ .highlights { margin-bottom: 3rem; } .highlights h2 { font-size: 0.85rem; font-weight: 500; color: var(--dim); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.1em; } .highlight-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; } .highlight-card { padding: 1.25rem; background: var(--card); border: 1px solid var(--card-border); border-radius: 8px; transition: border-color 0.2s; } .highlight-card:hover { border-color: var(--accent); } .highlight-card h3 { font-size: 1rem; font-weight: 500; margin-bottom: 0.5rem; } .highlight-card h3 .emoji { margin-right: 0.5rem; } .highlight-card p { font-size: 0.85rem; color: var(--dim); margin: 0; } .highlight-card a { color: var(--blue); text-decoration: none; } .highlight-card a:hover { text-decoration: underline; } .coming-soon { border-color: var(--purple); background: linear-gradient(135deg, rgba(176, 107, 255, 0.1) 0%, var(--card) 100%); } .coming-soon h3 { color: var(--purple); } /* Gift Section */ .gift-section { margin-bottom: 2rem; } .gift-section h2 { font-size: 0.85rem; font-weight: 500; color: var(--dim); margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.1em; } .gift-card { background: var(--card); border: 1px solid var(--card-border); border-radius: 12px; padding: 1.5rem; margin-bottom: 1rem; } .gift-card h3 { font-size: 1rem; margin-bottom: 1rem; display: flex; align-items: center; gap: 0.5rem; } .gift-options { display: grid; grid-template-columns: repeat(6, 1fr); gap: 0.5rem; margin-bottom: 1rem; } .gift-btn { background: #222; border: 1px solid #333; color: var(--fg); padding: 0.75rem 0.5rem; border-radius: 6px; font-family: inherit; font-size: 0.95rem; cursor: pointer; transition: all 0.15s; } .gift-btn:hover { background: #333; border-color: var(--accent); } .gift-btn.selected { background: var(--accent); border-color: var(--accent); color: var(--bg); } .custom-input { display: none; margin-bottom: 1rem; } .custom-input input { width: 100%; background: #222; border: 1px solid #333; color: var(--fg); padding: 0.75rem 1rem; border-radius: 6px; font-family: inherit; font-size: 1rem; } .custom-input input:focus { outline: none; border-color: var(--accent); } .pay-btn { width: 100%; background: var(--accent); border: none; color: var(--bg); padding: 1rem; border-radius: 8px; font-family: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; transition: all 0.15s; box-shadow: 0 0 20px var(--accent-glow); } .pay-btn:hover { background: var(--fg); box-shadow: 0 0 30px rgba(255, 255, 255, 0.2); } .pay-btn:disabled { background: #333; color: #666; cursor: not-allowed; box-shadow: none; } .note { font-size: 0.75rem; color: #555; margin-top: 0.75rem; } /* Crypto */ .crypto-row { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 1rem; background: #222; border-radius: 6px; margin-bottom: 0.5rem; } .crypto-row strong { color: var(--green); } .crypto-row code { background: #333; padding: 0.25rem 0.5rem; border-radius: 4px; font-size: 0.8rem; margin-left: 0.5rem; } .copy-btn { background: #444; border: none; color: var(--fg); padding: 0.4rem 0.6rem; border-radius: 4px; font-family: inherit; font-size: 0.75rem; cursor: pointer; } .copy-btn:hover { background: #555; } /* Shop link */ .shop-link { display: block; padding: 1rem 1.25rem; background: linear-gradient(90deg, var(--card) 0%, rgba(107, 159, 255, 0.1) 100%); border: 1px solid var(--card-border); border-radius: 8px; text-decoration: none; color: var(--fg); transition: border-color 0.2s; } .shop-link:hover { border-color: var(--blue); } .shop-link span { color: var(--blue); } /* Footer */ footer { text-align: center; padding-top: 2rem; border-top: 1px solid var(--card-border); color: var(--dim); font-size: 0.85rem; } footer a { color: var(--fg); text-decoration: none; } footer a:hover { color: var(--accent); } footer .links { margin-bottom: 1rem; } footer .links a { margin: 0 0.5rem; } /* Responsive */ @media (max-width: 600px) { .page { padding: 2rem 1rem; } h1 { font-size: 2rem; } .stats { grid-template-columns: repeat(2, 1fr); } .highlight-grid { grid-template-columns: 1fr; } .gift-options { grid-template-columns: repeat(3, 1fr); } } </style></head><body> <div class="page"> <header> <div class="logo">aesthetic.computer</div> <h1>help <span class="highlight">jeffrey</span> keep building</h1> <p class="tagline">creative coding for everyone</p> </header>
<section class="story"> <h2>Why AC Matters</h2> <p>Aesthetic Computer started in 2021 as one person's answer to a problem: how do we make creative coding accessible to <em>everyone</em>—not just developers?</p> <p>Since then, it's grown into a platform used by artists, teachers, kids, and curious people around the world. A community in Denmark uses it to <a href="https://aesthetic.computer/laer-klokken">teach children how to read clocks</a>. Musicians use <a href="https://aesthetic.computer/notepat">notepat</a> (featured on <a href="https://news.ycombinator.com/item?id=41526754">Hacker News</a>) to make melodies. And thousands of people have saved paintings, programs, and creative experiments to the platform.</p> <p><strong>Your gift keeps the servers running and development moving.</strong> Every dollar helps pay for databases, hosting, and the time to make creative tools free for everyone.</p> </section>
<div class="stats"> <div class="stat"> <span class="stat-num">4.2K</span> <span class="stat-label">Users</span> </div> <div class="stat"> <span class="stat-num">27K</span> <span class="stat-label">Messages</span> </div> <div class="stat"> <span class="stat-num">4.3K</span> <span class="stat-label">Paintings</span> </div> <div class="stat"> <span class="stat-num">12.9K</span> <span class="stat-label">Programs</span> </div> </div>
<section class="highlights"> <h2>Recent & Upcoming</h2> <div class="highlight-grid"> <div class="highlight-card coming-soon"> <h3><span class="emoji">🧒</span>kidlisp.com</h3> <p>A new visual programming language for kids launching soon. 118 functions. Zero friction. <a href="https://kidlisp.com">Preview →</a></p> </div> <div class="highlight-card"> <h3><span class="emoji">🇩🇰</span>Danish Community</h3> <p>9,400+ chat messages from teachers & kids in Denmark using AC to learn. Organic growth.</p> </div> <div class="highlight-card"> <h3><span class="emoji">🎹</span>Notepat</h3> <p>Musical toy featured on Hacker News. Tap to make melodies. <a href="https://aesthetic.computer/notepat">Try it →</a></p> </div> <div class="highlight-card"> <h3><span class="emoji">🖼️</span>Painting Tools</h3> <p>4,200+ paintings saved. Export, print, or mint as NFTs. <a href="https://aesthetic.computer/new">Make one →</a></p> </div> </div> </section>
<section class="gift-section"> <h2>Ways to Give</h2> <div class="gift-card"> <h3>💳 Card Payment</h3> <div class="gift-options"> <button class="gift-btn" data-amount="5">$5</button> <button class="gift-btn" data-amount="10">$10</button> <button class="gift-btn selected" data-amount="25">$25</button> <button class="gift-btn" data-amount="50">$50</button> <button class="gift-btn" data-amount="100">$100</button> <button class="gift-btn" data-amount="custom">...</button> </div> <div class="custom-input" id="custom-input"> <input type="number" id="custom-amount" placeholder="Enter any amount" min="1"> </div> <button class="pay-btn" id="pay-btn">Gift $25</button> <p class="note">Secure payment via Stripe. Aesthetic Inc. is not a nonprofit—gifts are not tax-deductible.</p> </div>
<div class="gift-card"> <h3>🔮 Tezos</h3> <div class="crypto-row"> <div> <strong>aesthetic.tez</strong> <code id="tez-address">tz1Wqv...NKPCT</code> </div> <button class="copy-btn" onclick="copyAddress()">copy</button> </div> <p class="note">Send XTZ or FA2 tokens directly.</p> </div>
<a href="https://shop.aesthetic.computer" target="_blank" class="shop-link"> 📚 <strong>Shop</strong> — Buy a book, record, or artwork. <span>shop.aesthetic.computer →</span> </a> </section>
<section class="invest-alt" style="text-align: center; padding: 1.5rem; background: var(--card); border: 1px solid var(--card-border); border-radius: 8px; margin-bottom: 2rem;"> <p style="color: var(--dim); font-size: 0.9rem; margin: 0;">Want equity instead? <a href="https://aesthetic.direct" style="color: var(--green); text-decoration: none;">Invest in Aesthetic Inc. →</a></p> </section>
<footer> <div class="links"> <a href="https://aesthetic.computer">aesthetic.computer</a> <a href="https://kidlisp.com">kidlisp.com</a> <a href="https://github.com/whistlegraph/aesthetic-computer">github</a> </div> <p>made with care by <a href="https://jas.life">@jeffrey</a></p> </footer> </div>
<script> let selectedAmount = 25; const buttons = document.querySelectorAll('.gift-btn'); const payBtn = document.getElementById('pay-btn'); const customInput = document.getElementById('custom-input'); const customAmountInput = document.getElementById('custom-amount');
buttons.forEach(btn => { btn.addEventListener('click', () => { buttons.forEach(b => b.classList.remove('selected')); btn.classList.add('selected'); const amount = btn.dataset.amount; if (amount === 'custom') { customInput.style.display = 'block'; customAmountInput.focus(); selectedAmount = parseInt(customAmountInput.value) || 0; } else { customInput.style.display = 'none'; selectedAmount = parseInt(amount); } updatePayButton(); }); });
customAmountInput.addEventListener('input', () => { selectedAmount = parseInt(customAmountInput.value) || 0; updatePayButton(); });
function updatePayButton() { if (selectedAmount > 0) { payBtn.textContent = `Gift $${selectedAmount}`; payBtn.disabled = false; } else { payBtn.textContent = 'Enter an amount'; payBtn.disabled = true; } }
payBtn.addEventListener('click', async () => { if (selectedAmount <= 0) return; payBtn.textContent = 'Redirecting...'; payBtn.disabled = true;
try { const res = await fetch('/api/gift', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ amount: selectedAmount * 100 }) }); const data = await res.json(); if (data.url) { window.location.href = data.url; } else { throw new Error(data.error || 'Failed to create checkout'); } } catch (err) { console.error(err); payBtn.textContent = `Gift $${selectedAmount}`; payBtn.disabled = false; alert('Something went wrong. Please try again.'); } });
async function copyAddress() { const address = 'tz1WqvhbfEwfqAzMtEGxc7x6tpSqRMCNKPCT'; try { await navigator.clipboard.writeText(address); const btn = event.target; btn.textContent = 'copied!'; setTimeout(() => btn.textContent = 'copy', 2000); } catch (err) { console.error('Copy failed:', err); } } </script></body></html>