Repository navigation
Conversation
Contributor
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars.
|
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.
Adds
/documentsfrom the Documenti Figma design, with four document categories and section navigation. Resources → Documenti makes the page discoverable.The eye opens an internal PDF viewer in the same tab. It includes selectable text, zoom from 50% to 300%, reset, page navigation, return to the catalog, loading/error states and download. Download icons on both the catalog and viewer save the PDF without navigating away. The viewer supports mobile layouts and confines scrolling at higher zoom levels to the document viewport.
Reuses Hero, Glass, Button, Feather icons and design tokens. Adds a reusable DocumentCategoryCard and a typed mock catalog. React-PDF loads only on the client; its matching PDF.js worker, fonts and rendering assets are copied locally during dev/build, without a CDN dependency.
All ten PDFs are demonstration files, including the mock budgets and user rules. The page and PDFs identify this content as non-official. The introductory PDF includes two pages to exercise pagination. No backend or admin integration is included.
This branch starts directly from main and has no dependency on the visual-refinement PR stack.
Validation: production build and standalone viewer smoke check; TypeScript; Biome CI; existing Node tests; browser checks on desktop and 320px mobile; PDF rendering and selectable text; multi-page navigation; zoom; back navigation; actual downloads from both catalog and viewer; missing-PDF error state. All ten PDF endpoints were checked for HTTP 200 and application/pdf.
Design: https://www.figma.com/design/oSBlivb9Gm7H3ZkSdAtUHx/PoliNetwork-Website?node-id=6516-8013&m=dev