Skip to content

Private AI meeting notes that stay on your computer. No meeting bot. Free and open source for Mac, Windows and Linux. An alternative to Granola, Otter and Fireflies.

Site: the tab icon follows the browser's light or dark theme instead of the site toggle

Eric Brownrouta60fb3c3c802
diff --git a/site/content/home.html b/site/content/home.html
index 6b5efe70..dde36b23 100644
--- a/site/content/home.html
+++ b/site/content/home.html
@@ -1,15 +1,12 @@
<!DOCTYPE html>
-<html data-theme="light" data-hero-entry="pending" lang="en"><head><meta charset="utf-8"/><meta content="width=device-width,initial-scale=1" name="viewport"/><title>Yogurt · AI meeting notes that stay on your computer</title><meta content="Yogurt takes meeting notes with AI that runs locally on Mac, Windows and Linux. No bot joins the call. Free and open source." name="description"/><link id="theme-icon" href="/marketing/assets/mark.svg" rel="icon" type="image/svg+xml" sizes="any"/><link id="theme-icon-png" href="/marketing/assets/favicon-32.png" rel="icon" type="image/png" sizes="32x32"/><link href="/marketing/assets/apple-touch-icon.png" rel="apple-touch-icon" sizes="180x180"/><noscript><style>html .fragment-art picture{opacity:1!important}html .hero-still{display:block!important}html .product-window{visibility:visible!important}html .signal-wings,html [data-hero-entry],html[data-hero-entry=pending] :is(.yc-pill,.hero-copy h1,.hero-copy p,.hero-actions,.product-window){visibility:visible!important}html .transcript-turn,html .stream-word,html .summary-reveal,html .summary-reveal.action-item>i,html .result-paper .ready-label,html .result-check,html .answer-result{opacity:1;filter:none;transform:none}html .result-paper .writing-label{opacity:0}html .process-art *,html .roster-asset *{animation:none;transition:none}</style></noscript><link href="https://yogurt.so/" rel="canonical"/><meta content="#ffffff" name="theme-color"/><script>
+<html data-theme="light" data-hero-entry="pending" lang="en"><head><meta charset="utf-8"/><meta content="width=device-width,initial-scale=1" name="viewport"/><title>Yogurt · AI meeting notes that stay on your computer</title><meta content="Yogurt takes meeting notes with AI that runs locally on Mac, Windows and Linux. No bot joins the call. Free and open source." name="description"/><link href="/marketing/assets/favicon-32.png" rel="icon" type="image/png" sizes="32x32"/><link href="/marketing/assets/favicon.svg" rel="icon" type="image/svg+xml" sizes="any"/><link href="/marketing/assets/apple-touch-icon.png" rel="apple-touch-icon" sizes="180x180"/><noscript><style>html .fragment-art picture{opacity:1!important}html .hero-still{display:block!important}html .product-window{visibility:visible!important}html .signal-wings,html [data-hero-entry],html[data-hero-entry=pending] :is(.yc-pill,.hero-copy h1,.hero-copy p,.hero-actions,.product-window){visibility:visible!important}html .transcript-turn,html .stream-word,html .summary-reveal,html .summary-reveal.action-item>i,html .result-paper .ready-label,html .result-check,html .answer-result{opacity:1;filter:none;transform:none}html .result-paper .writing-label{opacity:0}html .process-art *,html .roster-asset *{animation:none;transition:none}</style></noscript><link href="https://yogurt.so/" rel="canonical"/><meta content="#ffffff" name="theme-color"/><script>
(function(){
var theme=matchMedia('(prefers-color-scheme: dark)').matches?'dark':'light';
try{var saved=localStorage.getItem('yogurt-theme');if(saved==='light'||saved==='dark')theme=saved}catch{}
document.documentElement.dataset.theme=theme;
if(theme==='dark'){
document.querySelector('meta[name="theme-color"]').content='#1B1B1D';
- for(var id of ['theme-icon','theme-icon-png']){
- var icon=document.getElementById(id);icon.href='/marketing/assets/mark-dark.svg';icon.type='image/svg+xml';
- }
}
})();
</script><link href="/marketing/site.css" rel="stylesheet"/><link href="/marketing/headline.css" rel="stylesheet"/><meta content="Yogurt" property="og:site_name"/><meta content="website" property="og:type"/><meta content="https://yogurt.so/" property="og:url"/><meta content="Yogurt · AI meeting notes that stay on your computer" property="og:title"/><meta content="Yogurt takes meeting notes with AI that runs locally on Mac, Windows and Linux. No bot joins the call. Free and open source." property="og:description"/><meta content="https://yogurt.so/marketing/assets/og-image.png" property="og:image"/><meta content="1200" property="og:image:width"/><meta content="630" property="og:image:height"/><meta content="Yogurt logo, Private AI meeting notes, and the app’s meeting summary." property="og:image:alt"/><meta content="summary_large_image" name="twitter:card"/><meta content="Yogurt · AI meeting notes that stay on your computer" name="twitter:title"/><meta content="Yogurt takes meeting notes with AI that runs locally on Mac, Windows and Linux. No bot joins the call. Free and open source." name="twitter:description"/><meta content="https://yogurt.so/marketing/assets/og-image.png" name="twitter:image"/><meta content="Yogurt logo, Private AI meeting notes, and the app’s meeting summary." name="twitter:image:alt"/><script>window.va=window.va||function(){(window.vaq=window.vaq||[]).push(arguments)};</script><script defer src="/_vercel/insights/script.js"></script></head>
diff --git a/site/public/marketing/assets/apple-touch-icon.png b/site/public/marketing/assets/apple-touch-icon.png
index ca8c6ee4..5824dcb2 100644
Binary files a/site/public/marketing/assets/apple-touch-icon.png and b/site/public/marketing/assets/apple-touch-icon.png differ
diff --git a/site/public/marketing/assets/favicon-32.png b/site/public/marketing/assets/favicon-32.png
index 9e28d603..3149244e 100644
Binary files a/site/public/marketing/assets/favicon-32.png and b/site/public/marketing/assets/favicon-32.png differ
diff --git a/site/public/marketing/assets/favicon.svg b/site/public/marketing/assets/favicon.svg
new file mode 100644
index 00000000..e1fc3c70
--- /dev/null
+++ b/site/public/marketing/assets/favicon.svg
@@ -0,0 +1,9 @@
+<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16">
+ <style>
+ @media (prefers-color-scheme: dark) {
+ path { fill: #C39AFF }
+ }
+ </style>
+ <path fill="#6F00FF" d="M5 2H9L8.75 5.25Q8.65 6.5 7.5 6.8L6.5 7.05Q5.5 7.3 5.6 8.45Q5.7 9.3 6.8 9.9V10.5Q4.5 10.35 2.85 9Q1 7.55 1 5.6Q1 2 5 2Z
+ M10 6H11.25Q15 6 15 9.25Q15 11.85 13 13.5Q11.3 15 9 15V14.25Q10.55 13.35 10.3 12.2Q10.2 11.4 9.2 11.25L8.3 11.05Q7.5 10.9 7.5 9.9L7.65 8Q7.8 6 10 6Z"/>
+</svg>
diff --git a/site/public/marketing/theme.mjs b/site/public/marketing/theme.mjs
index 381a6517..49cbeed7 100644
--- a/site/public/marketing/theme.mjs
+++ b/site/public/marketing/theme.mjs
@@ -18,10 +18,6 @@ function render(){
toggle.setAttribute('aria-label',dark?'Switch to light mode':'Switch to dark mode');
toggle.setAttribute('aria-pressed',String(dark));
document.querySelector('meta[name="theme-color"]').content=dark?'#1B1B1D':'#ffffff';
- document.getElementById('theme-icon').href=dark?'/marketing/assets/mark-dark.svg':'/marketing/assets/mark.svg';
- const fallback=document.getElementById('theme-icon-png');
- fallback.href=dark?'/marketing/assets/mark-dark.svg':'/marketing/assets/favicon-32.png';
- fallback.type=dark?'image/svg+xml':'image/png';
document.querySelectorAll('.hero-renderer,.tour-frame iframe').forEach(syncFrameTheme);
}
diff --git a/site/scripts/theme.test.mjs b/site/scripts/theme.test.mjs
index 1db57c1a..5b7d4e87 100644
--- a/site/scripts/theme.test.mjs
+++ b/site/scripts/theme.test.mjs
@@ -7,27 +7,44 @@ const bootstrap=html.match(/<script>\s*(\(function\(\)[\s\S]*?)<\/script>/)[1];
const script=readFileSync(new URL('../public/marketing/theme.mjs',import.meta.url),'utf8').replace('export function','function');
assert.ok(html.indexOf(bootstrap)<html.indexOf('href="/marketing/site.css"'));
+// Keep the scalable icon last so browsers can prefer it to the bitmap.
+const iconLinks=[...html.matchAll(/<link\b[^>]*\brel="(?:apple-touch-)?icon"[^>]*>/g)].map(([link])=>
+ Object.fromEntries([...link.matchAll(/([\w-]+)="([^"]*)"/g)].map(([,key,value])=>[key,value]))
+);
+assert.deepEqual(iconLinks.map(({rel,type,sizes,href})=>[rel,type,sizes,href]),[
+ ['icon','image/png','32x32','/marketing/assets/favicon-32.png'],
+ ['icon','image/svg+xml','any','/marketing/assets/favicon.svg'],
+ ['apple-touch-icon',undefined,'180x180','/marketing/assets/apple-touch-icon.png'],
+]);
+const [bitmap,vector,touch]=iconLinks.map(({href})=>readFileSync(new URL('../public'+href,import.meta.url)));
+assert.match(vector.toString(), /<path\s+fill="#6F00FF"/i);
+assert.match(vector.toString(), /@media\s*\(prefers-color-scheme:\s*dark\)\s*\{\s*path\s*\{\s*fill:\s*#C39AFF\b/i);
+for(const [png,size] of [[bitmap,32],[touch,180]]){
+ assert.equal(png.toString('ascii',1,4),'PNG');
+ assert.equal(png.readUInt32BE(16),size);
+ assert.equal(png.readUInt32BE(20),size);
+}
+
function page(saved,{blocked=false,search='',systemDark=false}={}){
const classes=new Set(),listeners=[];
const media={matches:systemDark,addEventListener:(_name,fn)=>listeners.push(fn)};
const root={dataset:{theme:'light'},classList:{add:v=>classes.add(v),remove:v=>classes.delete(v)}};
const toggle={hidden:true,setAttribute(k,v){this[k]=v},addEventListener(k,fn){this[k]=fn}};
- const meta={content:'#ffffff'},icon={},fallback={};
+ const meta={content:'#ffffff'};
const frames=[false,true].map(hero=>({classList:{contains:()=>hero},contentDocument:{documentElement:{dataset:{},style:{}}}}));
const storage=new Map(saved===undefined?[]:[['yogurt-theme',saved]]);
const context=vm.createContext({
URLSearchParams,location:{search},matchMedia:()=>media,
document:{documentElement:root,querySelector:s=>s==='.theme-toggle'?toggle:meta,
- getElementById:id=>id==='theme-icon'?icon:fallback,querySelectorAll:()=>frames},
+ querySelectorAll:()=>frames},
localStorage:{getItem(k){if(blocked)throw Error('denied');return storage.get(k)},setItem(k,v){if(blocked)throw Error('denied');storage.set(k,v)}},
requestAnimationFrame:fn=>fn(),
});
vm.runInContext(bootstrap,context);
const initial=root.dataset.theme;
assert.equal(meta.content,initial==='dark'?'#1B1B1D':'#ffffff');
- if(initial==='dark')assert.equal(icon.href,'/marketing/assets/mark-dark.svg');
vm.runInContext(script,context);
- return {root,toggle,meta,icon,fallback,frames,storage,context,initial,system(dark){media.matches=dark;listeners.forEach(fn=>fn({matches:dark}))}};
+ return {root,toggle,meta,frames,storage,context,initial,system(dark){media.matches=dark;listeners.forEach(fn=>fn({matches:dark}))}};
}
for(const systemDark of [false,true])for(const saved of [undefined,'light','dark','invalid']){
@@ -42,8 +59,6 @@ for(const systemDark of [false,true])for(const saved of [undefined,'light','dark
assert.equal(p.toggle['aria-label'],`Switch to ${next==='dark'?'light':'dark'} mode`);
assert.equal(p.toggle['aria-pressed'],String(next==='dark'));
assert.equal(p.meta.content,next==='dark'?'#1B1B1D':'#ffffff');
- assert.equal(p.icon.href,`/marketing/assets/mark${next==='dark'?'-dark':''}.svg`);
- assert.equal(p.fallback.type,next==='dark'?'image/svg+xml':'image/png');
assert.equal(p.frames[0].contentDocument.documentElement.dataset.marketingTheme,next);
assert.equal(p.frames[1].contentDocument.documentElement.dataset.marketingTheme,'dark');
assert.equal(page(p.storage.get('yogurt-theme')).initial,next);