Commit graph sonda/web/index.html
Author SHA1 Message Date
tgiachi
945aaf1a05 feat(web): new look, part 1: palette, Figtree, menu, covers and controls
The first piece of the new look of the web app.

- The Sonda theme takes the new palette (a deep blue ground, a lighter tone
  for panels instead of shadows, teal for the action). Every theme gets a
  --friend colour for what comes from another Sonda server, checked for
  contrast on the page and on a panel and for a hue that is not the primary
  one.
- Figtree is the only font; Fraunces is gone, also from the full-screen
  player.
- The menu is words and a dot: the dot of the open page is the colour of this
  server, and the dot of Friends is always the colour of what comes from
  elsewhere. There is nothing to fold, so the fold button and its setting are
  removed.
- The shell is flat: the menu has a line on its right, the page has no panel
  around it, the player is a band under everything.
- A missing cover is the rings of Sonda on a colour taken from the album, the
  same one every time; a friend's album gets another colour than this
  server's album with the same id.
- The switch is a pill with a round knob and the outline button is a line.
2026-11-13 17:11:59 +01:00
tgiachi
2217a12042 feat(web): the app can be installed and opens offline (PWA)
- A web app manifest with the name, the colours, the display mode and the icons (also a maskable one), so a browser offers to install it; Settings has an Install button where the browser lets the page ask.
- A service worker keeps the files of the app (the page, its scripts and styles, the manifest and the icons) so it opens at once, and shows its own page when the server cannot be reached. It never touches /api/: nothing from the API is kept, answered from a cache, or asked for by the worker. Files that failed, and anything that is not a file of the app, are not kept; the scripts it keeps are capped.
- A new version waits until the page says it may take over: a line says a new version is ready and its button reloads the page after the new worker took over.
- The server gives the manifest its type (application/manifest+json); the worker and the manifest are asked again every time, and the policy of the page needs no change.
2026-11-13 12:22:00 +01:00
tgiachi
7e46c38245 feat(web): the logo of Sonda, and a design pass
- The logo, sONDA with an O that is a sea wave, traced to vector paths: the s in the text colour and the rest in the accent colour of the theme, in the sidebar and on the sign-in page; folded, the sidebar shows the wave alone. The favicon, the touch icon and the 192 and 512 icons are the wave on the blue of the logo (the old favicon was left by the build tool).
- Touch targets: buttons, fields, icon buttons and small links are 44 pixels tall; the time of the player is 13 pixels; the seek bar has a taller hit area.
- A phone: the menu is one row that scrolls sideways and the player is two lines (what is playing and the controls, then the position), so the page keeps the screen.
- Cards that are links lift a little and their pictures grow inside the frame on hover, unless less motion is asked for.
- The provider cards have a ground of their own.
2026-11-13 12:10:54 +01:00
tgiachi
f1da4b5aaf feat(web): scaffold the React app with Vite, Tailwind and shadcn/ui
- Vite, React 19 and TypeScript in web/, Vitest with jsdom and Testing Library
- Tailwind v4 and shadcn/ui, with Figtree and Fraunces bundled locally
- npm run gen:api builds src/api/schema.d.ts from the OpenAPI spec
- dev server proxies /api to sondad (SONDA_URL, default 127.0.0.1:8080)
- mockFetch test helper that refuses unmatched requests
2026-11-12 11:15:50 +01:00