import '@fontsource-variable/geist/wght.css' import '@fontsource-variable/jetbrains-mono/wght.css' import './style.css' import './devices.css' document.documentElement.classList.add('js') function el(tag, className, text) { const node = document.createElement(tag) if (className) node.className = className if (text !== undefined) node.textContent = text return node } /* Screen picker: swaps real captures of the Mac app inside the MacBook frame. */ const screenShot = document.getElementById('screen-shot') const screenCaption = document.getElementById('screen-caption') const SCREENS = { board: { src: '/app/native/mac-board.webp', alt: 'The OpenTalon Mac app on All tasks: three columns, To do, In progress and Done, with twelve cards showing priority, project, due date, agent and run state.', caption: "All tasks: every project's cards on one board, filtered by priority and in the order you set.", }, task: { src: '/app/native/mac-task.webp', alt: 'The OpenTalon Mac app with the task Fix sync conflict on reorder open: the project’s tasks beside the conversation, where Claude asks which order should win and offers three one-press answers.', caption: 'Task thread: the agent’s messages and its question, answered with one press, beside the project’s tasks.', }, project: { src: '/app/native/mac-project.webp', alt: 'The OpenTalon Mac app showing the board for one project, Launch, with its cards in the same three columns.', caption: 'Project board: each project gets its own board with the same three columns.', }, dashboard: { src: '/app/native/mac-dashboard.webp', alt: 'The OpenTalon Dashboard: nine open tasks with a status bar for to-dos, In progress and Done, the agent run that needs you with one-press answers, a quick add field, and a task list with urgent, overdue and due today counts.', caption: 'Dashboard: what needs you, and what is urgent, overdue, or due today across every project.', }, } const screenButtons = document.querySelectorAll('[data-screen]') for (const button of screenButtons) { button.addEventListener('click', () => { const screen = SCREENS[button.dataset.screen] screenShot.src = screen.src screenShot.alt = screen.alt screenCaption.textContent = screen.caption for (const other of screenButtons) { const active = other === button other.classList.toggle('active', active) other.setAttribute('aria-pressed', String(active)) } }) button.addEventListener('pointerenter', () => { new Image().src = SCREENS[button.dataset.screen].src }, { once: true }) } /* Reveal on scroll */ const revealed = document.querySelectorAll('.reveal') if ('IntersectionObserver' in window) { const observer = new IntersectionObserver( (entries) => { for (const entry of entries) { if (entry.isIntersecting) { entry.target.classList.add('in') observer.unobserve(entry.target) } } }, { rootMargin: '0px 0px -8% 0px' }, ) for (const node of revealed) observer.observe(node) } else { for (const node of revealed) node.classList.add('in') } /* Footer Source link: this page's code on Branchwell. */ for (const link of document.querySelectorAll('[data-source-link]')) { link.href = `https://branchwell.ai/opentalon/website/for${location.pathname}` }