Skip to content

armgit / bento

Public Imported from GitHub
0

Bento, the office suite that fits in a file

Logo reads as a B: blue spine left, bowls right — everywhere

nyblnet5e438122ee8f
diff --git a/slides/index.html b/slides/index.html
index 7db6f470..845f47b6 100644
--- a/slides/index.html
+++ b/slides/index.html
@@ -4,7 +4,7 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="generator" content="bento-slides" />
- <link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='2' y='2' width='28' height='28' rx='6' fill='%231E2A3A'/%3E%3Crect x='6' y='6' width='12' height='9' rx='2' fill='%23F7A600'/%3E%3Crect x='20' y='6' width='6' height='20' rx='2' fill='%235B8DEF'/%3E%3Crect x='6' y='17' width='12' height='9' rx='2' fill='%23E9EDF3'/%3E%3C/svg%3E" />
+ <link rel="icon" href="data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect x='2' y='2' width='28' height='28' rx='6' fill='%231E2A3A'/%3E%3Crect x='6' y='6' width='6' height='20' rx='2' fill='%235B8DEF'/%3E%3Crect x='14' y='6' width='12' height='9' rx='2' fill='%23F7A600'/%3E%3Crect x='14' y='17' width='12' height='9' rx='2' fill='%23E9EDF3'/%3E%3C/svg%3E" />
<title>Bento Slides</title>
<!--
Bento document data lives in the script block below. The runtime replaces its
@@ -25,9 +25,9 @@
#bento-splash.done{opacity:0}
.bs-mark{position:relative;width:104px;height:104px;border-radius:24px;background:#1e2a3a;box-shadow:0 26px 70px -16px rgba(247,166,0,.38),0 10px 34px rgba(0,0,0,.55);overflow:hidden;animation:bsIn .7s cubic-bezier(.22,1.4,.36,1) both,bsFloat 3.4s ease-in-out .9s infinite}
.bs-mark i{position:absolute;border-radius:9px;opacity:0;animation:bsTile .55s cubic-bezier(.25,1.5,.45,1) both}
-.bs-a{left:12px;top:12px;width:50px;height:37px;background:#f7a600;animation-delay:.18s}
-.bs-b{right:12px;top:12px;width:24px;height:80px;background:#5b8def;animation-delay:.3s}
-.bs-c{left:12px;bottom:12px;width:50px;height:37px;background:#e9edf3;animation-delay:.42s}
+.bs-b{left:12px;top:12px;width:24px;height:80px;background:#5b8def;animation-delay:.18s}
+.bs-a{right:12px;top:12px;width:50px;height:37px;background:#f7a600;animation-delay:.3s}
+.bs-c{right:12px;bottom:12px;width:50px;height:37px;background:#e9edf3;animation-delay:.42s}
.bs-mark:after{content:"";position:absolute;inset:0;background:linear-gradient(115deg,transparent 38%,rgba(255,255,255,.35) 50%,transparent 62%);transform:translateX(-130%);animation:bsSheen 1s ease 1.05s both}
.bs-word{font:600 15px/1 -apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;color:#e8edf4;letter-spacing:.42em;text-transform:uppercase;text-indent:.42em;animation:bsUp .6s ease .55s both}
.bs-word b{color:#f7a600;font-weight:800}
diff --git a/slides/src/editor/editor.ts b/slides/src/editor/editor.ts
index 0c3bc5f3..5446db6a 100644
--- a/slides/src/editor/editor.ts
+++ b/slides/src/editor/editor.ts
@@ -56,7 +56,13 @@ export class Editor {
// topbar
const bar = div('ed-topbar')
const logo = div('ed-logo')
- logo.innerHTML = `<span class="ed-logo-mark">🍱</span> <b>Bento</b>&nbsp;Slides`
+ logo.innerHTML =
+ `<svg class="ed-logo-mark" viewBox="0 0 32 32" width="20" height="20" aria-hidden="true">` +
+ `<rect width="32" height="32" rx="7" fill="#1E2A3A"/>` +
+ `<rect x="5" y="5" width="6" height="22" rx="2.5" fill="#5B8DEF"/>` +
+ `<rect x="14" y="5" width="13" height="10" rx="2.5" fill="#F7A600"/>` +
+ `<rect x="14" y="17" width="13" height="10" rx="2.5" fill="#E9EDF3"/>` +
+ `</svg> <b>Bento</b>&nbsp;Slides`
const title = document.createElement('input')
title.className = 'ed-title'
title.value = this.store.doc.title
diff --git a/slides/src/styles.css b/slides/src/styles.css
index ff5ae124..22779546 100644
--- a/slides/src/styles.css
+++ b/slides/src/styles.css
@@ -45,8 +45,8 @@ html, body {
z-index: 20;
}
-.ed-logo { display: flex; align-items: center; gap: 6px; font-size: 15px; white-space: nowrap; }
-.ed-logo-mark { font-size: 18px; }
+.ed-logo { display: flex; align-items: center; gap: 7px; font-size: 15px; white-space: nowrap; }
+.ed-logo-mark { display: block; border-radius: 5px; }
.ed-title {
font: inherit;