You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit a6cece6
Browse filesBrowse the repository at this point in the historyBrowse files
ui: use Starlight primitives and refresh Echo theme (#462)
* ui: use Starlight primitives and refresh Echo theme
* ui: keep feature titles as headings and show go mod init
- Add FeatureCard, Starlight's Card markup with an <h3> title. Card renders
its title as a <p>, which dropped the "Why Echo" titles from the heading
outline. Pin the title's weight and letter-spacing so the global heading
rule leaves the cards looking as before.
- The install step now creates a module before `go get`, matching the
quickstart.
* ui: runnable get-started steps, card hover, and no terminal flash
- Get started: step 2 shows the complete hello-world server instead of the
route excerpt, so `go run server.go` in step 3 works. On wide screens it
takes the wide column beside Install and Run. Drop the now-unused route
region.
- Ecosystem cards: restore a hover state; the unlayered theme colors were
overriding Starlight's LinkCard hover.
- Hero terminal: hide the static command and output until the typing
script starts, so they no longer flash before being cleared. No-JS and
reduced-motion visitors still see the static state.
- Search: take the locale from Starlight's route data instead of a second
hardcoded locale list, and fail the build if a locale has no labels.
- Ask AI: the modal logo now uses the same Starlight star as the header
pill; update the comments that still said sparkle.
- Remove margin resets that .not-content already makes dead.
* ui: keep search launchpad out of page HTML and fix sponsor button
- Search: build the empty-state launchpad on the client from a shared
module again, so its markup ships once in the cached bundle instead of a
<template> in every page (about 1.4 KB gzip per page). Icon paths are
Starlight's own. Modified clicks on a quick link no longer close the
palette.
- Record the smaller page sizes in the performance baseline; the CORS pages
are back inside the old master tolerance.
- Sponsor button: drop LinkButton's markdown margins and 1.5rem icon so it
is centred and the heart matches the text.
- Hero terminal: gate the no-flash rule on a flag set by an inline script
during parsing instead of @media (scripting), which older browsers ignore.
- Get started: include the server through a file= fence so the source
checks see it, instead of a raw import.
- Footer: give the link columns a visually hidden h2 so they no longer sit
under the sponsors heading.
- Sponsor avatars: allow the GitHub avatar hosts so Astro optimizes them.
- Merge the duplicated .hh-btn rule; unlayered CSS already beats Starlight's
layered margins, so !important is not needed.
* ui: make get-started steps build on a clean machine
- Run step: `go mod tidy` before `go run`. The server imports
echo/v5/middleware, which needs golang.org/x/time; `go get` of the root
package does not record it, so the build failed with a missing go.sum
entry.
- Sponsor avatars: back to plain <img> with the ?size= 2x sources. Astro
<Image> resized them to 1x (blurry on high-DPI screens) and made every
build depend on downloading them from GitHub.
- Search: quick links always close the palette, as Starlight does for its
own result links; drop the observer's 10s cutoff, since Pagefind can
mount late in a background tab.
- Hero terminal: if the typing script never runs, reveal the static state
after 2s instead of leaving the terminal blank. Read the command from the
markup so it is written once.
- FeatureCard owns its final styles instead of copying Card's and having
terminal.css override them.
* ui: light-mode text hierarchy, hero button icons, search observer bound
- Light theme: darken gray-3 to #42566a so secondary text again sits
between gray-2 and caption gray-4 (7.3:1 vs 5.2:1 on the page background);
the two were nearly the same color.
- Hero buttons: size LinkButton's 1.5rem icons to the button text.
- Search: bound the observer to 10s of visible time, so it still stops when
Pagefind never mounts but a background tab gets the launchpad once shown.
- Launchpad labels share the English key set as a type; drop a fallback the
build already rules out and an ignore attribute Pagefind never sees.
<LinkButtonclass="hh-btn sec"variant="secondary"icon="github"iconPlacement="start"href="https://github.com/labstack/echo"target="_blank"rel="noopener noreferrer">{starsLabel} on GitHub</LinkButton>
28
26
</div>
29
-
<buttonclass="hh-install"type="button"data-copy="go get github.com/labstack/echo/v5"aria-label="Copy install command">
30
-
<spanclass="p">$</span> go get github.com/labstack/echo/v5 <iclass="ph ph-copy cp"></i>
31
-
</button>
27
+
<divclass="hh-install"><Codecode="go get github.com/labstack/echo/v5"lang="bash"frame="none"wrap /></div>
0 commit comments