diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0c67df5..0700163 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -24,6 +24,17 @@ This project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.htm
### Changed
+- **New logo: the EaglePlot eagle.** An athletic-style eagle head in NCCU maroon and gray
+ replaces the blue bar-chart icon on the Home page, in the sidebar, as the browser-tab icon
+ (now the head on a maroon tile) and in `logo.ico`. SVG masters and lockups with the
+ wordmark are in `brand/`.
+- **A new loading screen for the web app.** The eagle head assembles itself from six pieces
+ that fly in from the edges of the screen, then waits with a blinking eye while Python
+ loads. Below it, four real steps (downloading Python, installing the science libraries,
+ starting EaglePlot, opening your workspace) replace the endlessly sliding bar. The note
+ about the 45 MB download appears only on a first visit. If loading fails, the screen says
+ why and offers **Reload** instead of sliding forever. With reduced motion turned on in
+ the system settings, the head appears already assembled.
- **A "Get started" Home page.** With no data loaded, Home offers three example datasets,
each a single click away from a plot in Quick Plot, plus buttons to upload a file or
browse all examples, instead of "Datasets 0 · Plots 0 · Analyses 0".
diff --git a/README.md b/README.md
index f37f10d..308e8c7 100644
--- a/README.md
+++ b/README.md
@@ -1,5 +1,12 @@
# EaglePlot
+
+
+
+
+
+
+
[](https://github.com/The-Schultz-Lab/eagleplot/actions/workflows/tests.yml)
[](https://pypi.org/project/eagleplot/)
[](https://mybinder.org/v2/gh/The-Schultz-Lab/eagleplot/main)
diff --git a/brand/README.md b/brand/README.md
new file mode 100644
index 0000000..9033503
--- /dev/null
+++ b/brand/README.md
@@ -0,0 +1,48 @@
+# EaglePlot brand files
+
+| File | Use it for |
+| --- | --- |
+| `logo.svg` | The eagle head on its own, transparent. Master for `eagleplot/assets/logo.png`. |
+| `icon.svg` | The head on a maroon rounded square: app icon, favicon. Master for `eagleplot/assets/icon.png` and `logo.ico`. |
+| `lockup-light.svg`, `lockup-light@2x.png` | Head and wordmark on white or light backgrounds. |
+| `lockup-dark.svg`, `lockup-dark@2x.png` | Head and wordmark on dark backgrounds, such as the app's own. |
+| `lockup-endorsed-*.svg`, `*@2x.png` | The same, followed by "Schultz Lab · North Carolina Central University". |
+
+Use the SVGs wherever you can. The PNGs are for tools that cannot place SVG (some slide and
+poster software). All text is converted to outlines, so no font is needed.
+
+## Colours
+
+| Name | Hex | Where |
+| --- | --- | --- |
+| Maroon | `#8B2233` | Throat, eye, the "Eagle" of the wordmark on light backgrounds, app-icon tile |
+| Gray | `#A2A9AD` | Feather band, the "Plot" of the wordmark on dark backgrounds |
+| Beak | `#D7DBDE` | Beak |
+| Outline | `#24090F` | Outlines and brow |
+| Ink | `#1D2226` | The "Plot" of the wordmark on light backgrounds |
+
+Maroon and gray match NCCU's (sampled from `eagleplot/assets/nccu-horiz-logo.png`). The
+wordmark is set in Archivo Italic (width 115, weight 850); the endorsement line in Archivo.
+Archivo is by Omnibus-Type, under the SIL Open Font License.
+
+## Rules
+
+- Keep the head's outline. On white, the head is a white shape: the outline is what holds it.
+ The light lockups add a soft drop shadow for the same reason.
+- Don't recolour, stretch or redraw the head, and don't put it inside other emblems.
+- Keep NCCU's own logos separate. Show the university's marks as NCCU supplies them, next to
+ EaglePlot's, never merged with it.
+
+## Regenerating
+
+The head is defined once, in `scripts/brand/build_brand.py` (six pieces, drawn in order).
+After changing it:
+
+```bash
+pip install fonttools uharfbuzz
+python scripts/brand/build_brand.py path/to/archivo-fonts # SVGs in brand/
+node scripts/brand/render_brand.js # PNGs and logo.ico
+```
+
+The web app's loading splash (`packaging/web/index.html`) inlines the same six pieces and
+the wordmark outlines (`build/brand-wordmark.json`), so update it too.
diff --git a/brand/icon.svg b/brand/icon.svg
new file mode 100644
index 0000000..777431c
--- /dev/null
+++ b/brand/icon.svg
@@ -0,0 +1,12 @@
+
diff --git a/brand/lockup-dark.svg b/brand/lockup-dark.svg
new file mode 100644
index 0000000..074c67f
--- /dev/null
+++ b/brand/lockup-dark.svg
@@ -0,0 +1,15 @@
+
diff --git a/brand/lockup-dark@2x.png b/brand/lockup-dark@2x.png
new file mode 100644
index 0000000..9acfd46
Binary files /dev/null and b/brand/lockup-dark@2x.png differ
diff --git a/brand/lockup-endorsed-dark.svg b/brand/lockup-endorsed-dark.svg
new file mode 100644
index 0000000..5f23540
--- /dev/null
+++ b/brand/lockup-endorsed-dark.svg
@@ -0,0 +1,18 @@
+
diff --git a/brand/lockup-endorsed-dark@2x.png b/brand/lockup-endorsed-dark@2x.png
new file mode 100644
index 0000000..796cfb3
Binary files /dev/null and b/brand/lockup-endorsed-dark@2x.png differ
diff --git a/brand/lockup-endorsed-light.svg b/brand/lockup-endorsed-light.svg
new file mode 100644
index 0000000..8b11568
--- /dev/null
+++ b/brand/lockup-endorsed-light.svg
@@ -0,0 +1,25 @@
+
diff --git a/brand/lockup-endorsed-light@2x.png b/brand/lockup-endorsed-light@2x.png
new file mode 100644
index 0000000..e022f01
Binary files /dev/null and b/brand/lockup-endorsed-light@2x.png differ
diff --git a/brand/lockup-light.svg b/brand/lockup-light.svg
new file mode 100644
index 0000000..0e6efe3
--- /dev/null
+++ b/brand/lockup-light.svg
@@ -0,0 +1,22 @@
+
diff --git a/brand/lockup-light@2x.png b/brand/lockup-light@2x.png
new file mode 100644
index 0000000..0acb7e4
Binary files /dev/null and b/brand/lockup-light@2x.png differ
diff --git a/brand/logo.svg b/brand/logo.svg
new file mode 100644
index 0000000..684df80
--- /dev/null
+++ b/brand/logo.svg
@@ -0,0 +1,9 @@
+
diff --git a/eagleplot/Home.py b/eagleplot/Home.py
index e8f86d1..b7a888a 100644
--- a/eagleplot/Home.py
+++ b/eagleplot/Home.py
@@ -42,7 +42,8 @@
# `pip install` -- see audit A-09. Resolving them relative to the repo root meant
# a pip-installed GUI came up with no logo and no NCCU branding.
_ASSETS_DIR = Path(__file__).resolve().parent / "assets"
-_LOGO_PNG = _ASSETS_DIR / "logo.png"
+_LOGO_PNG = _ASSETS_DIR / "logo.png" # the eagle head, transparent
+_ICON_PNG = _ASSETS_DIR / "icon.png" # the head on a maroon tile: reads better in a browser tab
_NCCU_HORIZ = _ASSETS_DIR / "nccu-horiz-logo.png"
_NCCU_WINGS = _ASSETS_DIR / "nccu-wings.png"
@@ -54,7 +55,8 @@
try:
from PIL import Image as _PILImage
- _page_icon = _PILImage.open(_LOGO_PNG) if _LOGO_PNG.exists() else "📊"
+ _icon = _ICON_PNG if _ICON_PNG.exists() else _LOGO_PNG
+ _page_icon = _PILImage.open(_icon) if _icon.exists() else "📊"
except ImportError:
_page_icon = "📊"
diff --git a/eagleplot/assets/icon.png b/eagleplot/assets/icon.png
new file mode 100644
index 0000000..2ba54f9
Binary files /dev/null and b/eagleplot/assets/icon.png differ
diff --git a/eagleplot/assets/logo.ico b/eagleplot/assets/logo.ico
index fbc26da..2b8626e 100644
Binary files a/eagleplot/assets/logo.ico and b/eagleplot/assets/logo.ico differ
diff --git a/eagleplot/assets/logo.png b/eagleplot/assets/logo.png
index ddc9998..0f584a4 100644
Binary files a/eagleplot/assets/logo.png and b/eagleplot/assets/logo.png differ
diff --git a/packaging/web/README.md b/packaging/web/README.md
index b4eff31..f92e7fc 100644
--- a/packaging/web/README.md
+++ b/packaging/web/README.md
@@ -45,7 +45,7 @@ Streamlit exception, uncaught page error, failed download or request to another
| File | Content |
| --- | --- |
-| `index.html` | Loading splash, the stlite mount call, and a download workaround (below) |
+| `index.html` | Loading splash (below), the stlite mount call, and a download workaround (below) |
| `404.html` | A copy of `index.html`, for hosts that serve the nearest `404.html` (below) |
| `site-config.js` | Written by the build: entrypoint, packages, wheels, Pyodide URL, Streamlit flags, storage mount, environment |
| `eagleplot-app.zip` | `eagleplot/` (code, assets, gallery, example data) and `.streamlit/config.toml`; entrypoint `eagleplot/Home.py` |
@@ -73,6 +73,31 @@ Opening `index.html` from disk fails: the app runs in a module Web Worker and lo
app zip, wheels and Pyodide with `fetch()`, and browsers block both for `file://` pages.
Serve the directory over HTTP (`python -m http.server`, GitHub Pages, any static host).
+## Loading splash
+
+`index.html` draws the splash before anything else loads: a classic inline script, inline
+CSS and SVG, and no other files, so it is on screen while `stlite.js` and Pyodide download.
+
+- **The head.** The six pieces of the EaglePlot head (see `brand/` and
+ `scripts/brand/build_brand.py`) are inlined as separate `` groups. Each
+ one carries `data-from="x y rotate scale"` (its off-screen start) and `data-order` (when
+ it leaves), and flies in with the Web Animations API. The wordmark is outlined paths: the
+ smoke test fails on requests to other origins, so the splash may not load a web font.
+- **Steps.** `window.eaglePlotSplash` exposes `setStage(i)`, `ready()` and `fail(message)`.
+ The module script calls them from stlite's kernel events: `loadProgress` messages are
+ matched by keyword (`/pyodide/`, `/install|package/`, `/streamlit|server|boot/`),
+ `loadFinished` is the last step, and `loadError` shows the message and a Reload button.
+ Steps only move forward, so a reworded stlite message leaves the step where it is. The
+ events come from `_kernel`, which stlite calls unstable: re-check them when upgrading.
+- **Leaving.** The existing sidebar observer calls `ready()`, which waits for the head to
+ finish assembling, fades the splash out over 450 ms and removes `#loading`. It also sets
+ `localStorage["eagleplot.started"]`, which hides the first-visit download note next time.
+- **Reduced motion.** With `prefers-reduced-motion`, the head is drawn assembled and nothing
+ moves.
+
+The smoke test checks that the splash shows a step, reaches the last one and is gone once
+the app is up.
+
## Browser-specific behaviour
- **Downloads.** Streamlit 1.65 starts a deferred download
diff --git a/packaging/web/build_site.py b/packaging/web/build_site.py
index 71d7d3e..3a71d5f 100644
--- a/packaging/web/build_site.py
+++ b/packaging/web/build_site.py
@@ -205,7 +205,8 @@ def main(argv: Optional[List[str]] = None) -> None:
# the static host for a file that doesn't exist; GitHub Pages then serves 404.html,
# so make that the app too (it opens on Home).
shutil.copy(HERE / "index.html", out / "404.html")
- shutil.copy(REPO / APP_PACKAGE / "assets" / "logo.png", out / "eagleplot-icon.png")
+ # Favicon: the app icon (the eagle head on a maroon tile).
+ shutil.copy(REPO / APP_PACKAGE / "assets" / "icon.png", out / "eagleplot-icon.png")
pyodide_url: str = args.pyodide_url or PYODIDE_CDN_URL
if args.pyodide_url and args.pyodide_url.endswith("pyodide.js"):
diff --git a/packaging/web/index.html b/packaging/web/index.html
index 5729ff2..6162374 100644
--- a/packaging/web/index.html
+++ b/packaging/web/index.html
@@ -7,34 +7,168 @@
+
-
-
Starting EaglePlot…
-
-
- EaglePlot runs entirely in your browser: your data never leaves this computer.
- The first visit downloads Python and the scientific libraries (tens of MB);
- later visits start from the browser cache.
-
+
+
+
+
+
Starting EaglePlot…
+
+
Runs entirely in your browser. Your data stays on this computer.