Repository navigation
Redesign the Core NWB Tools page - #205
Draft
bendichter wants to merge 2 commits into
Draft
bendichter wants to merge 2 commits into
bendichter wants to merge 2 commits into
Conversation
Lead with the six tools most users need, shown as denser horizontal cards with a task label, language tag and install one-liner. Group the remaining tools for extension authors and developers into compact columns, splitting schemas and specifications out of "Extending NWB". Also shrink the hero, add an in-page nav, constrain the intro width, darken link orange on tools pages to meet WCAG AA, and serve tool images resized as lazy-loaded WebP. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
✅ Deploy Preview for nwborg ready!
To edit notification comments on pull requests, go to your Netlify project configuration. |
Every interior page banner now sizes to its title (230px minimum, down from a fixed 350px) and scales the title on small screens. The homepage hero is unchanged. Replaces the tools-only hero--compact class. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Redesigns https://nwb.org/tools/core/ so it leads with what most visitors need instead of presenting 15 equal cards. Page height drops from about 4,480px to 2,680px on desktop (1440px wide) and from about 9,450px to 5,770px on a phone (390px wide).
The Netlify deploy preview shows the result at
/tools/core/.Changes
Structure and content
schemacategory.task,tech(language/type tag) andinstall(one-liner).installis set only where the tool page already documents a single command (PyNWB, NeuroConv, NWB Inspector).Layout
clamp()so it no longer runs edge to edge on phones. Long titles and the Supporting NWB subtitle grow the banner rather than overflow it. The homepage hero is unchanged.page_navfront matter list).Cards and links
Accessibility and performance
#d17128(about 3.4:1 on white) to#b35a14(about 4.8:1), and card titles use the navy.How it is built
tool-gridshortcode gainsvariant(carddefault,featured,compact),title,id, and accepts comma-separated categories. Newtool-columnswrapper shortcode.static/imagesis additionally mounted asassets/imagesinhugo.yamlso templates can resize images without moving any files. GIFs and anything not found there are emitted unchanged.Effect on other pages
.hero:not(.homeHero)), so no other layouts are edited. The Community Gallery's own banner-height overrides are removed so it matches.Not done
Testing
/tools/core/at 1440px and 390px wide, and/tools/community/at 1440px wide: no horizontal overflow and no broken images.🤖 Generated with Claude Code