List the team's Oficina apps on Home: a rail, or tiles on a phone
BASE_OFICINA_APPS names the apps as id=https-origin pairs, in order. Base knows calendar, docs, sheets, slides, memoria, calls, fichas and equipo, and names them itself; an unknown id, a repeated one or an address that is not https and a hostname refuses to start. Empty means no apps. On a wide screen Home gets a slim glass rail down the left, under the top bar, and its content moves right beside it. On a phone there is no rail: the same apps are tiles under an "Oficina" heading, above Store, People and Settings. Every entry is a plain link that opens the app in a new tab (rel=noopener). The icons are Estilo's brand/svg marks, copied from Estilo 39792ae and served from Base's static tree; Equipo has no icon of its own yet and uses the Oficina mark. internal/look/static/oficina/README.md records the source.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
21 files changed,
+516
−4
README.md+8 −0docs/copy-pending.md+8 −0docs/roadmap.md+1 −1internal/browsertest/mobile_test.go+32 −2internal/browsertest/oficina_test.go+141 −0internal/config/config.go+6 −0internal/config/config_test.go+82 −0internal/config/oficina.go+73 −0internal/look/static/app.css+21 −0internal/look/static/oficina/README.md+30 −0internal/look/static/oficina/calendar.svg+1 −0internal/look/static/oficina/calls.svg+1 −0internal/look/static/oficina/docs.svg+1 −0internal/look/static/oficina/equipo.svg+1 −0internal/look/static/oficina/fichas.svg+1 −0internal/look/static/oficina/memoria.svg+1 −0internal/look/static/oficina/sheets.svg+1 −0internal/look/static/oficina/slides.svg+1 −0internal/web/home.go+13 −0internal/web/templates/home.html+14 −1internal/webtest/home_test.go+79 −0
diff --git a/README.md b/README.md| index e955ce1..cb9f94b 100644 |
| --- a/README.md |
| +++ b/README.md |
| @@ -51,6 +51,14 @@ Everything is an environment variable. `BASE_ORIGIN`, `BASE_OWNER` and |
| stays off. Each person connects Equipo once, from Settings or the Ask |
| panel; Base keeps their Equipo key sealed with `BASE_INSTANCE_KEY`, so |
| changing that key disconnects everyone from Equipo. |
| +- `BASE_OFICINA_APPS` lists your team's Oficina apps, which Home shows down |
| + the left (as tiles on a phone), each opening in a new tab. Write each as |
| + `id=address`, separated by commas, in the order you want them, such as |
| + `calendar=https://calendar.oficina.works,fichas=https://fichas.oficina.works`. |
| + The ids are `calendar`, `docs`, `sheets`, `slides`, `memoria`, `calls`, |
| + `fichas` and `equipo`, and each address is `https://` and a hostname only. |
| + Base refuses to start with an id it doesn't know. Without it, Home lists no |
| + Oficina apps. |
| To let your team sign in with Oficina ID, set all four of these. Without them |
| Base has only its own sign-in. With some but not all, it refuses to start. |
diff --git a/docs/copy-pending.md b/docs/copy-pending.md| index 3c4c598..dd1571b 100644 |
| --- a/docs/copy-pending.md |
| +++ b/docs/copy-pending.md |
| @@ -265,5 +265,13 @@ Review 5 (pending): "Ask Base anything", the chat with Equipo's coordinator. |
| | internal/web/templates/settings.html | Equipo row, buttons | Disconnect / Finish connecting / Reconnect Equipo / Connect Equipo | |
| | internal/config/config.go | Start-up refusal (operator-facing log) | BASE_EQUIPO_ORIGIN {value} must be an https origin: a scheme and host only (http only on loopback) | |
| | README.md | Settings: the BASE_EQUIPO_ORIGIN bullet (new lines only) | `BASE_EQUIPO_ORIGIN` is the Equipo whose coordinator answers "Ask Base anything", such as `https://equipo.example.com`. Without it the Ask field stays off. Each person connects Equipo once, from Settings or the Ask panel; Base keeps their Equipo key sealed with `BASE_INSTANCE_KEY`, so changing that key disconnects everyone from Equipo. | |
| +| internal/web/templates/home.html | Home on a wide screen: the Oficina apps rail's accessible name (a nav) | Oficina | |
| +| internal/web/templates/home.html | Home on a phone: the small heading over the Oficina app tiles | Oficina | |
| +| internal/config/oficina.go | Oficina app names on the rail and the tiles (Base's own, whatever the setting says) | Calendar / Docs / Sheets / Slides / Memoria / Calls / Fichas / Equipo | |
| +| internal/config/oficina.go | Start-up refusal: an item without an id and an address (operator-facing log) | BASE_OFICINA_APPS: {item} must be an app and its address, such as calendar=https://calendar.example.com | |
| +| internal/config/oficina.go | Start-up refusal: an id Base doesn't know (operator-facing log) | BASE_OFICINA_APPS: unknown app {id}; Base knows calendar, docs, sheets, slides, memoria, calls, fichas, equipo | |
| +| internal/config/oficina.go | Start-up refusal: the same id twice (operator-facing log) | BASE_OFICINA_APPS lists {id} twice | |
| +| internal/config/oficina.go | Start-up refusal: an address that is not https and a hostname (operator-facing log) | BASE_OFICINA_APPS: {id}'s address {value} must be https:// and a hostname only | |
| +| README.md | Settings: the BASE_OFICINA_APPS bullet (new lines only) | `BASE_OFICINA_APPS` lists your team's Oficina apps, which Home shows down the left (as tiles on a phone), each opening in a new tab. Write each as `id=address`, separated by commas, in the order you want them, such as `calendar=https://calendar.oficina.works,fichas=https://fichas.oficina.works`. The ids are `calendar`, `docs`, `sheets`, `slides`, `memoria`, `calls`, `fichas` and `equipo`, and each address is `https://` and a hostname only. Base refuses to start with an id it doesn't know. Without it, Home lists no Oficina apps. | |
| Activity lines in the status ("Adding a project…" and the like) are Equipo's own labels, shown as Equipo sends them. |
diff --git a/docs/roadmap.md b/docs/roadmap.md| index 23049d1..728288a 100644 |
| --- a/docs/roadmap.md |
| +++ b/docs/roadmap.md |
| @@ -4,7 +4,7 @@ The "Base + Equipo" slice, in order. Each step makes one join between the pieces |
| 1. Sign in to Base with Oficina ID. Done (branch oficina-id, deployed 2026-11-11). |
| 2. Ask Base: Equipo's coordinator chat in a glass panel, via Equipo's device sign-in. Built (branch ask-base); copy review 5 and deploy pending. |
| -3. Oficina apps as tiles on Home. |
| +3. Oficina apps on Home: a rail on a wide screen, tiles on a phone (BASE_OFICINA_APPS). Built (branch ask-base); copy review 5 and deploy pending. |
| 4. "What can I do": the coordinator learns what's in Base. oficina/equipo discussion 9. |
| 5. "Put a meeting in my calendar…": oficina/equipo 10, oficina/agent-access 2, oficina/calendar 37. |
| 6. "Build me a quick website": oficina/equipo 11, carlos/platform 934. |
diff --git a/internal/browsertest/mobile_test.go b/internal/browsertest/mobile_test.go| index e44236e..b9e3fa5 100644 |
| --- a/internal/browsertest/mobile_test.go |
| +++ b/internal/browsertest/mobile_test.go |
| @@ -17,7 +17,7 @@ import ( |
| "amadan.net/carlos/base/internal/equipo/equipotest" |
| ) |
| -// noOverflow fails if the page is wider than the phone's screen. |
| +// noOverflow fails if the page is wider than the screen. |
| func noOverflow(t *testing.T, rig *harness.Rig, page string) { |
| t.Helper() |
| if got := harness.Evaluate[string](rig, `(() => { |
| @@ -27,7 +27,7 @@ func noOverflow(t *testing.T, rig *harness.Rig, page string) { |
| .slice(0, 5).map(e => e.tagName.toLowerCase() + "." + e.className + " " + Math.round(e.getBoundingClientRect().right)); |
| return s + " > " + w + ": " + wide.join(", "); |
| })()`); got != "" { |
| - t.Errorf("%s overflows a 390px screen: %s", page, got) |
| + t.Errorf("%s overflows the screen: %s", page, got) |
| } |
| } |
| @@ -64,10 +64,12 @@ func TestMobile(t *testing.T) { |
| f.Reply = func(string) string { |
| return "You can ask me to plan work, check on a project, or start a task. What would you like to do?" |
| } |
| + apps := teamApps(t) |
| var b *baseApp |
| rig := newRig(t, func(origin string) http.Handler { |
| cfg := baseConfig(origin) |
| cfg.EquipoOrigin = f.URL |
| + cfg.OficinaApps = apps |
| b = newBase(t, cfg) |
| return b.handler |
| }) |
| @@ -99,6 +101,34 @@ func TestMobile(t *testing.T) { |
| } |
| mobileShot(t, rig, "1-home") |
| + // Home: no rail on a phone; the team's Oficina apps are tiles, the size |
| + // of Store's, under a small heading above Store, People and Settings. |
| + if got := harness.Evaluate[string](rig, `((want) => { |
| + const problems = []; |
| + const rail = document.querySelector("nav.rail"); |
| + if (rail && rail.checkVisibility()) problems.push("the rail shows"); |
| + const sec = document.querySelector("section.oficina"); |
| + if (!sec || !sec.checkVisibility()) return "no Oficina tiles"; |
| + const h = sec.querySelector("h3"); |
| + if (!h || h.textContent !== "Oficina" || !h.checkVisibility()) problems.push("no Oficina heading"); |
| + const links = [...sec.querySelectorAll("a.app")]; |
| + const got = links.map(a => ({Name: a.textContent.trim(), Href: a.getAttribute("href")})); |
| + if (JSON.stringify(got) !== JSON.stringify(want)) problems.push("apps " + JSON.stringify(got)); |
| + const store = document.querySelector('.dock a[href="/store"] .tile').getBoundingClientRect(); |
| + for (const a of links) { |
| + const t = a.querySelector(".tile").getBoundingClientRect(); |
| + if (Math.round(t.width) !== Math.round(store.width) || Math.round(t.height) !== Math.round(store.height)) problems.push(a.textContent + " is " + t.width + "x" + t.height); |
| + if (a.target !== "_blank" || a.rel !== "noopener") problems.push(a.textContent + " target " + a.target + " rel " + a.rel); |
| + const img = a.querySelector("img"); |
| + if (!img || !img.complete || img.naturalWidth === 0) problems.push(a.textContent + "'s icon did not load"); |
| + } |
| + if (links.length && links[links.length - 1].getBoundingClientRect().bottom > store.top) problems.push("the tiles are not above Store"); |
| + return problems.join("; "); |
| + })(`+wantApps(t, apps)+`)`); got != "" { |
| + t.Errorf("Oficina on a phone: %s", got) |
| + } |
| + viewportShot(t, rig, "home-phone") |
| + |
| // The panel before connecting. |
| drive(t, rig, chromedp.Click(chromedp.CSS(`a.ask-icon`)), |
| chromedp.WaitVisible(chromedp.CSS(`#ask-panel [data-when="connect"] button`))) |
diff --git a/internal/browsertest/oficina_test.go b/internal/browsertest/oficina_test.go| new file mode 100644 |
| index 0000000..59606f5 |
| --- /dev/null |
| +++ b/internal/browsertest/oficina_test.go |
| @@ -0,0 +1,141 @@ |
| +//go:build browser |
| + |
| +package browsertest |
| + |
| +import ( |
| + "context" |
| + "encoding/json" |
| + "net/http" |
| + "os" |
| + "path/filepath" |
| + "testing" |
| + |
| + "github.com/chromedp/chromedp" |
| + |
| + "amadan.net/rastrillo/rastrillo/harness" |
| + |
| + "amadan.net/carlos/base/internal/config" |
| + "amadan.net/carlos/base/internal/equipo/equipotest" |
| +) |
| + |
| +// teamApps is every Oficina app, as the team's BASE_OFICINA_APPS lists them. |
| +func teamApps(t *testing.T) []config.OficinaApp { |
| + t.Helper() |
| + cfg, err := config.Load(func(k string) string { |
| + return map[string]string{ |
| + "BASE_ORIGIN": "https://base.example.com", "BASE_OWNER": ownerAddress, |
| + "BASE_OFICINA_APPS": "calendar=https://calendar.oficina.works,docs=https://docs.oficina.works,sheets=https://sheets.oficina.works," + |
| + "slides=https://slides.oficina.works,memoria=https://memoria.oficina.works,calls=https://calls.oficina.works," + |
| + "fichas=https://fichas.oficina.works,equipo=https://equipo.bds.oncarlos.com", |
| + }[k] |
| + }) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + return cfg.OficinaApps |
| +} |
| + |
| +// wantApps is the apps' names and hrefs as JSON, for a check in the page. |
| +func wantApps(t *testing.T, apps []config.OficinaApp) string { |
| + t.Helper() |
| + type app struct{ Name, Href string } |
| + var out []app |
| + for _, a := range apps { |
| + out = append(out, app{a.Name, a.Origin + "/"}) |
| + } |
| + b, err := json.Marshal(out) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + return string(b) |
| +} |
| + |
| +// viewportShot saves what is on screen (not the full page) when |
| +// BASE_BROWSER_ARTIFACTS is set. |
| +func viewportShot(t *testing.T, rig *harness.Rig, name string) { |
| + t.Helper() |
| + dir := os.Getenv("BASE_BROWSER_ARTIFACTS") |
| + if dir == "" { |
| + return |
| + } |
| + drive(t, rig, chromedp.Func(func(ctx context.Context, target *chromedp.Target) error { |
| + _, err := chromedp.Evaluate[bool](`document.fonts.ready.then(() => Promise.all([...document.images].map(i => i.decode().catch(() => {})))).then(() => true)`, chromedp.EvalAwaitPromise)(ctx, target) |
| + return err |
| + })) |
| + png := harness.Read(rig, chromedp.CaptureScreenshot()) |
| + if err := os.MkdirAll(dir, 0o755); err != nil { |
| + t.Fatal(err) |
| + } |
| + if err := os.WriteFile(filepath.Join(dir, name+".png"), png, 0o644); err != nil { |
| + t.Fatal(err) |
| + } |
| +} |
| + |
| +// On a wide screen Home has a slim glass rail of the team's Oficina apps |
| +// down the left, under the top bar, beside Home's content and not over it. |
| +// Each is a plain link that opens the app in a new tab, a 44px target that |
| +// the keyboard reaches with a visible focus ring. |
| +func TestOficinaRail(t *testing.T) { |
| + f := equipotest.New(t) |
| + apps := teamApps(t) |
| + var b *baseApp |
| + rig := newRig(t, func(origin string) http.Handler { |
| + cfg := baseConfig(origin) |
| + cfg.EquipoOrigin = f.URL |
| + cfg.OficinaApps = apps |
| + b = newBase(t, cfg) |
| + return b.handler |
| + }) |
| + drive(t, rig, chromedp.EmulateViewport(1280, 800)) |
| + signInByEmail(t, rig, rig.Origin, b.mail) |
| + noOverflow(t, rig, "Home") |
| + |
| + if got := harness.Evaluate[string](rig, `((want) => { |
| + const problems = []; |
| + const rail = document.querySelector("nav.rail"); |
| + if (!rail || !rail.checkVisibility()) return "no rail"; |
| + if (rail.getAttribute("aria-label") !== "Oficina") problems.push("rail labelled " + rail.getAttribute("aria-label")); |
| + const phone = document.querySelector("section.oficina"); |
| + if (phone && phone.checkVisibility()) problems.push("the phone's tiles show too"); |
| + const links = [...rail.querySelectorAll("a")]; |
| + const got = links.map(a => ({Name: a.textContent.trim(), Href: a.getAttribute("href")})); |
| + if (JSON.stringify(got) !== JSON.stringify(want)) problems.push("apps " + JSON.stringify(got)); |
| + for (const a of links) { |
| + const r = a.getBoundingClientRect(); |
| + if (a.target !== "_blank" || a.rel !== "noopener") problems.push(a.textContent + " target " + a.target + " rel " + a.rel); |
| + if (r.width < 44 || r.height < 44) problems.push(a.textContent + " is " + r.width + "x" + r.height); |
| + const img = a.querySelector("img"); |
| + if (!img || !img.complete || img.naturalWidth === 0) problems.push(a.textContent + "'s icon did not load"); |
| + if (r.bottom > window.innerHeight) problems.push(a.textContent + " is below the fold at " + r.bottom); |
| + } |
| + const rr = rail.getBoundingClientRect(), bar = document.querySelector(".topbar").getBoundingClientRect(); |
| + if (rr.top < bar.bottom + 8) problems.push("rail top " + rr.top + " under the top bar's bottom " + bar.bottom); |
| + if (Math.abs(rr.left - bar.left) > 1) problems.push("rail left " + rr.left + ", top bar left " + bar.left); |
| + if (rr.width > 96) problems.push("rail is " + rr.width + "px wide"); |
| + for (const sel of [".home-body", ".hello", ".lede", ".steps", ".dock"]) { |
| + const r = document.querySelector(sel).getBoundingClientRect(); |
| + if (r.left < rr.right + 12) problems.push(sel + " starts at " + r.left + ", rail ends at " + rr.right); |
| + } |
| + return problems.join("; "); |
| + })(`+wantApps(t, apps)+`)`); got != "" { |
| + t.Errorf("the rail: %s", got) |
| + } |
| + |
| + // The keyboard reaches the rail after the top bar, and shows where it is. |
| + drive(t, rig, chromedp.KeyEvent("\t"), chromedp.KeyEvent("\t"), chromedp.KeyEvent("\t")) |
| + if got := harness.Evaluate[string](rig, `(() => { |
| + const a = document.activeElement; |
| + if (!a.matches("nav.rail a:first-child")) return "focus is on " + a.outerHTML.slice(0, 80); |
| + const s = getComputedStyle(a); |
| + if (!a.matches(":focus-visible") || s.outlineStyle !== "solid" || parseFloat(s.outlineWidth) < 2) return "no visible focus: " + s.outline; |
| + const r = a.getBoundingClientRect(), rail = document.querySelector("nav.rail").getBoundingClientRect(); |
| + const off = parseFloat(s.outlineOffset), w = parseFloat(s.outlineWidth); |
| + if (r.left - off - w < rail.left - 0.5 && getComputedStyle(document.querySelector("nav.rail")).overflowX !== "visible") return "focus ring clipped"; |
| + return ""; |
| + })()`); got != "" { |
| + t.Errorf("keyboard: %s", got) |
| + } |
| + viewportShot(t, rig, "home-desktop-focus") |
| + drive(t, rig, chromedp.Navigate(rig.Origin+"/"), chromedp.WaitVisible(chromedp.CSS(".hello"))) |
| + viewportShot(t, rig, "home-desktop") |
| +} |
diff --git a/internal/config/config.go b/internal/config/config.go| index d0ab6e7..0c01cd3 100644 |
| --- a/internal/config/config.go |
| +++ b/internal/config/config.go |
| @@ -49,6 +49,9 @@ type Config struct { |
| // EquipoOrigin is the Equipo instance whose coordinator answers "Ask |
| // Base anything" (BASE_EQUIPO_ORIGIN). Empty leaves the chat off. |
| EquipoOrigin string |
| + // OficinaApps are the team's Oficina apps, in the order Home lists |
| + // them (BASE_OFICINA_APPS). Empty leaves them off Home. |
| + OficinaApps []OficinaApp |
| // Home turns on sign-in with Oficina ID. Nil (no BASE_HOME_* settings) |
| // leaves it off; LoadHome sets it. |
| Home *connect.DecodedCredentials |
| @@ -111,6 +114,9 @@ func Load(getenv func(string) string) (Config, error) { |
| if cfg.EquipoOrigin, err = equipoOrigin(get("EQUIPO_ORIGIN")); err != nil { |
| return Config{}, err |
| } |
| + if cfg.OficinaApps, err = parseOficinaApps(get("OFICINA_APPS")); err != nil { |
| + return Config{}, err |
| + } |
| if cfg.AppsDomain != "" { |
| if err := checkAssertionOrigins(cfg, local); err != nil { |
| return Config{}, err |
diff --git a/internal/config/config_test.go b/internal/config/config_test.go| index 6eb8740..48c8a51 100644 |
| --- a/internal/config/config_test.go |
| +++ b/internal/config/config_test.go |
| @@ -150,3 +150,85 @@ func TestEquipoOrigin(t *testing.T) { |
| } |
| } |
| } |
| + |
| +func TestOficinaApps(t *testing.T) { |
| + cfg, err := Load(env(valid())) |
| + if err != nil || cfg.OficinaApps != nil { |
| + t.Fatalf("unset: %+v, %v; want no rail", cfg.OficinaApps, err) |
| + } |
| + |
| + // Good: in the setting's order, names from Base, a trailing / dropped, |
| + // spaces and a trailing comma tolerated. |
| + m := valid() |
| + m["BASE_OFICINA_APPS"] = " fichas=https://fichas.oficina.works, calendar=https://calendar.oficina.works/ ,equipo=https://equipo.bds.oncarlos.com," |
| + cfg, err = Load(env(m)) |
| + if err != nil { |
| + t.Fatal(err) |
| + } |
| + want := []OficinaApp{ |
| + {ID: "fichas", Name: "Fichas", Origin: "https://fichas.oficina.works"}, |
| + {ID: "calendar", Name: "Calendar", Origin: "https://calendar.oficina.works"}, |
| + {ID: "equipo", Name: "Equipo", Origin: "https://equipo.bds.oncarlos.com"}, |
| + } |
| + if len(cfg.OficinaApps) != len(want) { |
| + t.Fatalf("got %+v, want %+v", cfg.OficinaApps, want) |
| + } |
| + for i := range want { |
| + if cfg.OficinaApps[i] != want[i] { |
| + t.Errorf("app %d = %+v, want %+v", i, cfg.OficinaApps[i], want[i]) |
| + } |
| + } |
| + |
| + // Every known id, with the name Base gives it. |
| + names := map[string]string{"calendar": "Calendar", "docs": "Docs", "sheets": "Sheets", "slides": "Slides", |
| + "memoria": "Memoria", "calls": "Calls", "fichas": "Fichas", "equipo": "Equipo"} |
| + var all []string |
| + for _, id := range OficinaIDs() { |
| + all = append(all, id+"=https://"+id+".oficina.works") |
| + } |
| + m["BASE_OFICINA_APPS"] = strings.Join(all, ",") |
| + if cfg, err = Load(env(m)); err != nil || len(cfg.OficinaApps) != len(names) { |
| + t.Fatalf("every known app: %+v, %v", cfg.OficinaApps, err) |
| + } |
| + for _, a := range cfg.OficinaApps { |
| + if names[a.ID] != a.Name { |
| + t.Errorf("%s is named %q, want %q", a.ID, a.Name, names[a.ID]) |
| + } |
| + } |
| + |
| + // Empty: no rail. |
| + for _, raw := range []string{"", " ", ","} { |
| + m["BASE_OFICINA_APPS"] = raw |
| + if cfg, err = Load(env(m)); err != nil || len(cfg.OficinaApps) != 0 { |
| + t.Errorf("%q: %+v, %v; want no apps", raw, cfg.OficinaApps, err) |
| + } |
| + } |
| + |
| + // Refused at boot, naming the setting and what is wrong. |
| + for raw, says := range map[string]string{ |
| + "mail=https://mail.oficina.works": "mail", |
| + "Calendar=https://calendar.oficina.works": "Calendar", |
| + "calendar=http://calendar.oficina.works": "https", |
| + "calendar=https://calendar.oficina.works/today": "https", |
| + "calendar=https://user@calendar.oficina.works": "https", |
| + "calendar=https://calendar.oficina.works?x=1": "https", |
| + "calendar=https://203.0.113.7": "https", |
| + "calendar=https://localhost": "https", |
| + "calendar=https://calendar.oficina.works:8443": "https", |
| + "calendar=calendar.oficina.works": "https", |
| + "calendar=": "https", |
| + "calendar": "calendar", |
| + "https://calendar.oficina.works": "https://calendar.oficina.works", |
| + "calendar=https://calendar.oficina.works,calendar=https://c.example.com": "twice", |
| + } { |
| + m["BASE_OFICINA_APPS"] = raw |
| + _, err := Load(env(m)) |
| + if err == nil { |
| + t.Errorf("%q accepted", raw) |
| + continue |
| + } |
| + if !strings.Contains(err.Error(), "BASE_OFICINA_APPS") || !strings.Contains(err.Error(), says) { |
| + t.Errorf("%q: error %q does not name the setting and %q", raw, err, says) |
| + } |
| + } |
| +} |
diff --git a/internal/config/oficina.go b/internal/config/oficina.go| new file mode 100644 |
| index 0000000..12c10cc |
| --- /dev/null |
| +++ b/internal/config/oficina.go |
| @@ -0,0 +1,73 @@ |
| +package config |
| + |
| +import ( |
| + "fmt" |
| + "net/url" |
| + "regexp" |
| + "strings" |
| +) |
| + |
| +// OficinaApp is one of the team's Oficina apps, listed on Home. |
| +type OficinaApp struct { |
| + ID string // one of OficinaIDs |
| + Name string // the name Base gives it |
| + Origin string // https and a hostname, no trailing slash |
| +} |
| + |
| +// oficinaApps are the Oficina apps Base knows, with their names. |
| +var oficinaApps = []struct{ id, name string }{ |
| + {"calendar", "Calendar"}, {"docs", "Docs"}, {"sheets", "Sheets"}, {"slides", "Slides"}, |
| + {"memoria", "Memoria"}, {"calls", "Calls"}, {"fichas", "Fichas"}, {"equipo", "Equipo"}, |
| +} |
| + |
| +// OficinaIDs is every app id BASE_OFICINA_APPS accepts. |
| +func OficinaIDs() []string { |
| + ids := make([]string, len(oficinaApps)) |
| + for i, a := range oficinaApps { |
| + ids[i] = a.id |
| + } |
| + return ids |
| +} |
| + |
| +// hostRE is a DNS hostname with at least two labels and a top-level label |
| +// that starts with a letter, so no IP address passes. |
| +var hostRE = regexp.MustCompile(`^([a-z0-9]([a-z0-9-]*[a-z0-9])?\.)+[a-z]([a-z0-9-]*[a-z0-9])?$`) |
| + |
| +// parseOficinaApps reads BASE_OFICINA_APPS: comma-separated id=origin |
| +// pairs, each id one Base knows and each origin https and a hostname only. |
| +// Empty is no apps. |
| +func parseOficinaApps(raw string) ([]OficinaApp, error) { |
| + var out []OficinaApp |
| + seen := map[string]bool{} |
| + for _, item := range strings.Split(raw, ",") { |
| + item = strings.TrimSpace(item) |
| + if item == "" { |
| + continue |
| + } |
| + id, origin, ok := strings.Cut(item, "=") |
| + id, origin = strings.TrimSpace(id), strings.ToLower(strings.TrimRight(strings.TrimSpace(origin), "/")) |
| + if !ok || id == "" { |
| + return nil, fmt.Errorf("BASE_OFICINA_APPS: %q must be an app and its address, such as calendar=https://calendar.example.com", item) |
| + } |
| + name := "" |
| + for _, a := range oficinaApps { |
| + if a.id == id { |
| + name = a.name |
| + } |
| + } |
| + if name == "" { |
| + return nil, fmt.Errorf("BASE_OFICINA_APPS: unknown app %q; Base knows %s", id, strings.Join(OficinaIDs(), ", ")) |
| + } |
| + if seen[id] { |
| + return nil, fmt.Errorf("BASE_OFICINA_APPS lists %s twice", id) |
| + } |
| + seen[id] = true |
| + u, err := url.Parse(origin) |
| + if err != nil || u.Scheme != "https" || u.User != nil || u.Path != "" || u.RawQuery != "" || u.ForceQuery || u.Fragment != "" || |
| + u.Port() != "" || !hostRE.MatchString(u.Host) { |
| + return nil, fmt.Errorf("BASE_OFICINA_APPS: %s's address %q must be https:// and a hostname only", id, origin) |
| + } |
| + out = append(out, OficinaApp{ID: id, Name: name, Origin: origin}) |
| + } |
| + return out, nil |
| +} |
diff --git a/internal/look/static/app.css b/internal/look/static/app.css| index f43582f..1f5e7a5 100644 |
| --- a/internal/look/static/app.css |
| +++ b/internal/look/static/app.css |
| @@ -118,6 +118,23 @@ button.alt[aria-busy="true"] { cursor: progress; } |
| .tile.t-violet { background: linear-gradient(155deg, rgba(139,92,246,.6), rgba(139,92,246,.14)); } |
| .tile.t-mist { background: linear-gradient(155deg, rgba(201,211,227,.4), rgba(201,211,227,.08)); } |
| .tile.t-rose { background: linear-gradient(155deg, rgba(244,114,182,.55), rgba(244,114,182,.12)); } |
| +/* Home's columns: the Oficina rail, when there is one, and everything else. */ |
| +.home-cols { flex: 1; display: flex; gap: 22px; } |
| +.home-body { flex: 1; min-width: 0; display: flex; flex-direction: column; } |
| +/* The Oficina rail: a slim column of glass down the left, under the top bar. |
| + Each app is its icon with its name under it, a link that opens it in a new tab. */ |
| +.rail { flex: none; width: 80px; margin-top: 16px; padding: 8px 6px; border-radius: 18px; |
| + display: flex; flex-direction: column; gap: 4px; } |
| +.rail-app { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 9px 2px 8px; border-radius: 12px; |
| + color: var(--frost); text-decoration: none; font-size: 12px; font-weight: 500; line-height: 1.2; transition: background .2s; } |
| +.rail-app img { width: 36px; height: 36px; display: block; } |
| +.rail-app:hover { background: rgba(238,242,248,.1); } |
| +.rail-app:focus-visible { outline-offset: -2px; background: rgba(238,242,248,.1); } |
| +/* On a phone the same apps are tiles above the dock (see the phone rules). */ |
| +.oficina { display: none; } |
| +.oficina h3 { margin: 0 0 12px; font-size: 13px; font-weight: 600; letter-spacing: .02em; color: var(--haze); } |
| +.oficina-row { display: flex; gap: 18px; flex-wrap: wrap; } |
| +.oficina .tile img { width: 100%; height: 100%; display: block; } |
| .app.new { animation: condense 1.2s cubic-bezier(.2,.7,0,1) both; } |
| @keyframes condense { from { opacity: 0; filter: blur(14px); transform: scale(.94); } to { opacity: 1; filter: none; transform: none; } } |
| .app.leaving { animation: dissolve .5s ease forwards; } |
| @@ -257,6 +274,10 @@ main { min-height: 100dvh; } |
| .ask-icon { display: grid; } |
| .ask, a.ask { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } |
| .me { flex: none; width: 44px; height: 44px; font-size: 14px; } |
| + .rail { display: none; } |
| + .oficina { display: block; margin-top: auto; padding-top: 36px; } |
| + .oficina + .dock { margin-top: 0; padding-top: 24px; } |
| + .oficina-row, .dock { gap: 14px; } |
| .hello { margin-top: 32px; } |
| .inner { padding: 10px; } |
| .sheet { padding: 18px 16px 20px; } |
diff --git a/internal/look/static/oficina/README.md b/internal/look/static/oficina/README.md| new file mode 100644 |
| index 0000000..db11af3 |
| --- /dev/null |
| +++ b/internal/look/static/oficina/README.md |
| @@ -0,0 +1,30 @@ |
| +# Oficina app icons |
| + |
| +Home's Oficina rail and phone tiles show these. They are Oficina's own |
| +icon set, copied unchanged from Estilo (amadan.net/oficina/estilo) at |
| +origin/main commit 39792ae278b0311ad65aae3867de766825fdeba9, from |
| +`brand/svg/` (Calma's squircle with transparent corners, the shape Estilo |
| +uses for the app switcher and the launcher). That directory last changed in |
| +1e668042b3155b754e1fbe8dc9c5ce70dbbbcdce. |
| + |
| +| File | Estilo source | |
| +| --- | --- | |
| +| calendar.svg | brand/svg/calendar.svg | |
| +| docs.svg | brand/svg/docs.svg | |
| +| sheets.svg | brand/svg/sheets.svg | |
| +| slides.svg | brand/svg/slides.svg | |
| +| memoria.svg | brand/svg/memoria.svg | |
| +| calls.svg | brand/svg/calls.svg | |
| +| fichas.svg | brand/svg/fichas.svg | |
| +| equipo.svg | brand/svg/oficina.svg, the Oficina mark | |
| + |
| +Equipo has no icon of its own: Estilo has none, and Equipo's repository |
| +(amadan.net/oficina/equipo, origin/main a0d22a0) ships only Lucide interface |
| +icons. So Equipo uses the Oficina mark until it gets one. |
| + |
| +Terms: Estilo's brand/README.md says these marks are original drawings, not |
| +Lucide, made for the Oficina suite; Estilo carries no other licence for |
| +them. Its only licence file, brand/LICENSE.lucide (ISC), covers the shared |
| +chrome's Lucide interface icons, none of which are copied here. Base is part |
| +of the same suite, so it uses the marks as Oficina's other apps do. To |
| +refresh, copy the files again from Estilo and update the commit above. |
diff --git a/internal/look/static/oficina/calendar.svg b/internal/look/static/oficina/calendar.svg| new file mode 100644 |
| index 0000000..72c5aca |
| --- /dev/null |
| +++ b/internal/look/static/oficina/calendar.svg |
| @@ -0,0 +1 @@ |
| +<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 100 100" role="img" aria-label="Calendar"><title>Calendar</title><defs><clipPath id="s"><path d="M96.00 50.00L95.97 64.13L95.90 68.64L95.77 71.90L95.60 74.54L95.37 76.79L95.09 78.76L94.75 80.51L94.37 82.10L93.92 83.54L93.43 84.86L92.87 86.07L92.26 87.19L91.59 88.22L90.85 89.17L90.05 90.05L89.17 90.85L88.22 91.59L87.19 92.26L86.07 92.87L84.86 93.43L83.54 93.92L82.10 94.37L80.51 94.75L78.76 95.09L76.79 95.37L74.54 95.60L71.90 95.77L68.64 95.90L64.13 95.97L50.00 96.00L35.87 95.97L31.36 95.90L28.10 95.77L25.46 95.60L23.21 95.37L21.24 95.09L19.49 94.75L17.90 94.37L16.46 93.92L15.14 93.43L13.93 92.87L12.81 92.26L11.78 91.59L10.83 90.85L9.95 90.05L9.15 89.17L8.41 88.22L7.74 87.19L7.13 86.07L6.57 84.86L6.08 83.54L5.63 82.10L5.25 80.51L4.91 78.76L4.63 76.79L4.40 74.54L4.23 71.90L4.10 68.64L4.03 64.13L4.00 50.00L4.03 35.87L4.10 31.36L4.23 28.10L4.40 25.46L4.63 23.21L4.91 21.24L5.25 19.49L5.63 17.90L6.08 16.46L6.57 15.14L7.13 13.93L7.74 12.81L8.41 11.78L9.15 10.83L9.95 9.95L10.83 9.15L11.78 8.41L12.81 7.74L13.93 7.13L15.14 6.57L16.46 6.08L17.90 5.63L19.49 5.25L21.24 4.91L23.21 4.63L25.46 4.40L28.10 4.23L31.36 4.10L35.87 4.03L50.00 4.00L64.13 4.03L68.64 4.10L71.90 4.23L74.54 4.40L76.79 4.63L78.76 4.91L80.51 5.25L82.10 5.63L83.54 6.08L84.86 6.57L86.07 7.13L87.19 7.74L88.22 8.41L89.17 9.15L90.05 9.95L90.85 10.83L91.59 11.78L92.26 12.81L92.87 13.93L93.43 15.14L93.92 16.46L94.37 17.90L94.75 19.49L95.09 21.24L95.37 23.21L95.60 25.46L95.77 28.10L95.90 31.36L95.97 35.87Z"/></clipPath><linearGradient id="g" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#d46568"/><stop offset="1" stop-color="#bc484f"/></linearGradient><filter id="h" x="-40%" y="-60%" width="180%" height="220%"><feGaussianBlur stdDeviation="5.5"/></filter></defs><g clip-path="url(#s)"><rect width="100" height="100" fill="url(#g)"/><g filter="url(#h)" opacity=".7"><rect x="4.00" y="44.9" width="0.88" height="11.0" fill="#feb8b4"/><rect x="5.57" y="37.3" width="0.65" height="17.8" fill="#ffaab0"/><rect x="7.47" y="29.0" width="1.11" height="25.1" fill="#ffc7c7"/><rect x="9.64" y="37.7" width="0.80" height="15.0" fill="#ffb3ad"/><rect x="11.83" y="32.4" width="1.03" height="18.9" fill="#feb9b3"/><rect x="13.88" y="15.4" width="1.15" height="34.4" fill="#ffb2b5"/><rect x="15.13" y="15.2" width="1.05" height="33.8" fill="#ffdbda"/><rect x="16.29" y="21.5" width="0.76" height="26.7" fill="#fed7d5"/><rect x="18.28" y="25.5" width="1.25" height="21.3" fill="#fedbdb"/><rect x="19.97" y="16.0" width="0.86" height="29.7" fill="#fed9d6"/><rect x="22.11" y="16.6" width="1.07" height="27.9" fill="#fed3d2"/><rect x="24.30" y="32.1" width="1.11" height="11.3" fill="#fec1c4"/><rect x="25.55" y="31.1" width="0.73" height="11.7" fill="#fba2a4"/><rect x="27.64" y="17.8" width="0.88" height="24.2" fill="#feb5b8"/><rect x="29.75" y="21.0" width="0.66" height="20.6" fill="#fecaca"/><rect x="31.86" y="26.3" width="0.89" height="15.0" fill="#fededb"/><rect x="33.40" y="15.7" width="0.61" height="25.4" fill="#fca7a3"/><rect x="35.64" y="5.5" width="0.71" height="35.8" fill="#ffd7d7"/><rect x="37.27" y="15.0" width="1.18" height="26.4" fill="#f3aca7"/><rect x="38.76" y="21.5" width="0.98" height="20.2" fill="#fec3c0"/><rect x="40.06" y="17.9" width="0.78" height="24.1" fill="#fed9d9"/><rect x="42.13" y="11.5" width="0.66" height="30.9" fill="#ffdadb"/><rect x="44.15" y="25.3" width="1.01" height="17.6" fill="#feb9bc"/><rect x="46.20" y="32.5" width="0.78" height="11.0" fill="#ffdada"/><rect x="48.18" y="21.5" width="1.03" height="22.5" fill="#ffb0af"/><rect x="50.48" y="21.7" width="0.95" height="22.8" fill="#fec0c3"/><rect x="52.36" y="29.3" width="0.79" height="15.5" fill="#ffd8d6"/><rect x="54.49" y="17.4" width="1.23" height="27.8" fill="#fdb0ac"/><rect x="56.60" y="9.1" width="1.08" height="36.1" fill="#fecacb"/><rect x="58.50" y="21.0" width="0.81" height="24.2" fill="#fed8d5"/><rect x="59.64" y="25.8" width="0.70" height="19.5" fill="#eeaaa8"/><rect x="60.93" y="22.6" width="1.29" height="22.6" fill="#fededf"/><rect x="63.09" y="15.3" width="1.28" height="29.6" fill="#fed8d5"/><rect x="65.21" y="28.9" width="0.90" height="15.7" fill="#f7acaf"/><rect x="67.24" y="33.4" width="0.89" height="11.0" fill="#feb4b6"/><rect x="69.17" y="20.7" width="0.96" height="23.4" fill="#ffd3d4"/><rect x="71.10" y="18.6" width="1.17" height="25.4" fill="#f1b2b3"/><rect x="72.51" y="25.4" width="0.90" height="18.4" fill="#faa4a9"/><rect x="74.50" y="22.6" width="1.15" height="21.2" fill="#f6abab"/><rect x="75.94" y="11.2" width="1.27" height="32.6" fill="#f6aba6"/><rect x="77.15" y="7.0" width="1.07" height="36.9" fill="#fed3d3"/><rect x="79.38" y="20.1" width="1.22" height="24.1" fill="#ffcac5"/><rect x="81.23" y="25.8" width="0.73" height="18.9" fill="#febab7"/><rect x="83.23" y="17.6" width="1.09" height="27.8" fill="#feaaa6"/><rect x="85.24" y="23.9" width="1.09" height="22.4" fill="#feb9bc"/><rect x="86.38" y="33.4" width="0.97" height="13.4" fill="#f1b4af"/><rect x="87.50" y="36.4" width="1.04" height="11.0" fill="#ffdcd9"/><rect x="88.79" y="34.2" width="0.93" height="14.0" fill="#ffbdbd"/><rect x="90.39" y="23.5" width="0.92" height="25.7" fill="#ffc1c4"/><rect x="91.70" y="22.5" width="0.97" height="27.7" fill="#eeaeb2"/><rect x="93.10" y="29.8" width="0.97" height="21.3" fill="#feb4af"/><rect x="94.72" y="33.7" width="0.66" height="18.6" fill="#fed2d3"/></g></g><path d="M96.00 50.00L95.97 64.13L95.90 68.64L95.77 71.90L95.60 74.54L95.37 76.79L95.09 78.76L94.75 80.51L94.37 82.10L93.92 83.54L93.43 84.86L92.87 86.07L92.26 87.19L91.59 88.22L90.85 89.17L90.05 90.05L89.17 90.85L88.22 91.59L87.19 92.26L86.07 92.87L84.86 93.43L83.54 93.92L82.10 94.37L80.51 94.75L78.76 95.09L76.79 95.37L74.54 95.60L71.90 95.77L68.64 95.90L64.13 95.97L50.00 96.00L35.87 95.97L31.36 95.90L28.10 95.77L25.46 95.60L23.21 95.37L21.24 95.09L19.49 94.75L17.90 94.37L16.46 93.92L15.14 93.43L13.93 92.87L12.81 92.26L11.78 91.59L10.83 90.85L9.95 90.05L9.15 89.17L8.41 88.22L7.74 87.19L7.13 86.07L6.57 84.86L6.08 83.54L5.63 82.10L5.25 80.51L4.91 78.76L4.63 76.79L4.40 74.54L4.23 71.90L4.10 68.64L4.03 64.13L4.00 50.00L4.03 35.87L4.10 31.36L4.23 28.10L4.40 25.46L4.63 23.21L4.91 21.24L5.25 19.49L5.63 17.90L6.08 16.46L6.57 15.14L7.13 13.93L7.74 12.81L8.41 11.78L9.15 10.83L9.95 9.95L10.83 9.15L11.78 8.41L12.81 7.74L13.93 7.13L15.14 6.57L16.46 6.08L17.90 5.63L19.49 5.25L21.24 4.91L23.21 4.63L25.46 4.40L28.10 4.23L31.36 4.10L35.87 4.03L50.00 4.00L64.13 4.03L68.64 4.10L71.90 4.23L74.54 4.40L76.79 4.63L78.76 4.91L80.51 5.25L82.10 5.63L83.54 6.08L84.86 6.57L86.07 7.13L87.19 7.74L88.22 8.41L89.17 9.15L90.05 9.95L90.85 10.83L91.59 11.78L92.26 12.81L92.87 13.93L93.43 15.14L93.92 16.46L94.37 17.90L94.75 19.49L95.09 21.24L95.37 23.21L95.60 25.46L95.77 28.10L95.90 31.36L95.97 35.87Z" fill="none" stroke="#fff" stroke-opacity=".18" stroke-width="1"/><rect x="22" y="26" width="56" height="52" rx="7" fill="#fff"/><path d="M22 33a7 7 0 0 1 7-7h42a7 7 0 0 1 7 7v7H22z" fill="#a4323b"/><g fill="#fff"><rect x="34" y="18" width="5" height="14" rx="2.5"/><rect x="61" y="18" width="5" height="14" rx="2.5"/></g><g fill="#a4323b"><circle cx="36" cy="52" r="3.5"/><circle cx="50" cy="52" r="3.5"/><circle cx="64" cy="52" r="3.5"/><circle cx="36" cy="65" r="3.5"/><circle cx="50" cy="65" r="3.5"/></g></svg> |
diff --git a/internal/look/static/oficina/calls.svg b/internal/look/static/oficina/calls.svg| new file mode 100644 |
| index 0000000..d3c4db4 |
| --- /dev/null |
| +++ b/internal/look/static/oficina/calls.svg |
| @@ -0,0 +1 @@ |
| +<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 100 100" role="img" aria-label="Calls"><title>Calls</title><defs><clipPath id="s"><path d="M96.00 50.00L95.97 64.13L95.90 68.64L95.77 71.90L95.60 74.54L95.37 76.79L95.09 78.76L94.75 80.51L94.37 82.10L93.92 83.54L93.43 84.86L92.87 86.07L92.26 87.19L91.59 88.22L90.85 89.17L90.05 90.05L89.17 90.85L88.22 91.59L87.19 92.26L86.07 92.87L84.86 93.43L83.54 93.92L82.10 94.37L80.51 94.75L78.76 95.09L76.79 95.37L74.54 95.60L71.90 95.77L68.64 95.90L64.13 95.97L50.00 96.00L35.87 95.97L31.36 95.90L28.10 95.77L25.46 95.60L23.21 95.37L21.24 95.09L19.49 94.75L17.90 94.37L16.46 93.92L15.14 93.43L13.93 92.87L12.81 92.26L11.78 91.59L10.83 90.85L9.95 90.05L9.15 89.17L8.41 88.22L7.74 87.19L7.13 86.07L6.57 84.86L6.08 83.54L5.63 82.10L5.25 80.51L4.91 78.76L4.63 76.79L4.40 74.54L4.23 71.90L4.10 68.64L4.03 64.13L4.00 50.00L4.03 35.87L4.10 31.36L4.23 28.10L4.40 25.46L4.63 23.21L4.91 21.24L5.25 19.49L5.63 17.90L6.08 16.46L6.57 15.14L7.13 13.93L7.74 12.81L8.41 11.78L9.15 10.83L9.95 9.95L10.83 9.15L11.78 8.41L12.81 7.74L13.93 7.13L15.14 6.57L16.46 6.08L17.90 5.63L19.49 5.25L21.24 4.91L23.21 4.63L25.46 4.40L28.10 4.23L31.36 4.10L35.87 4.03L50.00 4.00L64.13 4.03L68.64 4.10L71.90 4.23L74.54 4.40L76.79 4.63L78.76 4.91L80.51 5.25L82.10 5.63L83.54 6.08L84.86 6.57L86.07 7.13L87.19 7.74L88.22 8.41L89.17 9.15L90.05 9.95L90.85 10.83L91.59 11.78L92.26 12.81L92.87 13.93L93.43 15.14L93.92 16.46L94.37 17.90L94.75 19.49L95.09 21.24L95.37 23.21L95.60 25.46L95.77 28.10L95.90 31.36L95.97 35.87Z"/></clipPath><linearGradient id="g" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#049cbd"/><stop offset="1" stop-color="#00829e"/></linearGradient><filter id="h" x="-40%" y="-60%" width="180%" height="220%"><feGaussianBlur stdDeviation="5.5"/></filter></defs><g clip-path="url(#s)"><rect width="100" height="100" fill="url(#g)"/><g filter="url(#h)" opacity=".7"><rect x="4.00" y="31.6" width="1.17" height="21.9" fill="#7fcee8"/><rect x="5.13" y="21.3" width="1.14" height="31.3" fill="#9ce5fd"/><rect x="6.84" y="18.3" width="0.62" height="33.1" fill="#90e4ff"/><rect x="8.59" y="27.1" width="0.81" height="23.0" fill="#72dbfd"/><rect x="10.07" y="27.1" width="1.10" height="22.1" fill="#76dcfa"/><rect x="12.28" y="14.7" width="1.28" height="33.0" fill="#7adff9"/><rect x="13.44" y="15.8" width="0.72" height="31.3" fill="#9addee"/><rect x="15.08" y="28.1" width="1.01" height="18.1" fill="#8bd2ec"/><rect x="16.62" y="34.5" width="0.67" height="11.0" fill="#b4ebff"/><rect x="17.74" y="30.3" width="1.10" height="14.8" fill="#99daf2"/><rect x="18.98" y="22.1" width="1.15" height="22.5" fill="#89d4f2"/><rect x="20.67" y="20.4" width="0.74" height="23.7" fill="#a6e8ff"/><rect x="22.88" y="30.4" width="0.95" height="13.3" fill="#b2ebff"/><rect x="24.29" y="25.9" width="0.60" height="17.7" fill="#adedff"/><rect x="26.55" y="8.9" width="1.00" height="34.7" fill="#7ed3f3"/><rect x="28.40" y="13.4" width="1.25" height="30.3" fill="#98e7ff"/><rect x="29.69" y="21.4" width="1.29" height="22.3" fill="#9be2fc"/><rect x="30.94" y="22.6" width="0.76" height="21.3" fill="#76dcff"/><rect x="32.41" y="15.5" width="1.16" height="28.7" fill="#a8e6ff"/><rect x="34.24" y="13.7" width="0.95" height="30.7" fill="#9ae1fe"/><rect x="35.92" y="26.7" width="0.77" height="17.9" fill="#7edbfe"/><rect x="37.29" y="33.8" width="1.08" height="11.0" fill="#5fcef2"/><rect x="38.77" y="30.0" width="1.22" height="14.9" fill="#bfecff"/><rect x="40.88" y="19.5" width="0.96" height="25.6" fill="#86d1eb"/><rect x="43.05" y="28.2" width="1.10" height="17.0" fill="#8adffa"/><rect x="45.15" y="26.8" width="0.87" height="18.4" fill="#6fd8f8"/><rect x="46.88" y="12.6" width="1.01" height="32.4" fill="#ace8fe"/><rect x="47.98" y="8.7" width="1.15" height="36.2" fill="#a3e9fe"/><rect x="49.52" y="15.4" width="1.16" height="29.2" fill="#97dcf4"/><rect x="50.97" y="23.6" width="0.98" height="20.8" fill="#88e1fe"/><rect x="53.09" y="17.8" width="1.08" height="26.1" fill="#9addf6"/><rect x="55.28" y="14.3" width="0.64" height="29.0" fill="#b5efff"/><rect x="57.13" y="28.2" width="0.88" height="14.7" fill="#7edbf9"/><rect x="59.43" y="29.3" width="1.00" height="12.9" fill="#c0efff"/><rect x="61.19" y="17.3" width="0.86" height="24.6" fill="#73ddf7"/><rect x="62.68" y="16.8" width="1.16" height="24.9" fill="#a1e5ff"/><rect x="64.56" y="25.2" width="0.98" height="16.2" fill="#88e5ff"/><rect x="66.22" y="20.9" width="1.28" height="20.4" fill="#82e5fe"/><rect x="67.76" y="8.5" width="1.24" height="32.9" fill="#88e6fe"/><rect x="69.71" y="7.4" width="1.23" height="34.2" fill="#8fdbf7"/><rect x="71.24" y="18.3" width="0.71" height="23.4" fill="#aeeaff"/><rect x="72.69" y="22.7" width="1.28" height="19.4" fill="#84d8f5"/><rect x="74.58" y="15.1" width="0.81" height="27.7" fill="#81e1ff"/><rect x="76.77" y="19.3" width="0.73" height="24.4" fill="#7de1fe"/><rect x="78.73" y="33.8" width="0.79" height="11.0" fill="#8dd2ed"/><rect x="80.46" y="32.3" width="0.92" height="13.6" fill="#71d9f5"/><rect x="81.67" y="24.0" width="1.05" height="22.6" fill="#b2e8fe"/><rect x="83.95" y="23.6" width="0.71" height="24.6" fill="#8ce7ff"/><rect x="85.30" y="31.0" width="0.88" height="18.0" fill="#97dbef"/><rect x="87.05" y="29.5" width="1.06" height="20.8" fill="#a3ecfe"/><rect x="88.76" y="17.7" width="0.68" height="33.8" fill="#88defc"/><rect x="90.97" y="20.9" width="0.62" height="32.1" fill="#8ccee5"/><rect x="92.72" y="34.3" width="0.95" height="19.8" fill="#84e6fd"/><rect x="93.83" y="36.0" width="0.99" height="18.7" fill="#7cd0e7"/><rect x="95.31" y="30.1" width="1.01" height="25.4" fill="#91e3ff"/></g></g><path d="M96.00 50.00L95.97 64.13L95.90 68.64L95.77 71.90L95.60 74.54L95.37 76.79L95.09 78.76L94.75 80.51L94.37 82.10L93.92 83.54L93.43 84.86L92.87 86.07L92.26 87.19L91.59 88.22L90.85 89.17L90.05 90.05L89.17 90.85L88.22 91.59L87.19 92.26L86.07 92.87L84.86 93.43L83.54 93.92L82.10 94.37L80.51 94.75L78.76 95.09L76.79 95.37L74.54 95.60L71.90 95.77L68.64 95.90L64.13 95.97L50.00 96.00L35.87 95.97L31.36 95.90L28.10 95.77L25.46 95.60L23.21 95.37L21.24 95.09L19.49 94.75L17.90 94.37L16.46 93.92L15.14 93.43L13.93 92.87L12.81 92.26L11.78 91.59L10.83 90.85L9.95 90.05L9.15 89.17L8.41 88.22L7.74 87.19L7.13 86.07L6.57 84.86L6.08 83.54L5.63 82.10L5.25 80.51L4.91 78.76L4.63 76.79L4.40 74.54L4.23 71.90L4.10 68.64L4.03 64.13L4.00 50.00L4.03 35.87L4.10 31.36L4.23 28.10L4.40 25.46L4.63 23.21L4.91 21.24L5.25 19.49L5.63 17.90L6.08 16.46L6.57 15.14L7.13 13.93L7.74 12.81L8.41 11.78L9.15 10.83L9.95 9.95L10.83 9.15L11.78 8.41L12.81 7.74L13.93 7.13L15.14 6.57L16.46 6.08L17.90 5.63L19.49 5.25L21.24 4.91L23.21 4.63L25.46 4.40L28.10 4.23L31.36 4.10L35.87 4.03L50.00 4.00L64.13 4.03L68.64 4.10L71.90 4.23L74.54 4.40L76.79 4.63L78.76 4.91L80.51 5.25L82.10 5.63L83.54 6.08L84.86 6.57L86.07 7.13L87.19 7.74L88.22 8.41L89.17 9.15L90.05 9.95L90.85 10.83L91.59 11.78L92.26 12.81L92.87 13.93L93.43 15.14L93.92 16.46L94.37 17.90L94.75 19.49L95.09 21.24L95.37 23.21L95.60 25.46L95.77 28.10L95.90 31.36L95.97 35.87Z" fill="none" stroke="#fff" stroke-opacity=".18" stroke-width="1"/><rect x="33" y="21" width="47" height="33" rx="12" fill="#fff" opacity=".5"/><path d="M26 36h32a12 12 0 0 1 12 12v14a12 12 0 0 1-12 12H40l-12 10v-10a12 12 0 0 1-12-12V48a12 12 0 0 1 12-12z" fill="#fff"/><g fill="#056b83"><rect x="28" y="51" width="5" height="12" rx="2.5"/><rect x="37" y="46" width="5" height="22" rx="2.5"/><rect x="46" y="50" width="5" height="14" rx="2.5"/><rect x="55" y="53" width="5" height="8" rx="2.5"/></g></svg> |
diff --git a/internal/look/static/oficina/docs.svg b/internal/look/static/oficina/docs.svg| new file mode 100644 |
| index 0000000..75e0a4f |
| --- /dev/null |
| +++ b/internal/look/static/oficina/docs.svg |
| @@ -0,0 +1 @@ |
| +<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 100 100" role="img" aria-label="Docs"><title>Docs</title><defs><clipPath id="s"><path d="M96.00 50.00L95.97 64.13L95.90 68.64L95.77 71.90L95.60 74.54L95.37 76.79L95.09 78.76L94.75 80.51L94.37 82.10L93.92 83.54L93.43 84.86L92.87 86.07L92.26 87.19L91.59 88.22L90.85 89.17L90.05 90.05L89.17 90.85L88.22 91.59L87.19 92.26L86.07 92.87L84.86 93.43L83.54 93.92L82.10 94.37L80.51 94.75L78.76 95.09L76.79 95.37L74.54 95.60L71.90 95.77L68.64 95.90L64.13 95.97L50.00 96.00L35.87 95.97L31.36 95.90L28.10 95.77L25.46 95.60L23.21 95.37L21.24 95.09L19.49 94.75L17.90 94.37L16.46 93.92L15.14 93.43L13.93 92.87L12.81 92.26L11.78 91.59L10.83 90.85L9.95 90.05L9.15 89.17L8.41 88.22L7.74 87.19L7.13 86.07L6.57 84.86L6.08 83.54L5.63 82.10L5.25 80.51L4.91 78.76L4.63 76.79L4.40 74.54L4.23 71.90L4.10 68.64L4.03 64.13L4.00 50.00L4.03 35.87L4.10 31.36L4.23 28.10L4.40 25.46L4.63 23.21L4.91 21.24L5.25 19.49L5.63 17.90L6.08 16.46L6.57 15.14L7.13 13.93L7.74 12.81L8.41 11.78L9.15 10.83L9.95 9.95L10.83 9.15L11.78 8.41L12.81 7.74L13.93 7.13L15.14 6.57L16.46 6.08L17.90 5.63L19.49 5.25L21.24 4.91L23.21 4.63L25.46 4.40L28.10 4.23L31.36 4.10L35.87 4.03L50.00 4.00L64.13 4.03L68.64 4.10L71.90 4.23L74.54 4.40L76.79 4.63L78.76 4.91L80.51 5.25L82.10 5.63L83.54 6.08L84.86 6.57L86.07 7.13L87.19 7.74L88.22 8.41L89.17 9.15L90.05 9.95L90.85 10.83L91.59 11.78L92.26 12.81L92.87 13.93L93.43 15.14L93.92 16.46L94.37 17.90L94.75 19.49L95.09 21.24L95.37 23.21L95.60 25.46L95.77 28.10L95.90 31.36L95.97 35.87Z"/></clipPath><linearGradient id="g" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#5c8ae1"/><stop offset="1" stop-color="#4170cb"/></linearGradient><filter id="h" x="-40%" y="-60%" width="180%" height="220%"><feGaussianBlur stdDeviation="5.5"/></filter></defs><g clip-path="url(#s)"><rect width="100" height="100" fill="url(#g)"/><g filter="url(#h)" opacity=".7"><rect x="4.00" y="29.3" width="0.66" height="25.1" fill="#d5e3ff"/><rect x="6.12" y="31.1" width="0.88" height="23.1" fill="#c6dcff"/><rect x="7.79" y="21.7" width="0.96" height="32.3" fill="#a8cbfe"/><rect x="8.99" y="21.1" width="0.72" height="32.6" fill="#c1d4fe"/><rect x="11.18" y="37.2" width="1.25" height="16.0" fill="#b9d2fe"/><rect x="12.52" y="41.7" width="1.26" height="11.1" fill="#a0bfff"/><rect x="14.31" y="32.4" width="1.15" height="19.8" fill="#abc8ff"/><rect x="16.50" y="27.7" width="1.02" height="23.5" fill="#d0e0fe"/><rect x="18.25" y="36.0" width="0.76" height="14.3" fill="#bcd6fe"/><rect x="20.22" y="30.9" width="1.04" height="18.4" fill="#c0d5fe"/><rect x="21.74" y="17.1" width="0.77" height="31.2" fill="#d7e6fe"/><rect x="23.46" y="13.1" width="0.65" height="34.2" fill="#d2e3fe"/><rect x="25.33" y="23.0" width="1.17" height="23.2" fill="#a7c9fe"/><rect x="27.60" y="19.4" width="0.64" height="25.2" fill="#a3c2fe"/><rect x="29.54" y="11.2" width="1.13" height="32.3" fill="#afcdf9"/><rect x="31.49" y="22.4" width="1.07" height="20.1" fill="#bfd3fe"/><rect x="33.07" y="30.7" width="0.86" height="11.0" fill="#d7e7fe"/><rect x="34.74" y="25.0" width="1.23" height="16.0" fill="#d4e5ff"/><rect x="36.20" y="15.9" width="0.91" height="24.6" fill="#aecaff"/><rect x="38.14" y="19.1" width="1.22" height="20.8" fill="#bcd1fe"/><rect x="39.62" y="25.4" width="1.01" height="14.3" fill="#9fbffe"/><rect x="40.96" y="21.4" width="0.96" height="18.2" fill="#a2bffb"/><rect x="42.82" y="6.4" width="0.67" height="33.1" fill="#c7dbfe"/><rect x="45.04" y="8.5" width="0.76" height="31.2" fill="#a9c8ff"/><rect x="46.90" y="19.4" width="1.08" height="20.6" fill="#a4c1fb"/><rect x="49.12" y="13.1" width="0.96" height="27.5" fill="#b2cffe"/><rect x="51.29" y="13.2" width="0.82" height="28.1" fill="#9fc1fe"/><rect x="53.25" y="29.4" width="0.85" height="12.7" fill="#aac7fe"/><rect x="54.68" y="31.6" width="0.65" height="11.0" fill="#bdd2ff"/><rect x="55.92" y="25.5" width="1.12" height="17.7" fill="#d6e5fe"/><rect x="58.20" y="18.5" width="1.03" height="25.6" fill="#b5cdfe"/><rect x="59.34" y="24.1" width="0.65" height="20.4" fill="#aecefe"/><rect x="61.07" y="29.5" width="0.62" height="15.7" fill="#cfe0fe"/><rect x="63.29" y="15.2" width="1.29" height="30.7" fill="#abcaff"/><rect x="64.74" y="9.7" width="0.75" height="36.6" fill="#c5dbff"/><rect x="66.94" y="22.5" width="0.91" height="24.3" fill="#c6d8fe"/><rect x="69.15" y="25.6" width="1.24" height="21.6" fill="#aecdfe"/><rect x="70.98" y="17.6" width="0.94" height="29.7" fill="#c1d5ff"/><rect x="72.91" y="25.3" width="0.79" height="22.1" fill="#a2c3fa"/><rect x="75.16" y="36.4" width="1.20" height="11.0" fill="#a8c7fe"/><rect x="76.37" y="33.2" width="1.05" height="14.2" fill="#9ec0fe"/><rect x="77.93" y="22.3" width="1.26" height="25.1" fill="#b6d3fe"/><rect x="79.65" y="22.4" width="0.99" height="24.8" fill="#afc6fd"/><rect x="81.08" y="29.4" width="1.29" height="17.9" fill="#dce7fe"/><rect x="82.64" y="28.0" width="1.12" height="19.2" fill="#d6e3fe"/><rect x="83.93" y="18.2" width="0.65" height="29.1" fill="#a5c7fe"/><rect x="86.14" y="11.7" width="0.71" height="35.7" fill="#d2e3fe"/><rect x="88.11" y="25.4" width="0.79" height="22.2" fill="#9fc1f2"/><rect x="89.90" y="28.3" width="0.64" height="19.7" fill="#c0d7ff"/><rect x="91.43" y="21.3" width="0.77" height="27.1" fill="#b1c8fe"/><rect x="93.60" y="26.0" width="1.15" height="23.1" fill="#c7dbfe"/><rect x="95.21" y="38.7" width="1.29" height="11.1" fill="#b1ccfc"/></g></g><path d="M96.00 50.00L95.97 64.13L95.90 68.64L95.77 71.90L95.60 74.54L95.37 76.79L95.09 78.76L94.75 80.51L94.37 82.10L93.92 83.54L93.43 84.86L92.87 86.07L92.26 87.19L91.59 88.22L90.85 89.17L90.05 90.05L89.17 90.85L88.22 91.59L87.19 92.26L86.07 92.87L84.86 93.43L83.54 93.92L82.10 94.37L80.51 94.75L78.76 95.09L76.79 95.37L74.54 95.60L71.90 95.77L68.64 95.90L64.13 95.97L50.00 96.00L35.87 95.97L31.36 95.90L28.10 95.77L25.46 95.60L23.21 95.37L21.24 95.09L19.49 94.75L17.90 94.37L16.46 93.92L15.14 93.43L13.93 92.87L12.81 92.26L11.78 91.59L10.83 90.85L9.95 90.05L9.15 89.17L8.41 88.22L7.74 87.19L7.13 86.07L6.57 84.86L6.08 83.54L5.63 82.10L5.25 80.51L4.91 78.76L4.63 76.79L4.40 74.54L4.23 71.90L4.10 68.64L4.03 64.13L4.00 50.00L4.03 35.87L4.10 31.36L4.23 28.10L4.40 25.46L4.63 23.21L4.91 21.24L5.25 19.49L5.63 17.90L6.08 16.46L6.57 15.14L7.13 13.93L7.74 12.81L8.41 11.78L9.15 10.83L9.95 9.95L10.83 9.15L11.78 8.41L12.81 7.74L13.93 7.13L15.14 6.57L16.46 6.08L17.90 5.63L19.49 5.25L21.24 4.91L23.21 4.63L25.46 4.40L28.10 4.23L31.36 4.10L35.87 4.03L50.00 4.00L64.13 4.03L68.64 4.10L71.90 4.23L74.54 4.40L76.79 4.63L78.76 4.91L80.51 5.25L82.10 5.63L83.54 6.08L84.86 6.57L86.07 7.13L87.19 7.74L88.22 8.41L89.17 9.15L90.05 9.95L90.85 10.83L91.59 11.78L92.26 12.81L92.87 13.93L93.43 15.14L93.92 16.46L94.37 17.90L94.75 19.49L95.09 21.24L95.37 23.21L95.60 25.46L95.77 28.10L95.90 31.36L95.97 35.87Z" fill="none" stroke="#fff" stroke-opacity=".18" stroke-width="1"/><path d="M31 18h28l14 14v50H31z" fill="#fff"/><path d="M59 18v14h14" fill="#fff" opacity=".6"/><g fill="#2e5bb4"><rect x="38" y="44" width="28" height="4" rx="2"/><rect x="38" y="54" width="28" height="4" rx="2"/><rect x="38" y="64" width="18" height="4" rx="2"/></g></svg> |
diff --git a/internal/look/static/oficina/equipo.svg b/internal/look/static/oficina/equipo.svg| new file mode 100644 |
| index 0000000..7cb7482 |
| --- /dev/null |
| +++ b/internal/look/static/oficina/equipo.svg |
| @@ -0,0 +1 @@ |
| +<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 100 100" role="img" aria-label="Oficina"><title>Oficina</title><defs><clipPath id="s"><path d="M96.00 50.00L95.97 64.13L95.90 68.64L95.77 71.90L95.60 74.54L95.37 76.79L95.09 78.76L94.75 80.51L94.37 82.10L93.92 83.54L93.43 84.86L92.87 86.07L92.26 87.19L91.59 88.22L90.85 89.17L90.05 90.05L89.17 90.85L88.22 91.59L87.19 92.26L86.07 92.87L84.86 93.43L83.54 93.92L82.10 94.37L80.51 94.75L78.76 95.09L76.79 95.37L74.54 95.60L71.90 95.77L68.64 95.90L64.13 95.97L50.00 96.00L35.87 95.97L31.36 95.90L28.10 95.77L25.46 95.60L23.21 95.37L21.24 95.09L19.49 94.75L17.90 94.37L16.46 93.92L15.14 93.43L13.93 92.87L12.81 92.26L11.78 91.59L10.83 90.85L9.95 90.05L9.15 89.17L8.41 88.22L7.74 87.19L7.13 86.07L6.57 84.86L6.08 83.54L5.63 82.10L5.25 80.51L4.91 78.76L4.63 76.79L4.40 74.54L4.23 71.90L4.10 68.64L4.03 64.13L4.00 50.00L4.03 35.87L4.10 31.36L4.23 28.10L4.40 25.46L4.63 23.21L4.91 21.24L5.25 19.49L5.63 17.90L6.08 16.46L6.57 15.14L7.13 13.93L7.74 12.81L8.41 11.78L9.15 10.83L9.95 9.95L10.83 9.15L11.78 8.41L12.81 7.74L13.93 7.13L15.14 6.57L16.46 6.08L17.90 5.63L19.49 5.25L21.24 4.91L23.21 4.63L25.46 4.40L28.10 4.23L31.36 4.10L35.87 4.03L50.00 4.00L64.13 4.03L68.64 4.10L71.90 4.23L74.54 4.40L76.79 4.63L78.76 4.91L80.51 5.25L82.10 5.63L83.54 6.08L84.86 6.57L86.07 7.13L87.19 7.74L88.22 8.41L89.17 9.15L90.05 9.95L90.85 10.83L91.59 11.78L92.26 12.81L92.87 13.93L93.43 15.14L93.92 16.46L94.37 17.90L94.75 19.49L95.09 21.24L95.37 23.21L95.60 25.46L95.77 28.10L95.90 31.36L95.97 35.87Z"/></clipPath><radialGradient id="c"><stop offset="0" stop-color="#fff" stop-opacity=".24"/><stop offset=".6" stop-color="#fff" stop-opacity="0"/></radialGradient><linearGradient id="l" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#fff" stop-opacity=".18"/><stop offset=".5" stop-color="#fff" stop-opacity="0"/></linearGradient><filter id="b" x="-20%" y="-20%" width="140%" height="140%"><feGaussianBlur stdDeviation="3"/></filter></defs><g clip-path="url(#s)"><g filter="url(#b)"><path d="M4 104L-34.71 -51.25L-32.31 -51.83Z" fill="#ae8a09"/><path d="M4 104L-32.48 -51.79L-30.07 -52.33Z" fill="#ab8c01"/><path d="M4 104L-30.25 -52.29L-27.83 -52.80Z" fill="#a78e04"/><path d="M4 104L-28.01 -52.76L-25.59 -53.24Z" fill="#a39009"/><path d="M4 104L-25.77 -53.21L-23.34 -53.65Z" fill="#9f9107"/><path d="M4 104L-23.52 -53.62L-21.08 -54.02Z" fill="#9b9306"/><path d="M4 104L-21.26 -53.99L-18.82 -54.36Z" fill="#979508"/><path d="M4 104L-19.00 -54.34L-16.55 -54.67Z" fill="#929703"/><path d="M4 104L-16.73 -54.65L-14.28 -54.95Z" fill="#8d990a"/><path d="M4 104L-14.46 -54.93L-12.00 -55.20Z" fill="#889a17"/><path d="M4 104L-12.18 -55.18L-9.72 -55.41Z" fill="#829c21"/><path d="M4 104L-9.91 -55.39L-7.44 -55.59Z" fill="#7c9d29"/><path d="M4 104L-7.63 -55.58L-5.16 -55.74Z" fill="#769f30"/><path d="M4 104L-5.34 -55.73L-2.87 -55.85Z" fill="#70a037"/><path d="M4 104L-3.06 -55.84L-0.59 -55.93Z" fill="#69a23e"/><path d="M4 104L-0.77 -55.93L1.70 -55.98Z" fill="#62a344"/><path d="M4 104L1.52 -55.98L3.99 -56.00Z" fill="#5ba44a"/><path d="M4 104L3.81 -56.00L6.28 -55.98Z" fill="#54a54f"/><path d="M4 104L6.09 -55.99L8.57 -55.93Z" fill="#4ea654"/><path d="M4 104L8.38 -55.94L10.85 -55.85Z" fill="#47a659"/><path d="M4 104L10.67 -55.86L13.14 -55.74Z" fill="#3fa75d"/><path d="M4 104L12.95 -55.75L15.42 -55.59Z" fill="#36a862"/><path d="M4 104L15.24 -55.60L17.70 -55.41Z" fill="#2ca867"/><path d="M4 104L17.52 -55.43L19.98 -55.20Z" fill="#20a96b"/><path d="M4 104L19.80 -55.22L22.26 -54.96Z" fill="#0ca970"/><path d="M4 104L22.07 -54.98L24.53 -54.68Z" fill="#03a975"/><path d="M4 104L24.35 -54.70L26.79 -54.37Z" fill="#0aa87a"/><path d="M4 104L26.61 -54.39L29.06 -54.03Z" fill="#09a87f"/><path d="M4 104L28.88 -54.05L31.31 -53.65Z" fill="#0ba783"/><path d="M4 104L31.13 -53.68L33.57 -53.24Z" fill="#03a787"/><path d="M4 104L33.39 -53.28L35.81 -52.81Z" fill="#0ba78b"/><path d="M4 104L35.63 -52.84L38.05 -52.33Z" fill="#08a68e"/><path d="M4 104L37.87 -52.37L40.28 -51.83Z" fill="#07a692"/><path d="M4 104L40.11 -51.87L42.51 -51.30Z" fill="#08a695"/><path d="M4 104L42.33 -51.34L44.73 -50.73Z" fill="#0ba598"/><path d="M4 104L44.55 -50.78L46.93 -50.13Z" fill="#02a59b"/><path d="M4 104L46.76 -50.18L49.13 -49.50Z" fill="#09a49e"/><path d="M4 104L48.96 -49.55L51.33 -48.84Z" fill="#03a4a1"/><path d="M4 104L51.15 -48.89L53.51 -48.15Z" fill="#0ea3a4"/><path d="M4 104L53.33 -48.20L55.68 -47.42Z" fill="#0ca3a6"/><path d="M4 104L55.50 -47.48L57.84 -46.67Z" fill="#0ba3a9"/><path d="M4 104L57.66 -46.73L59.99 -45.88Z" fill="#0ca2ac"/><path d="M4 104L59.82 -45.95L62.12 -45.07Z" fill="#00a2af"/><path d="M4 104L61.95 -45.14L64.25 -44.22Z" fill="#04a2b2"/><path d="M4 104L64.08 -44.29L66.36 -43.35Z" fill="#0ba1b4"/><path d="M4 104L66.20 -43.42L68.47 -42.44Z" fill="#04a1b8"/><path d="M4 104L68.30 -42.51L70.55 -41.50Z" fill="#0da0ba"/><path d="M4 104L70.39 -41.58L72.63 -40.53Z" fill="#0a9fbd"/><path d="M4 104L72.46 -40.61L74.69 -39.54Z" fill="#099fc0"/><path d="M4 104L74.52 -39.62L76.73 -38.51Z" fill="#0b9ec3"/><path d="M4 104L76.57 -38.60L78.76 -37.46Z" fill="#039ec7"/><path d="M4 104L78.60 -37.54L80.78 -36.37Z" fill="#0a9dcb"/><path d="M4 104L80.62 -36.46L82.78 -35.26Z" fill="#089ccf"/><path d="M4 104L82.62 -35.35L84.76 -34.12Z" fill="#099bd3"/><path d="M4 104L84.60 -34.21L86.73 -32.95Z" fill="#029ad8"/><path d="M4 104L86.57 -33.05L88.68 -31.76Z" fill="#0099dd"/><path d="M4 104L88.52 -31.85L90.61 -30.53Z" fill="#1a98de"/><path d="M4 104L90.46 -30.63L92.53 -29.28Z" fill="#2897e0"/><path d="M4 104L92.37 -29.38L94.42 -28.00Z" fill="#3295e2"/><path d="M4 104L94.27 -28.10L96.30 -26.69Z" fill="#3b94e3"/><path d="M4 104L96.15 -26.80L98.16 -25.36Z" fill="#4392e4"/><path d="M4 104L98.01 -25.47L100.00 -24.00Z" fill="#4a91e5"/><path d="M4 104L99.86 -24.11L101.82 -22.61Z" fill="#5190e6"/><path d="M4 104L101.68 -22.72L103.62 -21.20Z" fill="#578ee6"/><path d="M4 104L103.48 -21.31L105.40 -19.76Z" fill="#5d8de7"/><path d="M4 104L105.26 -19.88L107.16 -18.30Z" fill="#628be7"/><path d="M4 104L107.02 -18.42L108.90 -16.81Z" fill="#678ae7"/><path d="M4 104L108.76 -16.93L110.62 -15.30Z" fill="#6c88e7"/><path d="M4 104L110.48 -15.42L112.32 -13.76Z" fill="#7187e7"/><path d="M4 104L112.18 -13.89L113.99 -12.20Z" fill="#7686e6"/><path d="M4 104L113.86 -12.33L115.64 -10.62Z" fill="#7a84e6"/><path d="M4 104L115.51 -10.74L117.27 -9.01Z" fill="#7e83e5"/><path d="M4 104L117.14 -9.14L118.87 -7.38Z" fill="#8282e4"/><path d="M4 104L118.74 -7.51L120.45 -5.72Z" fill="#8780e3"/><path d="M4 104L120.33 -5.86L122.01 -4.05Z" fill="#8a7fe2"/><path d="M4 104L121.89 -4.18L123.54 -2.35Z" fill="#8e7ee1"/><path d="M4 104L123.42 -2.48L125.05 -0.63Z" fill="#927cdf"/><path d="M4 104L124.93 -0.76L126.54 1.12Z" fill="#967bde"/><path d="M4 104L126.42 0.98L127.99 2.88Z" fill="#997adc"/><path d="M4 104L127.88 2.74L129.43 4.66Z" fill="#9d78da"/><path d="M4 104L129.31 4.52L130.84 6.47Z" fill="#a077d8"/><path d="M4 104L130.72 6.32L132.22 8.29Z" fill="#a376d6"/><path d="M4 104L132.11 8.14L133.57 10.13Z" fill="#a675d3"/><path d="M4 104L133.47 9.99L134.90 12.00Z" fill="#aa74d1"/><path d="M4 104L134.80 11.85L136.20 13.88Z" fill="#ad73ce"/><path d="M4 104L136.10 13.73L137.48 15.78Z" fill="#af71cc"/><path d="M4 104L137.38 15.63L138.73 17.70Z" fill="#b270c9"/><path d="M4 104L138.63 17.54L139.95 19.63Z" fill="#b56fc6"/><path d="M4 104L139.85 19.48L141.14 21.58Z" fill="#b86ec3"/><path d="M4 104L141.05 21.43L142.31 23.55Z" fill="#ba6dc0"/><path d="M4 104L142.21 23.40L143.44 25.54Z" fill="#bd6cbd"/><path d="M4 104L143.35 25.38L144.55 27.54Z" fill="#bf6cb9"/><path d="M4 104L144.46 27.38L145.63 29.56Z" fill="#c16bb6"/><path d="M4 104L145.54 29.40L146.68 31.59Z" fill="#c36ab3"/><path d="M4 104L146.60 31.43L147.70 33.64Z" fill="#c569af"/><path d="M4 104L147.62 33.48L148.69 35.70Z" fill="#c769ab"/><path d="M4 104L148.61 35.54L149.65 37.78Z" fill="#c968a8"/><path d="M4 104L149.58 37.61L150.59 39.87Z" fill="#cb67a4"/><path d="M4 104L150.51 39.70L151.49 41.97Z" fill="#cd67a1"/><path d="M4 104L151.42 41.80L152.36 44.09Z" fill="#ce669d"/><path d="M4 104L152.29 43.92L153.20 46.22Z" fill="#d06699"/><path d="M4 104L153.14 46.05L154.01 48.36Z" fill="#d16695"/><path d="M4 104L153.95 48.18L154.79 50.51Z" fill="#d26592"/><path d="M4 104L154.73 50.34L155.54 52.67Z" fill="#d3658e"/><path d="M4 104L155.48 52.50L156.26 54.84Z" fill="#d4658a"/><path d="M4 104L156.20 54.67L156.95 57.02Z" fill="#d56586"/><path d="M4 104L156.89 56.85L157.60 59.22Z" fill="#d66582"/><path d="M4 104L157.55 59.04L158.23 61.42Z" fill="#d7657e"/><path d="M4 104L158.18 61.24L158.82 63.63Z" fill="#d8657a"/><path d="M4 104L158.78 63.45L159.38 65.85Z" fill="#d86576"/><path d="M4 104L159.34 65.67L159.91 68.07Z" fill="#d96572"/><path d="M4 104L159.87 67.89L160.41 70.31Z" fill="#d9666e"/><path d="M4 104L160.37 70.13L160.88 72.55Z" fill="#d9666a"/><path d="M4 104L160.84 72.37L161.31 74.79Z" fill="#d96666"/><path d="M4 104L161.28 74.61L161.71 77.05Z" fill="#d96762"/><path d="M4 104L161.68 76.87L162.08 79.30Z" fill="#d9675e"/><path d="M4 104L162.05 79.12L162.42 81.57Z" fill="#d9685a"/><path d="M4 104L162.39 81.39L162.72 83.84Z" fill="#d96956"/><path d="M4 104L162.70 83.65L163.00 86.11Z" fill="#d96952"/><path d="M4 104L162.98 85.93L163.24 88.38Z" fill="#d86a4d"/><path d="M4 104L163.22 88.20L163.44 90.66Z" fill="#d86b49"/><path d="M4 104L163.43 90.48L163.62 92.94Z" fill="#d76c45"/><path d="M4 104L163.60 92.76L163.76 95.23Z" fill="#d66d41"/><path d="M4 104L163.75 95.05L163.87 97.51Z" fill="#d66e3c"/><path d="M4 104L163.86 97.33L163.94 99.80Z" fill="#d56f38"/><path d="M4 104L163.94 99.62L163.99 102.09Z" fill="#d47033"/><path d="M4 104L163.99 101.91L164.00 104.38Z" fill="#d3712e"/><path d="M4 104L164.00 104.19L163.98 106.67Z" fill="#d17329"/><path d="M4 104L163.98 106.48L163.92 108.95Z" fill="#d07424"/><path d="M4 104L163.93 108.77L163.84 111.24Z" fill="#cf751e"/><path d="M4 104L163.84 111.06L163.72 113.52Z" fill="#ce7618"/><path d="M4 104L163.73 113.34L163.56 115.81Z" fill="#cc7810"/><path d="M4 104L163.58 115.63L163.38 118.09Z" fill="#cb7906"/><path d="M4 104L163.39 117.91L163.16 120.37Z" fill="#c87b05"/><path d="M4 104L163.18 120.18L162.91 122.64Z" fill="#c67c04"/><path d="M4 104L162.93 122.46L162.63 124.91Z" fill="#c37e05"/><path d="M4 104L162.65 124.73L162.31 127.18Z" fill="#c18007"/><path d="M4 104L162.34 127.00L161.96 129.44Z" fill="#bf8100"/><path d="M4 104L161.99 129.26L161.58 131.70Z" fill="#bc8204"/><path d="M4 104L161.62 131.52L161.17 133.95Z" fill="#ba8409"/><path d="M4 104L161.21 133.77L160.73 136.19Z" fill="#b88505"/><path d="M4 104L160.76 136.01L160.25 138.43Z" fill="#b58602"/><path d="M4 104L160.29 138.25L159.74 140.66Z" fill="#b38800"/><path d="M4 104L159.79 140.48L159.20 142.89Z" fill="#b08909"/></g><rect width="100" height="100" fill="url(#c)"/><rect width="100" height="100" fill="url(#l)"/></g><rect x="30.62" y="23.78" width="45.60" height="36.48" rx="7.98" fill="#fff" opacity=".55"/><rect x="22.64" y="36.32" width="50.16" height="38.76" rx="7.98" fill="#fff"/></svg> |
diff --git a/internal/look/static/oficina/fichas.svg b/internal/look/static/oficina/fichas.svg| new file mode 100644 |
| index 0000000..2123615 |
| --- /dev/null |
| +++ b/internal/look/static/oficina/fichas.svg |
| @@ -0,0 +1 @@ |
| +<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 100 100" role="img" aria-label="Fichas"><title>Fichas</title><defs><clipPath id="s"><path d="M96.00 50.00L95.97 64.13L95.90 68.64L95.77 71.90L95.60 74.54L95.37 76.79L95.09 78.76L94.75 80.51L94.37 82.10L93.92 83.54L93.43 84.86L92.87 86.07L92.26 87.19L91.59 88.22L90.85 89.17L90.05 90.05L89.17 90.85L88.22 91.59L87.19 92.26L86.07 92.87L84.86 93.43L83.54 93.92L82.10 94.37L80.51 94.75L78.76 95.09L76.79 95.37L74.54 95.60L71.90 95.77L68.64 95.90L64.13 95.97L50.00 96.00L35.87 95.97L31.36 95.90L28.10 95.77L25.46 95.60L23.21 95.37L21.24 95.09L19.49 94.75L17.90 94.37L16.46 93.92L15.14 93.43L13.93 92.87L12.81 92.26L11.78 91.59L10.83 90.85L9.95 90.05L9.15 89.17L8.41 88.22L7.74 87.19L7.13 86.07L6.57 84.86L6.08 83.54L5.63 82.10L5.25 80.51L4.91 78.76L4.63 76.79L4.40 74.54L4.23 71.90L4.10 68.64L4.03 64.13L4.00 50.00L4.03 35.87L4.10 31.36L4.23 28.10L4.40 25.46L4.63 23.21L4.91 21.24L5.25 19.49L5.63 17.90L6.08 16.46L6.57 15.14L7.13 13.93L7.74 12.81L8.41 11.78L9.15 10.83L9.95 9.95L10.83 9.15L11.78 8.41L12.81 7.74L13.93 7.13L15.14 6.57L16.46 6.08L17.90 5.63L19.49 5.25L21.24 4.91L23.21 4.63L25.46 4.40L28.10 4.23L31.36 4.10L35.87 4.03L50.00 4.00L64.13 4.03L68.64 4.10L71.90 4.23L74.54 4.40L76.79 4.63L78.76 4.91L80.51 5.25L82.10 5.63L83.54 6.08L84.86 6.57L86.07 7.13L87.19 7.74L88.22 8.41L89.17 9.15L90.05 9.95L90.85 10.83L91.59 11.78L92.26 12.81L92.87 13.93L93.43 15.14L93.92 16.46L94.37 17.90L94.75 19.49L95.09 21.24L95.37 23.21L95.60 25.46L95.77 28.10L95.90 31.36L95.97 35.87Z"/></clipPath><linearGradient id="g" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#ab8704"/><stop offset="1" stop-color="#8e7002"/></linearGradient><filter id="h" x="-40%" y="-60%" width="180%" height="220%"><feGaussianBlur stdDeviation="5.5"/></filter></defs><g clip-path="url(#s)"><rect width="100" height="100" fill="url(#g)"/><g filter="url(#h)" opacity=".7"><rect x="4.00" y="27.5" width="0.86" height="23.2" fill="#eccd83"/><rect x="6.14" y="38.6" width="0.67" height="11.9" fill="#f0dfa4"/><rect x="7.41" y="36.2" width="0.93" height="14.2" fill="#f8e2a8"/><rect x="9.14" y="21.9" width="0.69" height="28.3" fill="#ffe691"/><rect x="11.42" y="19.0" width="1.06" height="31.3" fill="#e5c682"/><rect x="12.85" y="27.2" width="0.83" height="23.0" fill="#d9c886"/><rect x="14.34" y="28.1" width="1.19" height="22.1" fill="#e1ca85"/><rect x="16.48" y="16.8" width="0.88" height="33.3" fill="#f4da8f"/><rect x="18.73" y="25.3" width="0.79" height="24.7" fill="#dac490"/><rect x="20.04" y="35.7" width="0.95" height="14.1" fill="#ebd5a0"/><rect x="21.22" y="37.8" width="1.03" height="11.8" fill="#d5bc85"/><rect x="23.13" y="27.4" width="0.71" height="21.9" fill="#f1dc93"/><rect x="25.28" y="26.7" width="1.00" height="22.0" fill="#efd999"/><rect x="27.58" y="35.3" width="1.01" height="12.6" fill="#decc87"/><rect x="28.91" y="28.0" width="0.70" height="19.4" fill="#e0c786"/><rect x="30.01" y="17.8" width="1.16" height="29.1" fill="#f2de95"/><rect x="31.41" y="11.3" width="0.70" height="35.0" fill="#eacc83"/><rect x="33.32" y="19.4" width="0.84" height="26.0" fill="#f5d181"/><rect x="35.07" y="23.2" width="1.09" height="21.2" fill="#fad781"/><rect x="36.23" y="17.5" width="1.24" height="26.4" fill="#fde395"/><rect x="38.51" y="11.1" width="1.25" height="31.6" fill="#ffe3a7"/><rect x="40.52" y="25.6" width="0.94" height="16.1" fill="#ffe19a"/><rect x="42.29" y="29.7" width="1.12" height="11.3" fill="#efca78"/><rect x="44.52" y="16.3" width="1.10" height="23.9" fill="#f9dda2"/><rect x="46.45" y="18.2" width="0.90" height="21.4" fill="#e8c875"/><rect x="47.82" y="24.8" width="1.22" height="14.5" fill="#fdda84"/><rect x="49.42" y="21.7" width="0.89" height="17.4" fill="#e9cb7d"/><rect x="50.76" y="10.4" width="0.62" height="28.6" fill="#f1d088"/><rect x="52.92" y="4.7" width="1.16" height="34.4" fill="#e6d59f"/><rect x="54.27" y="13.2" width="1.22" height="26.1" fill="#f6d07a"/><rect x="55.83" y="19.1" width="1.04" height="20.5" fill="#ebd999"/><rect x="58.01" y="10.3" width="0.74" height="29.9" fill="#f6dca2"/><rect x="59.92" y="13.2" width="1.05" height="27.8" fill="#e1c572"/><rect x="61.25" y="24.9" width="0.91" height="16.7" fill="#f2e2aa"/><rect x="62.43" y="31.1" width="0.97" height="11.0" fill="#eed78f"/><rect x="64.36" y="25.8" width="0.70" height="17.3" fill="#fae191"/><rect x="65.79" y="18.6" width="1.00" height="25.3" fill="#f3d794"/><rect x="67.26" y="21.7" width="0.61" height="23.0" fill="#e2cc96"/><rect x="68.93" y="30.4" width="0.97" height="15.2" fill="#ebd19b"/><rect x="70.71" y="25.4" width="0.70" height="21.2" fill="#ffe69e"/><rect x="72.77" y="11.7" width="0.98" height="35.9" fill="#dcc68e"/><rect x="74.65" y="18.4" width="1.18" height="30.0" fill="#dfc890"/><rect x="76.46" y="29.1" width="1.11" height="20.0" fill="#fbe0a5"/><rect x="77.97" y="26.0" width="0.65" height="23.7" fill="#e7c678"/><rect x="79.51" y="19.8" width="1.27" height="30.3" fill="#ebd183"/><rect x="81.08" y="25.4" width="0.69" height="25.1" fill="#f9d78f"/><rect x="82.34" y="36.1" width="0.68" height="14.6" fill="#dfcb89"/><rect x="83.76" y="39.9" width="1.00" height="11.0" fill="#f5db81"/><rect x="85.69" y="30.9" width="1.03" height="20.2" fill="#e4ce96"/><rect x="87.33" y="24.6" width="0.70" height="26.6" fill="#fae0a5"/><rect x="88.77" y="30.1" width="0.74" height="21.1" fill="#d6bd85"/><rect x="90.61" y="34.7" width="0.83" height="16.6" fill="#e0c47b"/><rect x="92.62" y="21.0" width="1.18" height="30.3" fill="#f7e198"/><rect x="94.72" y="16.1" width="0.65" height="35.3" fill="#e3bc68"/></g></g><path d="M96.00 50.00L95.97 64.13L95.90 68.64L95.77 71.90L95.60 74.54L95.37 76.79L95.09 78.76L94.75 80.51L94.37 82.10L93.92 83.54L93.43 84.86L92.87 86.07L92.26 87.19L91.59 88.22L90.85 89.17L90.05 90.05L89.17 90.85L88.22 91.59L87.19 92.26L86.07 92.87L84.86 93.43L83.54 93.92L82.10 94.37L80.51 94.75L78.76 95.09L76.79 95.37L74.54 95.60L71.90 95.77L68.64 95.90L64.13 95.97L50.00 96.00L35.87 95.97L31.36 95.90L28.10 95.77L25.46 95.60L23.21 95.37L21.24 95.09L19.49 94.75L17.90 94.37L16.46 93.92L15.14 93.43L13.93 92.87L12.81 92.26L11.78 91.59L10.83 90.85L9.95 90.05L9.15 89.17L8.41 88.22L7.74 87.19L7.13 86.07L6.57 84.86L6.08 83.54L5.63 82.10L5.25 80.51L4.91 78.76L4.63 76.79L4.40 74.54L4.23 71.90L4.10 68.64L4.03 64.13L4.00 50.00L4.03 35.87L4.10 31.36L4.23 28.10L4.40 25.46L4.63 23.21L4.91 21.24L5.25 19.49L5.63 17.90L6.08 16.46L6.57 15.14L7.13 13.93L7.74 12.81L8.41 11.78L9.15 10.83L9.95 9.95L10.83 9.15L11.78 8.41L12.81 7.74L13.93 7.13L15.14 6.57L16.46 6.08L17.90 5.63L19.49 5.25L21.24 4.91L23.21 4.63L25.46 4.40L28.10 4.23L31.36 4.10L35.87 4.03L50.00 4.00L64.13 4.03L68.64 4.10L71.90 4.23L74.54 4.40L76.79 4.63L78.76 4.91L80.51 5.25L82.10 5.63L83.54 6.08L84.86 6.57L86.07 7.13L87.19 7.74L88.22 8.41L89.17 9.15L90.05 9.95L90.85 10.83L91.59 11.78L92.26 12.81L92.87 13.93L93.43 15.14L93.92 16.46L94.37 17.90L94.75 19.49L95.09 21.24L95.37 23.21L95.60 25.46L95.77 28.10L95.90 31.36L95.97 35.87Z" fill="none" stroke="#fff" stroke-opacity=".18" stroke-width="1"/><rect x="30" y="22" width="48" height="34" rx="5" fill="#fff" opacity=".5"/><rect x="22" y="32" width="56" height="42" rx="5" fill="#fff"/><rect x="22" y="32" width="56" height="10" rx="5" fill="#765d00" opacity=".3"/><g fill="#765d00"><rect x="30" y="50" width="40" height="4" rx="2"/><rect x="30" y="60" width="28" height="4" rx="2"/></g></svg> |
diff --git a/internal/look/static/oficina/memoria.svg b/internal/look/static/oficina/memoria.svg| new file mode 100644 |
| index 0000000..28a1ef4 |
| --- /dev/null |
| +++ b/internal/look/static/oficina/memoria.svg |
| @@ -0,0 +1 @@ |
| +<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 100 100" role="img" aria-label="Memoria"><title>Memoria</title><defs><clipPath id="s"><path d="M96.00 50.00L95.97 64.13L95.90 68.64L95.77 71.90L95.60 74.54L95.37 76.79L95.09 78.76L94.75 80.51L94.37 82.10L93.92 83.54L93.43 84.86L92.87 86.07L92.26 87.19L91.59 88.22L90.85 89.17L90.05 90.05L89.17 90.85L88.22 91.59L87.19 92.26L86.07 92.87L84.86 93.43L83.54 93.92L82.10 94.37L80.51 94.75L78.76 95.09L76.79 95.37L74.54 95.60L71.90 95.77L68.64 95.90L64.13 95.97L50.00 96.00L35.87 95.97L31.36 95.90L28.10 95.77L25.46 95.60L23.21 95.37L21.24 95.09L19.49 94.75L17.90 94.37L16.46 93.92L15.14 93.43L13.93 92.87L12.81 92.26L11.78 91.59L10.83 90.85L9.95 90.05L9.15 89.17L8.41 88.22L7.74 87.19L7.13 86.07L6.57 84.86L6.08 83.54L5.63 82.10L5.25 80.51L4.91 78.76L4.63 76.79L4.40 74.54L4.23 71.90L4.10 68.64L4.03 64.13L4.00 50.00L4.03 35.87L4.10 31.36L4.23 28.10L4.40 25.46L4.63 23.21L4.91 21.24L5.25 19.49L5.63 17.90L6.08 16.46L6.57 15.14L7.13 13.93L7.74 12.81L8.41 11.78L9.15 10.83L9.95 9.95L10.83 9.15L11.78 8.41L12.81 7.74L13.93 7.13L15.14 6.57L16.46 6.08L17.90 5.63L19.49 5.25L21.24 4.91L23.21 4.63L25.46 4.40L28.10 4.23L31.36 4.10L35.87 4.03L50.00 4.00L64.13 4.03L68.64 4.10L71.90 4.23L74.54 4.40L76.79 4.63L78.76 4.91L80.51 5.25L82.10 5.63L83.54 6.08L84.86 6.57L86.07 7.13L87.19 7.74L88.22 8.41L89.17 9.15L90.05 9.95L90.85 10.83L91.59 11.78L92.26 12.81L92.87 13.93L93.43 15.14L93.92 16.46L94.37 17.90L94.75 19.49L95.09 21.24L95.37 23.21L95.60 25.46L95.77 28.10L95.90 31.36L95.97 35.87Z"/></clipPath><linearGradient id="g" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#9c75d2"/><stop offset="1" stop-color="#865bbc"/></linearGradient><filter id="h" x="-40%" y="-60%" width="180%" height="220%"><feGaussianBlur stdDeviation="5.5"/></filter></defs><g clip-path="url(#s)"><rect width="100" height="100" fill="url(#g)"/><g filter="url(#h)" opacity=".7"><rect x="4.00" y="44.4" width="1.22" height="11.0" fill="#efe1ff"/><rect x="5.83" y="31.0" width="1.09" height="23.3" fill="#dfd3ff"/><rect x="7.64" y="26.8" width="1.18" height="26.3" fill="#e9e0ff"/><rect x="9.66" y="34.2" width="1.22" height="17.4" fill="#cfb0fd"/><rect x="11.60" y="25.9" width="0.74" height="24.4" fill="#e8d5ff"/><rect x="12.82" y="15.6" width="0.89" height="33.8" fill="#d6bef9"/><rect x="14.66" y="13.7" width="0.88" height="34.5" fill="#d0bbf7"/><rect x="16.75" y="26.9" width="1.04" height="19.8" fill="#e0cafc"/><rect x="17.89" y="27.5" width="0.64" height="18.5" fill="#e9dcff"/><rect x="19.92" y="17.4" width="1.05" height="27.4" fill="#ded0fe"/><rect x="21.99" y="22.0" width="0.70" height="21.8" fill="#dfd3fe"/><rect x="23.70" y="32.2" width="1.07" height="11.0" fill="#c5b2ed"/><rect x="25.68" y="27.1" width="1.05" height="15.4" fill="#e5cdfe"/><rect x="27.66" y="14.0" width="0.99" height="28.1" fill="#dac0fe"/><rect x="29.85" y="20.5" width="1.08" height="21.5" fill="#e7d6fe"/><rect x="31.64" y="22.3" width="0.70" height="19.6" fill="#e9ddff"/><rect x="33.09" y="12.5" width="0.76" height="29.5" fill="#ddcbfe"/><rect x="34.58" y="5.2" width="0.65" height="36.9" fill="#d8bcfc"/><rect x="36.12" y="11.9" width="0.94" height="30.5" fill="#d9cafe"/><rect x="37.65" y="23.6" width="0.73" height="19.0" fill="#dfd3ff"/><rect x="39.91" y="21.4" width="0.73" height="21.8" fill="#e9d8ff"/><rect x="41.05" y="16.6" width="1.14" height="26.8" fill="#ddcfff"/><rect x="43.32" y="25.7" width="0.73" height="18.2" fill="#c7b9eb"/><rect x="44.50" y="33.1" width="1.05" height="11.0" fill="#e8dffe"/><rect x="46.63" y="28.3" width="1.17" height="16.2" fill="#eaddff"/><rect x="48.68" y="15.3" width="0.98" height="29.4" fill="#e9defe"/><rect x="49.86" y="17.4" width="1.04" height="27.5" fill="#d4baff"/><rect x="52.00" y="25.8" width="0.71" height="19.2" fill="#c7b2ec"/><rect x="54.24" y="13.7" width="1.09" height="31.3" fill="#e1d6fe"/><rect x="55.41" y="8.3" width="0.89" height="36.6" fill="#d1bcf2"/><rect x="56.85" y="13.5" width="0.93" height="31.3" fill="#e0c7ff"/><rect x="59.15" y="28.6" width="0.95" height="15.9" fill="#d3b2fb"/><rect x="60.55" y="25.3" width="0.64" height="19.0" fill="#e0cffe"/><rect x="62.03" y="18.2" width="1.18" height="25.8" fill="#d7b9fd"/><rect x="63.33" y="19.8" width="0.70" height="24.0" fill="#dfcbff"/><rect x="65.17" y="31.6" width="0.80" height="11.8" fill="#ddd1ff"/><rect x="66.45" y="32.3" width="0.90" height="11.0" fill="#d9c5fb"/><rect x="68.56" y="17.6" width="0.62" height="25.4" fill="#e1ceff"/><rect x="70.28" y="12.4" width="1.15" height="30.5" fill="#cbb7f8"/><rect x="71.64" y="18.6" width="0.69" height="24.2" fill="#d5c3ff"/><rect x="73.57" y="21.7" width="0.75" height="21.2" fill="#cab5f7"/><rect x="74.80" y="14.4" width="0.97" height="28.6" fill="#eae2fe"/><rect x="76.61" y="7.2" width="0.88" height="36.1" fill="#d0bdff"/><rect x="78.10" y="15.7" width="1.28" height="28.0" fill="#e9e0ff"/><rect x="79.52" y="27.4" width="0.87" height="16.8" fill="#dbc3ff"/><rect x="81.32" y="27.9" width="0.60" height="16.9" fill="#ceb5ff"/><rect x="82.58" y="21.9" width="0.81" height="23.6" fill="#d9c9ff"/><rect x="84.56" y="24.4" width="0.80" height="22.1" fill="#dec1ff"/><rect x="86.28" y="36.1" width="1.06" height="11.4" fill="#c5b5ec"/><rect x="88.07" y="34.2" width="1.23" height="14.6" fill="#dcc1ff"/><rect x="89.18" y="25.6" width="0.73" height="23.9" fill="#d8bffd"/><rect x="90.67" y="18.5" width="0.77" height="32.1" fill="#e2c9fe"/><rect x="92.50" y="26.2" width="0.62" height="25.7" fill="#e0c3ff"/><rect x="93.83" y="32.2" width="0.83" height="20.7" fill="#e3d2ff"/><rect x="95.46" y="27.4" width="1.00" height="26.6" fill="#ebe0ff"/></g></g><path d="M96.00 50.00L95.97 64.13L95.90 68.64L95.77 71.90L95.60 74.54L95.37 76.79L95.09 78.76L94.75 80.51L94.37 82.10L93.92 83.54L93.43 84.86L92.87 86.07L92.26 87.19L91.59 88.22L90.85 89.17L90.05 90.05L89.17 90.85L88.22 91.59L87.19 92.26L86.07 92.87L84.86 93.43L83.54 93.92L82.10 94.37L80.51 94.75L78.76 95.09L76.79 95.37L74.54 95.60L71.90 95.77L68.64 95.90L64.13 95.97L50.00 96.00L35.87 95.97L31.36 95.90L28.10 95.77L25.46 95.60L23.21 95.37L21.24 95.09L19.49 94.75L17.90 94.37L16.46 93.92L15.14 93.43L13.93 92.87L12.81 92.26L11.78 91.59L10.83 90.85L9.95 90.05L9.15 89.17L8.41 88.22L7.74 87.19L7.13 86.07L6.57 84.86L6.08 83.54L5.63 82.10L5.25 80.51L4.91 78.76L4.63 76.79L4.40 74.54L4.23 71.90L4.10 68.64L4.03 64.13L4.00 50.00L4.03 35.87L4.10 31.36L4.23 28.10L4.40 25.46L4.63 23.21L4.91 21.24L5.25 19.49L5.63 17.90L6.08 16.46L6.57 15.14L7.13 13.93L7.74 12.81L8.41 11.78L9.15 10.83L9.95 9.95L10.83 9.15L11.78 8.41L12.81 7.74L13.93 7.13L15.14 6.57L16.46 6.08L17.90 5.63L19.49 5.25L21.24 4.91L23.21 4.63L25.46 4.40L28.10 4.23L31.36 4.10L35.87 4.03L50.00 4.00L64.13 4.03L68.64 4.10L71.90 4.23L74.54 4.40L76.79 4.63L78.76 4.91L80.51 5.25L82.10 5.63L83.54 6.08L84.86 6.57L86.07 7.13L87.19 7.74L88.22 8.41L89.17 9.15L90.05 9.95L90.85 10.83L91.59 11.78L92.26 12.81L92.87 13.93L93.43 15.14L93.92 16.46L94.37 17.90L94.75 19.49L95.09 21.24L95.37 23.21L95.60 25.46L95.77 28.10L95.90 31.36L95.97 35.87Z" fill="none" stroke="#fff" stroke-opacity=".18" stroke-width="1"/><rect x="28" y="18" width="44" height="64" rx="6" fill="#fff"/><path d="M52 18v24l7-5.5 7 5.5V18z" fill="#7146a6"/><rect x="28" y="18" width="6" height="64" rx="3" fill="#7146a6" opacity=".35"/></svg> |
diff --git a/internal/look/static/oficina/sheets.svg b/internal/look/static/oficina/sheets.svg| new file mode 100644 |
| index 0000000..d7a3364 |
| --- /dev/null |
| +++ b/internal/look/static/oficina/sheets.svg |
| @@ -0,0 +1 @@ |
| +<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 100 100" role="img" aria-label="Sheets"><title>Sheets</title><defs><clipPath id="s"><path d="M96.00 50.00L95.97 64.13L95.90 68.64L95.77 71.90L95.60 74.54L95.37 76.79L95.09 78.76L94.75 80.51L94.37 82.10L93.92 83.54L93.43 84.86L92.87 86.07L92.26 87.19L91.59 88.22L90.85 89.17L90.05 90.05L89.17 90.85L88.22 91.59L87.19 92.26L86.07 92.87L84.86 93.43L83.54 93.92L82.10 94.37L80.51 94.75L78.76 95.09L76.79 95.37L74.54 95.60L71.90 95.77L68.64 95.90L64.13 95.97L50.00 96.00L35.87 95.97L31.36 95.90L28.10 95.77L25.46 95.60L23.21 95.37L21.24 95.09L19.49 94.75L17.90 94.37L16.46 93.92L15.14 93.43L13.93 92.87L12.81 92.26L11.78 91.59L10.83 90.85L9.95 90.05L9.15 89.17L8.41 88.22L7.74 87.19L7.13 86.07L6.57 84.86L6.08 83.54L5.63 82.10L5.25 80.51L4.91 78.76L4.63 76.79L4.40 74.54L4.23 71.90L4.10 68.64L4.03 64.13L4.00 50.00L4.03 35.87L4.10 31.36L4.23 28.10L4.40 25.46L4.63 23.21L4.91 21.24L5.25 19.49L5.63 17.90L6.08 16.46L6.57 15.14L7.13 13.93L7.74 12.81L8.41 11.78L9.15 10.83L9.95 9.95L10.83 9.15L11.78 8.41L12.81 7.74L13.93 7.13L15.14 6.57L16.46 6.08L17.90 5.63L19.49 5.25L21.24 4.91L23.21 4.63L25.46 4.40L28.10 4.23L31.36 4.10L35.87 4.03L50.00 4.00L64.13 4.03L68.64 4.10L71.90 4.23L74.54 4.40L76.79 4.63L78.76 4.91L80.51 5.25L82.10 5.63L83.54 6.08L84.86 6.57L86.07 7.13L87.19 7.74L88.22 8.41L89.17 9.15L90.05 9.95L90.85 10.83L91.59 11.78L92.26 12.81L92.87 13.93L93.43 15.14L93.92 16.46L94.37 17.90L94.75 19.49L95.09 21.24L95.37 23.21L95.60 25.46L95.77 28.10L95.90 31.36L95.97 35.87Z"/></clipPath><linearGradient id="g" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#5aa04a"/><stop offset="1" stop-color="#3d892a"/></linearGradient><filter id="h" x="-40%" y="-60%" width="180%" height="220%"><feGaussianBlur stdDeviation="5.5"/></filter></defs><g clip-path="url(#s)"><rect width="100" height="100" fill="url(#g)"/><g filter="url(#h)" opacity=".7"><rect x="4.00" y="44.8" width="0.65" height="11.0" fill="#accc9e"/><rect x="6.18" y="31.9" width="0.95" height="22.7" fill="#bff2b2"/><rect x="7.28" y="28.2" width="0.71" height="25.7" fill="#c5f4c4"/><rect x="9.26" y="35.2" width="0.69" height="17.4" fill="#bfeeb8"/><rect x="10.93" y="35.4" width="0.65" height="16.0" fill="#a3e19e"/><rect x="12.75" y="20.4" width="1.25" height="29.8" fill="#a8daa4"/><rect x="14.50" y="13.0" width="0.75" height="35.9" fill="#b1dbaf"/><rect x="16.53" y="23.7" width="0.71" height="23.9" fill="#c0e4b2"/><rect x="18.38" y="25.1" width="1.09" height="21.2" fill="#b2e4ab"/><rect x="19.99" y="16.2" width="0.89" height="29.2" fill="#a4cd9f"/><rect x="21.58" y="15.9" width="0.96" height="28.5" fill="#b9e5b5"/><rect x="23.79" y="31.6" width="0.77" height="11.8" fill="#a5d78e"/><rect x="25.07" y="31.9" width="0.66" height="11.0" fill="#c2e4b5"/><rect x="26.58" y="22.9" width="0.98" height="19.4" fill="#a0ce9d"/><rect x="28.56" y="15.8" width="0.92" height="26.1" fill="#9fd695"/><rect x="29.95" y="21.7" width="1.12" height="19.9" fill="#a5e5a1"/><rect x="32.03" y="23.5" width="0.62" height="18.0" fill="#a8cfa6"/><rect x="33.41" y="13.0" width="1.07" height="28.5" fill="#a6e9a5"/><rect x="35.27" y="5.0" width="1.01" height="36.6" fill="#aee1a1"/><rect x="36.51" y="11.2" width="1.11" height="30.5" fill="#c8efb6"/><rect x="38.77" y="23.0" width="0.86" height="19.1" fill="#baf9b4"/><rect x="40.86" y="15.0" width="1.00" height="27.6" fill="#c5f0c5"/><rect x="42.40" y="15.0" width="1.12" height="27.9" fill="#9ed798"/><rect x="43.52" y="23.1" width="0.92" height="20.2" fill="#a0d48f"/><rect x="45.48" y="32.7" width="0.61" height="11.0" fill="#a1da9f"/><rect x="46.71" y="30.4" width="0.80" height="13.6" fill="#97d298"/><rect x="48.73" y="17.7" width="0.80" height="26.7" fill="#c2f5b6"/><rect x="51.00" y="24.3" width="1.24" height="20.5" fill="#abdb9f"/><rect x="53.10" y="25.3" width="1.25" height="19.7" fill="#b5e9a8"/><rect x="54.21" y="17.1" width="1.28" height="28.0" fill="#9dce9a"/><rect x="55.73" y="8.4" width="1.09" height="36.8" fill="#bbeeb3"/><rect x="57.41" y="14.6" width="0.61" height="30.5" fill="#bde9b9"/><rect x="59.24" y="26.3" width="0.65" height="18.7" fill="#a1dda0"/><rect x="60.43" y="25.2" width="0.95" height="19.7" fill="#b9e4ad"/><rect x="62.25" y="16.8" width="0.71" height="27.8" fill="#b6e0a6"/><rect x="63.46" y="18.2" width="1.22" height="26.3" fill="#add9a9"/><rect x="65.01" y="29.2" width="0.93" height="15.0" fill="#b7dcad"/><rect x="66.39" y="33.0" width="1.23" height="11.0" fill="#c6e9b5"/><rect x="68.28" y="24.8" width="1.05" height="19.0" fill="#ade5ad"/><rect x="70.00" y="15.2" width="0.68" height="28.4" fill="#acdd95"/><rect x="71.92" y="21.5" width="0.83" height="22.0" fill="#b1e2ab"/><rect x="73.52" y="24.7" width="1.07" height="18.7" fill="#ccf1bc"/><rect x="75.03" y="15.8" width="1.18" height="27.6" fill="#addba9"/><rect x="76.44" y="7.2" width="0.90" height="36.4" fill="#baf3b1"/><rect x="78.59" y="15.9" width="0.76" height="28.0" fill="#a6de99"/><rect x="80.46" y="27.4" width="0.64" height="17.0" fill="#b7dca7"/><rect x="82.52" y="21.1" width="0.77" height="24.1" fill="#beefa4"/><rect x="84.53" y="21.3" width="0.86" height="24.8" fill="#c9efbc"/><rect x="86.73" y="36.3" width="0.87" height="11.0" fill="#b7e89e"/><rect x="88.29" y="35.8" width="0.73" height="12.4" fill="#a3ce95"/><rect x="89.91" y="24.1" width="0.69" height="25.2" fill="#b5e8ab"/><rect x="92.14" y="23.9" width="0.70" height="26.9" fill="#aad692"/><rect x="93.45" y="31.3" width="1.10" height="20.5" fill="#add0a0"/><rect x="95.03" y="31.3" width="0.65" height="21.7" fill="#c6f4c4"/></g></g><path d="M96.00 50.00L95.97 64.13L95.90 68.64L95.77 71.90L95.60 74.54L95.37 76.79L95.09 78.76L94.75 80.51L94.37 82.10L93.92 83.54L93.43 84.86L92.87 86.07L92.26 87.19L91.59 88.22L90.85 89.17L90.05 90.05L89.17 90.85L88.22 91.59L87.19 92.26L86.07 92.87L84.86 93.43L83.54 93.92L82.10 94.37L80.51 94.75L78.76 95.09L76.79 95.37L74.54 95.60L71.90 95.77L68.64 95.90L64.13 95.97L50.00 96.00L35.87 95.97L31.36 95.90L28.10 95.77L25.46 95.60L23.21 95.37L21.24 95.09L19.49 94.75L17.90 94.37L16.46 93.92L15.14 93.43L13.93 92.87L12.81 92.26L11.78 91.59L10.83 90.85L9.95 90.05L9.15 89.17L8.41 88.22L7.74 87.19L7.13 86.07L6.57 84.86L6.08 83.54L5.63 82.10L5.25 80.51L4.91 78.76L4.63 76.79L4.40 74.54L4.23 71.90L4.10 68.64L4.03 64.13L4.00 50.00L4.03 35.87L4.10 31.36L4.23 28.10L4.40 25.46L4.63 23.21L4.91 21.24L5.25 19.49L5.63 17.90L6.08 16.46L6.57 15.14L7.13 13.93L7.74 12.81L8.41 11.78L9.15 10.83L9.95 9.95L10.83 9.15L11.78 8.41L12.81 7.74L13.93 7.13L15.14 6.57L16.46 6.08L17.90 5.63L19.49 5.25L21.24 4.91L23.21 4.63L25.46 4.40L28.10 4.23L31.36 4.10L35.87 4.03L50.00 4.00L64.13 4.03L68.64 4.10L71.90 4.23L74.54 4.40L76.79 4.63L78.76 4.91L80.51 5.25L82.10 5.63L83.54 6.08L84.86 6.57L86.07 7.13L87.19 7.74L88.22 8.41L89.17 9.15L90.05 9.95L90.85 10.83L91.59 11.78L92.26 12.81L92.87 13.93L93.43 15.14L93.92 16.46L94.37 17.90L94.75 19.49L95.09 21.24L95.37 23.21L95.60 25.46L95.77 28.10L95.90 31.36L95.97 35.87Z" fill="none" stroke="#fff" stroke-opacity=".18" stroke-width="1"/><rect x="22" y="26" width="56" height="48" rx="6" fill="#fff"/><rect x="22" y="26" width="56" height="13" rx="6" fill="#26730e" opacity=".35"/><g stroke="#26730e" stroke-width="3"><path d="M42 26v48M22 52h56M22 64h56"/></g></svg> |
diff --git a/internal/look/static/oficina/slides.svg b/internal/look/static/oficina/slides.svg| new file mode 100644 |
| index 0000000..0fb0f9e |
| --- /dev/null |
| +++ b/internal/look/static/oficina/slides.svg |
| @@ -0,0 +1 @@ |
| +<svg xmlns="http://www.w3.org/2000/svg" width="1024" height="1024" viewBox="0 0 100 100" role="img" aria-label="Slides"><title>Slides</title><defs><clipPath id="s"><path d="M96.00 50.00L95.97 64.13L95.90 68.64L95.77 71.90L95.60 74.54L95.37 76.79L95.09 78.76L94.75 80.51L94.37 82.10L93.92 83.54L93.43 84.86L92.87 86.07L92.26 87.19L91.59 88.22L90.85 89.17L90.05 90.05L89.17 90.85L88.22 91.59L87.19 92.26L86.07 92.87L84.86 93.43L83.54 93.92L82.10 94.37L80.51 94.75L78.76 95.09L76.79 95.37L74.54 95.60L71.90 95.77L68.64 95.90L64.13 95.97L50.00 96.00L35.87 95.97L31.36 95.90L28.10 95.77L25.46 95.60L23.21 95.37L21.24 95.09L19.49 94.75L17.90 94.37L16.46 93.92L15.14 93.43L13.93 92.87L12.81 92.26L11.78 91.59L10.83 90.85L9.95 90.05L9.15 89.17L8.41 88.22L7.74 87.19L7.13 86.07L6.57 84.86L6.08 83.54L5.63 82.10L5.25 80.51L4.91 78.76L4.63 76.79L4.40 74.54L4.23 71.90L4.10 68.64L4.03 64.13L4.00 50.00L4.03 35.87L4.10 31.36L4.23 28.10L4.40 25.46L4.63 23.21L4.91 21.24L5.25 19.49L5.63 17.90L6.08 16.46L6.57 15.14L7.13 13.93L7.74 12.81L8.41 11.78L9.15 10.83L9.95 9.95L10.83 9.15L11.78 8.41L12.81 7.74L13.93 7.13L15.14 6.57L16.46 6.08L17.90 5.63L19.49 5.25L21.24 4.91L23.21 4.63L25.46 4.40L28.10 4.23L31.36 4.10L35.87 4.03L50.00 4.00L64.13 4.03L68.64 4.10L71.90 4.23L74.54 4.40L76.79 4.63L78.76 4.91L80.51 5.25L82.10 5.63L83.54 6.08L84.86 6.57L86.07 7.13L87.19 7.74L88.22 8.41L89.17 9.15L90.05 9.95L90.85 10.83L91.59 11.78L92.26 12.81L92.87 13.93L93.43 15.14L93.92 16.46L94.37 17.90L94.75 19.49L95.09 21.24L95.37 23.21L95.60 25.46L95.77 28.10L95.90 31.36L95.97 35.87Z"/></clipPath><linearGradient id="g" x1="0" y1="0" x2="0" y2="1"><stop offset="0" stop-color="#cb7227"/><stop offset="1" stop-color="#af5b03"/></linearGradient><filter id="h" x="-40%" y="-60%" width="180%" height="220%"><feGaussianBlur stdDeviation="5.5"/></filter></defs><g clip-path="url(#s)"><rect width="100" height="100" fill="url(#g)"/><g filter="url(#h)" opacity=".7"><rect x="4.00" y="39.2" width="0.73" height="16.7" fill="#fec6a5"/><rect x="5.60" y="37.1" width="1.25" height="18.3" fill="#f7b989"/><rect x="6.80" y="30.5" width="1.06" height="24.4" fill="#ffdec9"/><rect x="8.83" y="32.0" width="0.92" height="22.1" fill="#ffc79d"/><rect x="11.05" y="41.9" width="0.89" height="11.0" fill="#f8ab76"/><rect x="13.29" y="29.6" width="1.15" height="22.0" fill="#ffbf99"/><rect x="15.03" y="19.4" width="0.94" height="31.1" fill="#ffd0ad"/><rect x="17.27" y="26.9" width="0.90" height="22.1" fill="#ffd3b5"/><rect x="18.95" y="25.7" width="1.18" height="22.2" fill="#eab18a"/><rect x="20.22" y="16.6" width="0.87" height="30.4" fill="#fbb991"/><rect x="21.63" y="9.9" width="0.62" height="36.2" fill="#f9b178"/><rect x="23.67" y="20.5" width="1.29" height="24.3" fill="#f0bd9b"/><rect x="25.21" y="29.2" width="0.84" height="14.7" fill="#f1b585"/><rect x="26.54" y="26.1" width="1.05" height="17.1" fill="#ffbf91"/><rect x="28.30" y="17.1" width="0.82" height="25.3" fill="#fcc9a0"/><rect x="29.70" y="19.5" width="0.66" height="22.3" fill="#fecbad"/><rect x="31.22" y="28.8" width="0.92" height="12.5" fill="#f6b683"/><rect x="33.20" y="26.3" width="1.01" height="14.4" fill="#ffd1ad"/><rect x="34.55" y="14.8" width="0.89" height="25.8" fill="#ffbe99"/><rect x="35.70" y="8.4" width="1.30" height="32.0" fill="#fac5a7"/><rect x="36.97" y="10.7" width="0.93" height="29.7" fill="#ebb992"/><rect x="38.68" y="19.2" width="1.30" height="21.2" fill="#feb885"/><rect x="40.93" y="12.1" width="0.90" height="28.6" fill="#ffd5b4"/><rect x="42.26" y="5.8" width="1.22" height="35.2" fill="#ffd6bc"/><rect x="43.84" y="11.6" width="1.20" height="29.8" fill="#fedbc5"/><rect x="45.18" y="23.4" width="1.14" height="18.3" fill="#ffd7b9"/><rect x="47.02" y="28.3" width="0.89" height="14.0" fill="#fed1af"/><rect x="48.51" y="20.9" width="1.05" height="21.9" fill="#fecfab"/><rect x="49.83" y="18.2" width="1.07" height="25.0" fill="#ffdbc8"/><rect x="51.43" y="26.3" width="1.19" height="17.4" fill="#fed4b4"/><rect x="52.56" y="32.5" width="1.19" height="11.6" fill="#fed3b6"/><rect x="54.77" y="24.0" width="0.85" height="20.7" fill="#eab58f"/><rect x="56.66" y="11.9" width="1.29" height="33.2" fill="#f1ba9a"/><rect x="58.31" y="16.9" width="0.88" height="28.5" fill="#edb181"/><rect x="59.64" y="23.9" width="1.08" height="21.7" fill="#fdc69b"/><rect x="61.20" y="21.7" width="1.20" height="24.1" fill="#fecfae"/><rect x="62.30" y="14.9" width="0.78" height="30.9" fill="#fecea7"/><rect x="63.94" y="12.2" width="0.84" height="33.6" fill="#ffccac"/><rect x="65.73" y="25.5" width="0.75" height="20.3" fill="#f6bb8b"/><rect x="66.97" y="33.2" width="1.16" height="12.5" fill="#fec092"/><rect x="68.57" y="29.7" width="0.96" height="15.9" fill="#efba9b"/><rect x="69.87" y="22.2" width="0.76" height="23.4" fill="#fec396"/><rect x="71.46" y="22.3" width="1.03" height="23.1" fill="#ecbc95"/><rect x="73.22" y="31.9" width="0.84" height="13.3" fill="#f7ae7e"/><rect x="75.52" y="24.9" width="0.64" height="20.2" fill="#fee1ce"/><rect x="77.03" y="12.7" width="0.91" height="32.3" fill="#efbf9e"/><rect x="78.56" y="12.1" width="0.97" height="32.9" fill="#ffb183"/><rect x="80.59" y="23.3" width="1.30" height="21.8" fill="#fedfca"/><rect x="82.37" y="20.5" width="1.19" height="24.9" fill="#e5b692"/><rect x="83.58" y="13.9" width="0.64" height="31.8" fill="#f9b483"/><rect x="85.45" y="16.7" width="0.72" height="29.5" fill="#ffd2b5"/><rect x="87.10" y="31.1" width="1.17" height="15.6" fill="#febf8e"/><rect x="88.80" y="35.6" width="1.13" height="11.8" fill="#e9b190"/><rect x="90.54" y="26.5" width="1.28" height="21.8" fill="#fdbd8b"/><rect x="92.52" y="26.4" width="0.79" height="23.0" fill="#feceab"/><rect x="94.33" y="36.8" width="1.20" height="13.8" fill="#f7b182"/></g></g><path d="M96.00 50.00L95.97 64.13L95.90 68.64L95.77 71.90L95.60 74.54L95.37 76.79L95.09 78.76L94.75 80.51L94.37 82.10L93.92 83.54L93.43 84.86L92.87 86.07L92.26 87.19L91.59 88.22L90.85 89.17L90.05 90.05L89.17 90.85L88.22 91.59L87.19 92.26L86.07 92.87L84.86 93.43L83.54 93.92L82.10 94.37L80.51 94.75L78.76 95.09L76.79 95.37L74.54 95.60L71.90 95.77L68.64 95.90L64.13 95.97L50.00 96.00L35.87 95.97L31.36 95.90L28.10 95.77L25.46 95.60L23.21 95.37L21.24 95.09L19.49 94.75L17.90 94.37L16.46 93.92L15.14 93.43L13.93 92.87L12.81 92.26L11.78 91.59L10.83 90.85L9.95 90.05L9.15 89.17L8.41 88.22L7.74 87.19L7.13 86.07L6.57 84.86L6.08 83.54L5.63 82.10L5.25 80.51L4.91 78.76L4.63 76.79L4.40 74.54L4.23 71.90L4.10 68.64L4.03 64.13L4.00 50.00L4.03 35.87L4.10 31.36L4.23 28.10L4.40 25.46L4.63 23.21L4.91 21.24L5.25 19.49L5.63 17.90L6.08 16.46L6.57 15.14L7.13 13.93L7.74 12.81L8.41 11.78L9.15 10.83L9.95 9.95L10.83 9.15L11.78 8.41L12.81 7.74L13.93 7.13L15.14 6.57L16.46 6.08L17.90 5.63L19.49 5.25L21.24 4.91L23.21 4.63L25.46 4.40L28.10 4.23L31.36 4.10L35.87 4.03L50.00 4.00L64.13 4.03L68.64 4.10L71.90 4.23L74.54 4.40L76.79 4.63L78.76 4.91L80.51 5.25L82.10 5.63L83.54 6.08L84.86 6.57L86.07 7.13L87.19 7.74L88.22 8.41L89.17 9.15L90.05 9.95L90.85 10.83L91.59 11.78L92.26 12.81L92.87 13.93L93.43 15.14L93.92 16.46L94.37 17.90L94.75 19.49L95.09 21.24L95.37 23.21L95.60 25.46L95.77 28.10L95.90 31.36L95.97 35.87Z" fill="none" stroke="#fff" stroke-opacity=".18" stroke-width="1"/><rect x="18" y="24" width="64" height="42" rx="5" fill="#fff"/><g fill="#924b00"><rect x="30" y="46" width="8" height="12" rx="2"/><rect x="44" y="38" width="8" height="20" rx="2"/><rect x="58" y="32" width="8" height="26" rx="2"/></g><rect x="47.5" y="66" width="5" height="9" fill="#fff"/><rect x="37" y="74" width="26" height="5" rx="2.5" fill="#fff"/></svg> |
diff --git a/internal/web/home.go b/internal/web/home.go| index 2297d5a..ae0ba1a 100644 |
| --- a/internal/web/home.go |
| +++ b/internal/web/home.go |
| @@ -22,6 +22,13 @@ type tile struct { |
| Icon template.HTML |
| } |
| +// oficinaLink is one Oficina app on Home: a link that opens it in a new tab. |
| +type oficinaLink struct { |
| + Name string |
| + Href string |
| + Icon string // the icon's path in the static tree, for {{asset}} |
| +} |
| + |
| type homePage struct { |
| Name string // the Base's name |
| Greeting string |
| @@ -29,6 +36,9 @@ type homePage struct { |
| Lede string |
| Steps []step |
| Tiles []tile |
| + // Oficina is the team's Oficina apps (BASE_OFICINA_APPS), drawn as a |
| + // rail on a wide screen and as tiles on a phone. |
| + Oficina []oficinaLink |
| // Ask is the chat panel, nil with the chat off. |
| Ask *askView |
| } |
| @@ -104,6 +114,9 @@ func (a *app) home(w http.ResponseWriter, r *http.Request) { |
| {Name: "People", Href: "/people", Tint: "violet", Icon: iconPeople}, |
| {Name: "Settings", Href: "/settings", Tint: "mist", Icon: iconSettings}, |
| } |
| + for _, o := range a.cfg.OficinaApps { |
| + page.Oficina = append(page.Oficina, oficinaLink{Name: o.Name, Href: o.Origin + "/", Icon: "static/oficina/" + o.ID + ".svg"}) |
| + } |
| installedOwn := false |
| for _, in := range installs { |
| e, ok := catalog.Get(in.App) |
diff --git a/internal/web/templates/home.html b/internal/web/templates/home.html| index 4703f58..c34038d 100644 |
| --- a/internal/web/templates/home.html |
| +++ b/internal/web/templates/home.html |
| @@ -7,14 +7,27 @@ |
| <a class="ask-icon" href="/ask" data-ask-open aria-haspopup="dialog" aria-controls="ask-panel" aria-label="Ask Base"><svg viewBox="0 0 24 24" aria-hidden="true"><path d="M5 5.5h14a1.5 1.5 0 0 1 1.5 1.5v8.5A1.5 1.5 0 0 1 19 17h-8l-4.5 3.5V17H5a1.5 1.5 0 0 1-1.5-1.5V7A1.5 1.5 0 0 1 5 5.5z"/><path d="M8.5 11.25h.01M12 11.25h.01M15.5 11.25h.01"/></svg></a>{{else}}<input class="ask" type="text" disabled placeholder="Ask Base anything" title="Asking Base arrives in a later slice" aria-label="Ask Base anything">{{end}} |
| <a class="me" href="/settings" aria-label="Settings">{{.Initials}}</a> |
| </div> |
| +<div class="home-cols"> |
| +{{with .Oficina}}<nav class="rail glass" aria-label="Oficina"> |
| +{{range .}}<a class="rail-app" href="{{.Href}}" target="_blank" rel="noopener"><img src="{{asset .Icon}}" alt=""><span>{{.Name}}</span></a> |
| +{{end}}</nav> |
| +{{end}}<div class="home-body"> |
| <h2 class="hello">{{.Greeting}}</h2> |
| <p class="lede">{{.Lede}}</p> |
| <ul class="steps"> |
| {{range .Steps}}<li class="glass{{if .Done}} done{{end}}"><span class="mark">{{if .Done}}✓{{end}}</span>{{.Label}}</li> |
| {{end}}</ul> |
| -<div class="dock"> |
| +{{with .Oficina}}<section class="oficina" aria-labelledby="oficina-heading"> |
| +<h3 id="oficina-heading">Oficina</h3> |
| +<div class="oficina-row"> |
| +{{range .}}<a class="app" href="{{.Href}}" target="_blank" rel="noopener"><div class="tile"><img src="{{asset .Icon}}" alt=""></div>{{.Name}}</a> |
| +{{end}}</div> |
| +</section> |
| +{{end}}<div class="dock"> |
| {{range .Tiles}}<a class="app" href="{{.Href}}"><div class="tile glass t-{{.Tint}}">{{.Icon}}</div>{{.Name}}</a> |
| {{end}}</div> |
| +</div> |
| +</div> |
| {{with .Ask}}{{template "ask-panel" .}} |
| <script type="module" src="{{asset "static/ask.js"}}"></script>{{end}} |
| </main>{{end}} |
diff --git a/internal/webtest/home_test.go b/internal/webtest/home_test.go| index fa3b0eb..856d571 100644 |
| --- a/internal/webtest/home_test.go |
| +++ b/internal/webtest/home_test.go |
| @@ -2,11 +2,15 @@ package webtest |
| import ( |
| "context" |
| + "database/sql" |
| "regexp" |
| "strings" |
| "testing" |
| + "time" |
| + "amadan.net/carlos/base/internal/config" |
| "amadan.net/carlos/base/internal/store" |
| + "amadan.net/carlos/base/internal/web" |
| ) |
| func (a *testApp) setInstall(app, state, errMsg string) { |
| @@ -121,3 +125,78 @@ func TestHomeTileUsesRecordedHost(t *testing.T) { |
| t.Fatalf("tile does not use the recorded host:\n%s", body) |
| } |
| } |
| + |
| +var ( |
| + railRE = regexp.MustCompile(`(?s)<nav class="rail glass" aria-label="Oficina">(.*?)</nav>`) |
| + oficinaRE = regexp.MustCompile(`(?s)<section class="oficina" aria-labelledby="oficina-heading">\s*<h3 id="oficina-heading">Oficina</h3>(.*?)</section>`) |
| + appLinkRE = regexp.MustCompile(`<a class="([^"]*)" href="([^"]*)" target="_blank" rel="noopener">`) |
| + appIconRE = regexp.MustCompile(`<img src="(/static/oficina/[a-z]+\.[0-9a-f]+\.svg)" alt="">`) |
| + appLabelRE = regexp.MustCompile(`</div>([A-Za-z]+)</a>|<span>([A-Za-z]+)</span></a>`) |
| + oficinaApps = []config.OficinaApp{ |
| + {ID: "fichas", Name: "Fichas", Origin: "https://fichas.oficina.works"}, |
| + {ID: "calendar", Name: "Calendar", Origin: "https://calendar.oficina.works"}, |
| + {ID: "equipo", Name: "Equipo", Origin: "https://equipo.bds.oncarlos.com"}, |
| + } |
| +) |
| + |
| +// Home lists the Oficina apps the setting names, in its order, twice: a |
| +// rail down the left on a wide screen and a row of tiles on a phone (CSS |
| +// shows one or the other). Each is a plain link to the app's origin in a |
| +// new tab, with Estilo's icon served from Base itself. |
| +func TestHomeListsOficinaApps(t *testing.T) { |
| + a := newAppConfigured(t, func(*sql.DB, config.Config) web.Installer { return noInstaller{} }, time.UTC, |
| + func(c *config.Config) { c.OficinaApps = oficinaApps }) |
| + a.signedInOwner() |
| + body := a.get("/").Body |
| + |
| + rail := railRE.FindStringSubmatch(body) |
| + tiles := oficinaRE.FindStringSubmatch(body) |
| + if rail == nil || tiles == nil { |
| + t.Fatalf("rail found %v, phone tiles found %v:\n%s", rail != nil, tiles != nil, body) |
| + } |
| + if strings.Index(body, `class="oficina"`) > strings.Index(body, `class="dock"`) { |
| + t.Error("the phone's Oficina tiles come after Store, People and Settings") |
| + } |
| + for _, c := range []struct{ name, html, class string }{{"rail", rail[1], "rail-app"}, {"tiles", tiles[1], "app"}} { |
| + links := appLinkRE.FindAllStringSubmatch(c.html, -1) |
| + icons := appIconRE.FindAllStringSubmatch(c.html, -1) |
| + labels := appLabelRE.FindAllStringSubmatch(c.html, -1) |
| + if len(links) != len(oficinaApps) || len(icons) != len(oficinaApps) || len(labels) != len(oficinaApps) { |
| + t.Fatalf("%s: %d links, %d icons, %d names; want %d of each:\n%s", c.name, len(links), len(icons), len(labels), len(oficinaApps), c.html) |
| + } |
| + for i, want := range oficinaApps { |
| + if links[i][1] != c.class || links[i][2] != want.Origin+"/" { |
| + t.Errorf("%s %d: class %q href %q, want %q %q", c.name, i, links[i][1], links[i][2], c.class, want.Origin+"/") |
| + } |
| + if !strings.HasPrefix(icons[i][1], "/static/oficina/"+want.ID+".") { |
| + t.Errorf("%s %d: icon %s, want %s's", c.name, i, icons[i][1], want.ID) |
| + } |
| + if got := labels[i][1] + labels[i][2]; got != want.Name { |
| + t.Errorf("%s %d: named %q, want %q", c.name, i, got, want.Name) |
| + } |
| + if r := a.get(icons[i][1]); r.Code != 200 || r.Header.Get("Content-Type") != "image/svg+xml" { |
| + t.Errorf("%s: %d %q", icons[i][1], r.Code, r.Header.Get("Content-Type")) |
| + } |
| + } |
| + } |
| +} |
| + |
| +// Without the setting there is no rail and no Oficina row. |
| +func TestHomeWithoutOficinaApps(t *testing.T) { |
| + a := newApp(t) |
| + a.signedInOwner() |
| + body := a.get("/").Body |
| + if strings.Contains(body, `class="rail`) || strings.Contains(body, `class="oficina"`) || strings.Contains(body, `has-rail`) { |
| + t.Fatalf("Oficina apps drawn with none configured:\n%s", body) |
| + } |
| +} |
| + |
| +// Every app Base knows has its icon. |
| +func TestEveryOficinaAppHasAnIcon(t *testing.T) { |
| + a := newApp(t) |
| + for _, id := range config.OficinaIDs() { |
| + if r := a.get("/static/oficina/" + id + ".svg"); r.Code != 200 || !strings.Contains(r.Body, "<svg") { |
| + t.Errorf("%s: %d", id, r.Code) |
| + } |
| + } |
| +} |