Ora / app /renderer /index.html
umer-wasim's picture
Ora 0.6.0: Automations with your own n8n, Campaigns, step-by-step setup
6acd609 verified
Raw History Blame Contribute Delete
31.7 kB
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; img-src 'self' ora: data: blob:; connect-src 'self' ora: data:; style-src 'self'; font-src 'self'; script-src 'self'">
<title>Ora</title>
<link rel="stylesheet" href="styles.css">
</head>
<body>
<div class="app">
<!-- sidebar: the plan's seven steps are the app's navigation -->
<aside class="side">
<div class="side-brand"><span class="mark" aria-hidden="true"></span><div><b>Ora</b><button class="ver-link" id="version" type="button"></button></div></div>
<button class="update-pill" id="updateBtn" type="button" hidden></button>
<button class="plan-chip" id="planChip" type="button" title="Plan file: save, open or start from an example">
<span class="plan-dot" id="planDot"></span><span class="plan-name" id="planName">Your plan</span><span class="demo-tag" id="demoTag" hidden>Demo</span>
</button>
<nav class="plan-steps" id="planSteps" aria-label="Plan steps"></nav>
<nav class="side-nav" aria-label="More">
<button type="button" data-view="pictures"><span class="ico ico-pic" aria-hidden="true"></span>Pictures <span class="count" id="picCount"></span></button>
<span class="side-label">Settings</span>
<button type="button" data-view="connect"><span class="ico ico-link" aria-hidden="true"></span>Accounts <span class="conn-dots" id="connDots"></span></button>
<button type="button" data-view="automations"><span class="ico ico-auto" aria-hidden="true"></span>Automations <span class="conn-dots" id="autoDots"></span></button>
</nav>
</aside>
<main id="main">
<header class="topbar">
<div class="crumbs"><span class="kicker" id="topKicker"></span><h1 id="topTitle">Plan</h1></div>
<span class="spacer"></span>
<div class="activity" id="activity" hidden role="status"><span class="spin" aria-hidden="true"></span><span id="activityText"></span><button class="link" id="activityStop" type="button">Stop</button></div>
<div class="demo-bar" id="demoBar"><button class="ghost" id="demoOpen" type="button">Open the demo</button><button class="link danger" id="demoRemove" type="button" hidden>Remove the demo</button><button class="primary" id="demoClose" type="button" hidden>Back to my plan</button></div>
</header>
<!-- plan: one pane per step -->
<section id="planView" class="page page-plan">
<div class="lesson" id="lessonCard"></div>
<div class="plan-pane" id="paneBrand">
<div class="plan-stack">
<section class="panel plan-card">
<div class="card-head"><h3>Who you are</h3><p class="muted small">Everything else in the plan is drafted from these.</p></div>
<div class="row r2">
<label class="field"><span class="label">Brand name</span><input id="bName" maxlength="60" placeholder="Sunpress"></label>
<label class="field"><span class="label">What you offer, and where</span><input id="bOffer" maxlength="140" placeholder="Fresh-pressed juices and smoothies in Luxembourg City"></label>
</div>
<div class="row r21">
<div class="field"><span class="label">Mission</span><textarea id="bMission" rows="2" maxlength="400" placeholder="We make healthy eating easy for busy people in Luxembourg, with juices pressed every morning from local fruit."></textarea>
<div class="improve-row"><button class="ghost improve-btn" id="bMissionAi" type="button">✨ Suggest</button></div></div>
<label class="field"><span class="label">Values <small class="muted">(comma between)</small></span><input id="bValues" maxlength="160" placeholder="fresh, local, honest, no added sugar"></label>
</div>
</section>
<section class="panel plan-card">
<div class="card-head"><h3>How you sound</h3><p class="muted small">Used for captions and every text Ora writes for you.</p></div>
<div class="field"><span class="label">Personality <small class="muted">(pick up to 3)</small></span><div class="chips" id="bPersonality"></div></div>
<div class="row r3">
<label class="field"><span class="label">Tone of voice</span><input id="bTone" maxlength="160" placeholder="short, warm and cheerful; no jargon"></label>
<div class="field"><span class="label">Tagline</span><input id="bTagline" maxlength="80" placeholder="Pressed this morning. Gone by noon.">
<div class="improve-row"><span class="tag-picks" id="bTagPicks"></span><button class="ghost improve-btn" id="bTaglineAi" type="button">✨ Suggest</button></div></div>
<label class="field"><span class="label">Always avoid <small class="muted">(in pictures and text)</small></span><input id="bAvoid" maxlength="160" placeholder="plastic bottles, people's faces"></label>
</div>
</section>
<section class="panel plan-card">
<div class="card-head"><h3>How you look</h3><p class="muted small">Your colours, font and logo go on every poster.</p></div>
<div class="row look-row">
<div class="field"><span class="label">Colours</span><div class="swatches" id="bColors"></div></div>
<div class="field"><span class="label">Font</span><div class="seg" id="bFontSeg"></div></div>
<div class="field"><span class="label">Logo</span><div class="logo-row"><img id="bLogoImg" alt="" hidden><button class="ghost" id="bLogoBtn" type="button">Add logo…</button><button class="link danger" id="bLogoRemove" type="button" hidden>Remove</button></div></div>
</div>
<label class="check"><input type="checkbox" id="bUse" checked> <span>Use this brand in pictures and captions <small class="muted">(colours, words, logo and tone)</small></span></label>
</section>
</div>
<div class="plan-actions"><span class="muted small" id="bSaved"></span><span class="spacer"></span><button class="primary" id="bExport" type="button">Save Brand Identity Summary (PNG + PDF)</button></div>
</div>
<div class="plan-pane" id="panePersonas" hidden>
<p class="muted small pane-intro">Who you are talking to. Two personas are a good start. The one marked <b>Main</b> is used when Ora writes captions.</p>
<div class="persona-grid" id="personaGrid"></div>
<div class="plan-actions"><button class="ghost" id="addPersona" type="button">Add persona</button><span class="spacer"></span><button class="primary" id="pExport" type="button">Save Brand Identity Summary (PNG + PDF)</button></div>
</div>
<div class="plan-pane" id="paneMarket" hidden>
<div class="plan-stack">
<section class="panel plan-card">
<div class="card-head"><h3>Competitors <small class="muted">(2 or 3 you know)</small></h3><p class="muted small">Look at their social media: where they post, what gets likes and comments, how they talk about themselves.</p><span class="spacer"></span><button class="ghost" id="compAdd" type="button">Add a competitor</button></div>
<div class="comp-list" id="compList"></div>
<label class="field"><span class="label">How we are different</span><textarea id="mDifference" rows="2" maxlength="400" placeholder="Unlike the chains nearby, we bake every cake ourselves each morning and know our regulars by name."></textarea></label>
</section>
<section class="panel plan-card">
<div class="card-head"><h3>Digital presence map</h3><p class="muted small">Tick where your brand appears online, what each place is for, and how often you update it.</p></div>
<div class="presence-list" id="presenceList"></div>
</section>
</div>
</div>
<div class="plan-pane" id="paneCampaign" hidden>
<div class="plan-stack">
<section class="panel plan-card">
<div class="card-head"><h3>The campaign</h3><p class="muted small">One goal, one message, a start and an end.</p><span class="spacer"></span><span class="tag-picks" id="cPicks"></span><button class="ghost improve-btn" id="cSuggest" type="button">✨ Suggest name and message</button></div>
<div class="row camp-top">
<label class="field"><span class="label">Campaign name</span><input id="cName" maxlength="70" placeholder="Fresh Start January"></label>
<div class="field"><span class="label">Goal</span><div class="seg seg-wrap" id="cGoal"></div></div>
<div class="row r2 dates"><label class="field"><span class="label">From</span><input type="date" id="cStart"></label><label class="field"><span class="label">To</span><input type="date" id="cEnd"></label></div>
</div>
<div class="row r2">
<div class="field"><span class="label">Key message</span><textarea id="cMessage" rows="2" maxlength="200" placeholder="Start the year with a fresh juice every morning."></textarea></div>
<label class="field"><span class="label">Why choose us <small class="muted">(value proposition)</small></span><textarea id="cValue" rows="2" maxlength="160" placeholder="Pressed every morning from local fruit, never with added sugar"></textarea></label>
</div>
<div class="row camp-bottom">
<label class="field"><span class="label">Offer <small class="muted">(optional)</small></span><input id="cOffer" maxlength="80" placeholder="2nd juice half price"></label>
<label class="field"><span class="label">Call to action</span><input id="cCta" maxlength="40" placeholder="Order now"></label>
<div class="field"><span class="label">Channels</span><div class="chips" id="cChannels"></div></div>
</div>
</section>
<section class="panel plan-card">
<div class="card-head"><h3>Funnel</h3><p class="muted small">How people move from first seeing you to buying: one piece of content per step. Ora can make a picture for each.</p></div>
<div class="funnel" id="cFunnel"></div>
</section>
<section class="panel plan-card">
<div class="card-head"><h3>Success metrics <small class="muted">(pick 3, with a target)</small></h3><p class="muted small">Step 7 · Results measures each one against its target.</p></div>
<div class="metric-list" id="cMetrics"></div>
</section>
</div>
<p class="muted small" id="cNote"></p>
</div>
<div class="plan-pane" id="paneCalendar" hidden>
<div class="panel cal-bar">
<label class="field"><span class="label">Starts</span><input type="date" id="calStart"></label>
<div class="field"><span class="label">Posts a week</span><div class="seg" id="calPerWeek"></div></div>
<label class="field"><span class="label">Post time</span><input type="time" id="calTime" value="09:00"></label>
<span class="spacer"></span>
<button class="ghost" id="calSendAll" type="button">Send the month to n8n</button>
<button class="primary" id="calMakeAll" type="button">✨ Make the month's posts</button>
</div>
<p class="small make-note" id="calMakeNote" hidden></p>
<div class="plan-stack">
<section class="panel plan-card cal-ideas">
<div class="card-head"><h3>Content ideas <small class="muted" id="ideaCount"></small></h3><p class="muted small">Five kinds of content that work well together, plus offers. Aim for at least 10.</p><span class="spacer"></span><button class="ghost improve-btn" id="ideaSuggest" type="button">✨ Suggest ideas</button><button class="primary" id="calFill" type="button">Fill the month</button></div>
<div class="idea-list" id="ideaList"></div>
<div class="idea-add"><select id="ideaType" aria-label="Kind of content"></select><input id="ideaText" maxlength="120" placeholder="New idea…"><button class="ghost" id="ideaAdd" type="button">Add</button></div>
<p class="muted small" id="ideaNote"></p>
</section>
<section class="panel plan-card cal-month">
<div class="card-head"><h3 id="calTitle">Next 30 days</h3><p class="muted small" id="calMix"></p><button class="link" id="calCsv" type="button">Export to Sheets (CSV)</button><button class="link" id="calIcs" type="button">Add to calendar (.ics)</button></div>
<div class="cal-grid" id="calGrid"></div>
<div class="cal-legend" id="calLegend"></div>
<div class="n8n-hint" id="n8nHint" hidden><span class="conn-logo n8n" aria-hidden="true"><svg viewBox="0 0 40 24" width="30" height="18" fill="none" stroke="#ea4b71" stroke-width="2.4"><circle cx="5" cy="12" r="3.2"/><circle cx="19" cy="12" r="3.2"/><circle cx="34" cy="5" r="3.2"/><circle cx="34" cy="19" r="3.2"/><path d="M8.2 12h7.6M22.2 12h2.3c2.8 0 3.2-7 6.2-7M24.5 12c2.8 0 3.2 7 6.2 7"/></svg></span><span><b>Next: send these posts to n8n.</b> It logs every post in a Google Sheet, emails you a reminder on the morning of each post and can post on LinkedIn.</span><span class="spacer"></span><button class="primary" id="n8nHintGo" type="button">Open Automations</button><button class="link" id="n8nHintHide" type="button">Not now</button></div>
</section>
</div>
</div>
<div class="plan-pane" id="paneAutomate" hidden>
<section class="panel plan-card">
<div class="card-head"><h3>Your campaigns</h3><p class="muted small">Every month you sent to n8n (set them up in Settings › Automations). Open one to see its posts day by day. Delete removes the rows from your Google Sheet and stops the reminders and LinkedIn posts still waiting in n8n.</p></div>
<div id="campList"></div>
<p class="small" id="campNote"></p>
</section>
</div>
<div class="plan-pane" id="paneResults" hidden>
<div class="tiles" id="rTiles"></div>
<div class="plan-stack">
<section class="panel plan-card results-table-card">
<div class="card-head"><h3>Posts and their numbers</h3><p class="muted small">Copy the numbers from each platform's insights (Instagram › Insights, Facebook › Meta Business Suite, LinkedIn › Analytics). Ora works out the engagement rate.</p><span class="spacer"></span><button class="ghost" id="rFromCal" type="button">Add posts from the calendar</button><button class="ghost" id="rAdd" type="button">Add a post</button></div>
<div class="rtable-wrap"><table class="rtable" id="rTable"></table></div>
<div class="ad-row"><button class="ghost" id="rImport" type="button">Import CSV…</button><button class="ghost" id="rExport" type="button">Export CSV</button><input type="file" id="rFile" accept=".csv,text/csv" hidden><span class="muted small" id="rNote"></span></div>
</section>
<div class="row r2 results-pair">
<section class="panel plan-card">
<div class="card-head"><h3>Engagement rate by kind of content</h3></div>
<div class="hbars" id="rByType"></div>
<p class="muted small" id="rBest"></p>
</section>
<section class="panel plan-card insights" id="rInsights">
<div class="card-head"><h3>Insights</h3><p class="muted small">What the numbers say, and what to do next month.</p><span class="spacer"></span><button class="primary" id="rExplain" type="button">✨ Explain my results</button></div>
<div id="rInsightsBody"></div>
</section>
</div>
</div>
</div>
<div class="plan-pane" id="panePresent" hidden>
<div class="panel plan-card present-card">
<h3>Final campaign presentation</h3>
<p class="muted small">One click makes a slide deck (PDF, or PowerPoint to edit; 16:9) from your plan: brand identity, personas, competitors and channels, the campaign, the content mix and calendar, pictures you made, and results.</p>
<ol class="present-list" id="presentList"></ol>
<label class="field"><span class="label">Presented by <small class="muted">(optional)</small></span><input id="presentBy" maxlength="80" placeholder="Your name"></label>
<div class="ad-row"><button class="primary" id="presentMake" type="button">Make the presentation (PDF)</button><button class="ghost" id="presentPptx" type="button">PowerPoint (.pptx)</button><span class="muted small" id="presentNote"></span></div>
</div>
</div>
<div class="coach" id="coachBox" hidden></div>
<div class="plan-nav"><button class="ghost" id="planPrev" type="button">← Back</button><span class="spacer"></span><span class="small nav-note" id="planNavNote"></span><button class="primary" id="planNext" type="button">Next step →</button></div>
</section>
<!-- pictures made for the plan -->
<section id="picturesView" class="page" hidden>
<div class="lib-bar"><p class="muted small" id="picDirText"></p><span class="spacer"></span><button class="ghost" id="picOpenDir" type="button">Open the folder</button></div>
<div class="lib-grid" id="picGrid"></div>
<div class="empty" id="picEmpty" hidden>
<h3>No pictures yet</h3>
<p class="muted">Pictures appear here when you press ✨ Make picture on a calendar day or a funnel step, ✨ Make the month's posts, or ✨ Make portrait on a persona.</p>
</div>
</section>
<!-- online accounts -->
<section id="connectView" class="page" hidden>
<p class="muted page-intro"><b>Accounts are the services Ora signs in to.</b> You set them up once. Your keys are stored encrypted on this computer and only sent to their own service. What happens to your posts is on the <button class="link" type="button" data-view="automations">Automations</button> page.</p>
<div class="conn-grid">
<div class="panel conn-card" id="cfCard">
<div class="conn-head"><span class="conn-logo cf" aria-hidden="true"><svg viewBox="0 0 40 24" width="30" height="18"><path fill="#f38020" d="M29.6 21H7.2a6.2 6.2 0 0 1-.9-12.3A9.4 9.4 0 0 1 24.4 6a6.4 6.4 0 0 1 8.3 5.6A4.8 4.8 0 0 1 29.6 21z"/><path fill="#fbad41" d="M33.4 12.4a4.3 4.3 0 0 1 .9 8.6h-5.6c1.4-1.9 1.8-5 .6-7.4a4.6 4.6 0 0 1 4.1-1.2z"/></svg></span><div><h3><button class="name-link" type="button" data-open="cloudflareSite" title="Open cloudflare.com">Cloudflare Workers AI ↗</button></h3><p class="muted small">AI drafts, coach, captions and insights (Llama 3.3 70B), and pictures in seconds (FLUX.1-schnell).</p></div><div class="conn-side"><span class="conn-state" id="cfState"></span><button class="mini-link" type="button" id="cfOff" data-disconnect="cloudflare" hidden>Disconnect</button></div></div>
<div id="cfFields" class="conn-fields" hidden>
<label class="field"><span class="label">Account ID</span><input id="cfAccount" maxlength="40" placeholder="32 letters and numbers" autocomplete="off" spellcheck="false"></label>
<label class="field"><span class="label">API token</span><input id="cfToken" type="password" maxlength="200" autocomplete="off" spellcheck="false"></label>
<div class="ad-row"><button class="primary" id="cfConnect" type="button">Connect Cloudflare</button><span class="small err" id="cfError"></span></div>
</div>
<div id="cfOn" hidden>
<div class="meter"><span class="meter-fill" id="cfMeter"></span></div>
<p class="small" id="cfUsage"></p>
<div class="ad-row"><button class="ghost" id="cfTest" type="button">Test</button><span class="small muted" id="cfChecked"></span></div>
<p class="small err" id="cfError2"></p>
</div>
<details class="conn-steps" id="cfSteps"><summary></summary><div id="cfGuide"></div></details>
</div>
<div class="panel conn-card" id="n8nCard">
<div class="conn-head"><span class="conn-logo n8n" aria-hidden="true"><svg viewBox="0 0 40 24" width="30" height="18" fill="none" stroke="#ea4b71" stroke-width="2.4"><circle cx="5" cy="12" r="3.2"/><circle cx="19" cy="12" r="3.2"/><circle cx="34" cy="5" r="3.2"/><circle cx="34" cy="19" r="3.2"/><path d="M8.2 12h7.6M22.2 12h2.3c2.8 0 3.2-7 6.2-7M24.5 12c2.8 0 3.2 7 6.2 7"/></svg></span><div><h3><button class="name-link" type="button" data-open="n8nSignup" title="Open n8n.io">n8n ↗</button></h3><p class="muted small">The link to your own n8n account, where Ora's automation runs. What it does with your posts is set up on the Automations page.</p></div><div class="conn-side"><span class="conn-state" id="n8nState"></span><button class="mini-link" type="button" id="n8nOff" data-disconnect="n8n" hidden>Disconnect</button></div></div>
<div id="n8nFields" class="conn-fields" hidden>
<label class="field"><span class="label">Link from n8n (Production URL)</span><input id="n8nUrl" maxlength="400" placeholder="https://yourname.app.n8n.cloud/webhook/ora-auto-…" autocomplete="off" spellcheck="false"></label>
<div class="ad-row"><button class="primary" id="n8nConnect" type="button">Connect n8n</button><span class="small err" id="n8nError"></span></div>
</div>
<div id="n8nOn" hidden>
<p class="small" id="n8nWhich"></p>
<div class="ad-row"><button class="ghost" id="n8nRetest" type="button">Test</button><span class="small muted" id="n8nChecked"></span></div>
<p class="small err" id="n8nError2"></p>
</div>
<details class="conn-steps" id="n8nSteps"><summary></summary><div id="n8nGuide"></div></details>
</div>
</div>
</section>
<!-- what n8n does with the posts: each automation, when it runs, its setup, and sending -->
<section id="automationsView" class="page" hidden>
<p class="muted page-intro"><b>Automations are jobs n8n does with your posts after you plan them.</b> Each one is set up once; then every time you send your posts, they run by themselves.</p>
<div class="auto-banner" id="autoBanner" hidden><span id="autoBannerText"></span><span class="spacer"></span><button class="ghost" id="autoBannerBack" type="button">Back to Content plan</button><button class="primary" id="autoBannerSend" type="button">Send again</button></div>
<section class="panel plan-card">
<div class="card-head"><h3>How your posts travel</h3><p class="muted small">Ora sends your planned posts to your own n8n. n8n does the rest, at the right time.</p></div>
<div class="flow" id="autoFlow"></div>
</section>
<div class="auto-list" id="autoCards"></div>
<section class="panel plan-card auto-send">
<div class="card-head"><h3>Send your posts</h3><p class="muted small" id="autoLast">Every planned day goes to n8n: a row in your sheet now, a reminder on each post's morning, and the LinkedIn posts at their time.</p><button class="primary" id="autoSend" type="button">Send the month to n8n</button></div>
<p class="small" id="autoNote"></p>
</section>
</section>
</main>
</div>
<!-- first start (and any ✨ button without Cloudflare): set up the free Cloudflare account, or skip -->
<dialog id="setupDlg" class="setup-dlg">
<div class="setup-head"><span class="mark" aria-hidden="true"></span><div><h2 id="setupTitle">Set up Ora</h2><p class="muted" id="setupWhy"></p></div></div>
<div class="setup-cols">
<div class="setup-gets">
<h3>What your free Cloudflare account gives you</h3>
<ul>
<li><b>✨ Draft with AI</b> for every step of your plan, and a coach that checks your work</li>
<li><b>Captions</b> for Instagram, Facebook and LinkedIn, in your brand's tone</li>
<li><b>Posters and portraits</b> made in a few seconds each</li>
<li><b>Free:</b> 10,000 Neurons a day (about 170 pictures). No card needed.</li>
</ul>
<p class="muted small">Your key stays on this computer, encrypted, and is only sent to Cloudflare.</p>
</div>
<div class="setup-form">
<div id="suGuide"></div>
<div id="suFields" class="conn-fields" hidden>
<label class="field"><span class="label">Account ID</span><input id="suAccount" maxlength="40" placeholder="32 letters and numbers" autocomplete="off" spellcheck="false"></label>
<label class="field"><span class="label">API token</span><input id="suToken" type="password" maxlength="200" autocomplete="off" spellcheck="false"></label>
<p class="small err" id="suError"></p>
</div>
</div>
</div>
<p class="muted small setup-later">Later you can also connect <b>n8n</b>, to log every post in a Google Sheet, get a reminder on the morning of each post and post on LinkedIn. Ora will show you when.</p>
<div class="dlg-actions"><span class="muted small">You can also connect later in Settings › Accounts.</span><span class="spacer"></span><button class="link" id="suSkip" type="button">Skip for now</button><button class="primary" id="suConnect" type="button">Connect Cloudflare</button></div>
</dialog>
<!-- when it is needed (Send to n8n, the calendar's hint): set up the learner's own n8n Cloud, or skip -->
<dialog id="n8nDlg" class="setup-dlg">
<div class="setup-head"><span class="conn-logo n8n" aria-hidden="true"><svg viewBox="0 0 40 24" width="30" height="18" fill="none" stroke="#ea4b71" stroke-width="2.4"><circle cx="5" cy="12" r="3.2"/><circle cx="19" cy="12" r="3.2"/><circle cx="34" cy="5" r="3.2"/><circle cx="34" cy="19" r="3.2"/><path d="M8.2 12h7.6M22.2 12h2.3c2.8 0 3.2-7 6.2-7M24.5 12c2.8 0 3.2 7 6.2 7"/></svg></span><div><h2>Send your posts to n8n</h2><p class="muted" id="n8nDlgWhy"></p></div></div>
<div class="setup-cols">
<div class="setup-gets">
<h3>What n8n does for you</h3>
<ul>
<li><b>A row in Google Sheets</b> for every post: date, time, platform, caption, picture</li>
<li><b>An email reminder</b> on the morning of each post, with the captions ready to copy</li>
<li><b>LinkedIn posts</b> at the planned time, with the poster and its caption</li>
<li><b>Your own account:</b> n8n Cloud (free trial). Ora gives you a ready-made automation.</li>
</ul>
<p class="muted small">After this, set up Google Sheets, Gmail and LinkedIn step by step in Settings › Automations.</p>
</div>
<div class="setup-form">
<div id="ndGuide"></div>
<div id="ndFields" class="conn-fields" hidden>
<label class="field"><span class="label">Link from n8n (Production URL)</span><input id="ndUrl" maxlength="400" placeholder="https://yourname.app.n8n.cloud/webhook/ora-auto-…" autocomplete="off" spellcheck="false"></label>
<p class="small err" id="ndError"></p>
</div>
</div>
</div>
<div class="dlg-actions"><span class="muted small">You can also do this later in Settings › Automations.</span><span class="spacer"></span><button class="link" id="ndSkip" type="button">Skip for now</button><button class="primary" id="ndConnect" type="button">Connect n8n</button></div>
</dialog>
<!-- before every picture: Ora creates it from the topic, or the learner describes it -->
<dialog id="picDlg" class="pic-dlg">
<h2 id="picTitle">Make a picture</h2>
<p class="muted" id="picWhat"></p>
<div class="pic-modes" role="radiogroup" aria-label="How to make the picture">
<label class="pic-mode"><input type="radio" name="picMode" value="ora" checked><span><b id="picOraTitle">Let Ora create it from the topic</b><small class="muted" id="picOraHint">Ora writes the picture idea from your plan, in your brand's colours.</small></span></label>
<div class="pic-idea" id="picIdeaBox"><p id="picIdea"></p><div class="ad-row"><button class="ghost improve-btn" id="picAnother" type="button">✨ Another idea</button><span class="muted small" id="picNote"></span></div></div>
<label class="pic-mode"><input type="radio" name="picMode" value="own"><span><b id="picOwnTitle">Describe the picture myself</b><small class="muted" id="picOwnHint">Say what should be in it: the subject, the place, the light.</small></span></label>
<textarea id="picOwn" rows="3" maxlength="600" placeholder="A glass of fresh orange juice on a sunny café table, oranges around it, bright morning light, close-up"></textarea>
</div>
<label class="field" id="picHeadField"><span class="label">Headline on the poster <small class="muted">(Ora writes it over the picture with real fonts)</small></span><input id="picHead" maxlength="90"></label>
<p class="muted small" id="picCost"></p>
<div class="dlg-actions"><span class="spacer"></span><button class="link" id="picCancel" type="button">Cancel</button><button class="primary" id="picMake" type="button">✨ Make picture</button></div>
</dialog>
<!-- one calendar day -->
<dialog id="dayDlg" class="day-dlg">
<h2 id="dayTitle">Day</h2>
<div class="day-cols">
<div>
<div class="field"><span class="label">Kind of content</span><select id="dayType"></select></div>
<label class="field"><span class="label">Idea</span><input id="dayText" maxlength="140"></label>
<div class="field"><span class="label">Where</span><div class="post-platforms" id="dayPlatforms"></div></div>
<div class="field"><span class="label">Status</span><div class="seg" id="dayStatus"></div></div>
<div class="field"><span class="label">Captions</span><div class="post-caps" id="dayCaps"></div>
<div class="ad-row"><button class="ghost improve-btn" id="dayWrite" type="button">✨ Write captions</button><span class="muted small" id="dayCapNote"></span></div></div>
</div>
<div>
<div class="field"><span class="label">Picture</span><div class="day-item" id="dayItem"></div></div>
<div class="ad-row day-pic-actions"><button class="primary" id="dayMake" type="button">✨ Make picture</button><button class="ghost" id="dayLink" type="button">Use a picture…</button><button class="link" id="dayShow" type="button">Show file</button></div>
<div class="pic-picker" id="dayPicker" hidden></div>
</div>
</div>
<div class="dlg-actions"><button class="link danger" id="dayClear" type="button">Clear this day</button><span class="spacer"></span><span class="muted small" id="daySendNote"></span><button class="ghost" id="daySend" type="button">Send to n8n</button><button class="primary" id="dayClose" type="button">Done</button></div>
</dialog>
<!-- the plan file: save, open, examples -->
<dialog id="fileDlg" class="file-dlg">
<h2>Your plan</h2>
<p class="muted small">Ora saves your plan on this computer as you type. Save it to a file to keep a copy, share it, or move it to another computer.</p>
<div class="ad-row"><button class="ghost" id="planSaveFile" type="button">Save my plan to a file</button><button class="ghost" id="planOpenFile" type="button">Open a plan file…</button><input type="file" id="planFile" accept=".json,application/json" hidden><span class="spacer"></span><button class="link danger" id="planNew" type="button">Start a new, empty plan</button></div>
<p class="muted small" id="planFileNote"></p>
<h3>Start from an example <small class="muted">(for practice)</small></h3>
<p class="muted small">Fills the whole plan (brand, two personas and a campaign) for an example business. It replaces what is in the plan now, so save yours first.</p>
<div class="chips" id="starterList"></div>
<div class="dlg-actions"><span class="spacer"></span><button class="primary" id="fileClose" type="button">Done</button></div>
</dialog>
<script src="base.js"></script>
<script src="plan.js"></script>
<script src="calendar.js"></script>
<script src="campaign.js"></script>
<script src="market.js"></script>
<script src="demo.js"></script>
<script src="course.js"></script>
<script src="plan-make.js"></script>
<script src="pictures.js"></script>
<script src="connect.js"></script>
<script src="automate.js"></script>
<script src="update.js"></script>
<script src="start.js"></script>
</body>
</html>