Repository navigation
Replace the landing page with the exported ICP MCP design - #78
Merged
Merged
Conversation
Swap the hand-authored root page for the self-contained design bundle exported from Claude Design. The bundle is one HTML document that inlines its own fonts, images, styles, and render runtime and unpacks itself client-side, so it stays self-contained (no external fonts/scripts/images) while delivering the richer editorial look, animated hero diagram, dark-mode toggle, and step carousel. - src/assets/index.html: replace with the exported bundle. - src/main.rs: serve it directly via include_str! as a const; drop the __CSS__/__LOGO__ splice and the LazyLock now that the page carries its own styles and mark. Update the doc comment. - src/assets/index.css: delete (orphaned; the bundle carries its own CSS). Co-Authored-By: Claude Opus 4.8 <[email protected]>
Contributor
Author
MRmarioruci
marked this pull request as ready for review
July 24, 2026 14:08
5 tasks done
aterga
pushed a commit
that referenced
this pull request
Jul 28, 2026
Resolve two conflicts from main's landing-page redesign (#78/#79) and the INDEX_HTML const change: - src/main.rs: keep `let mut app` (needed for the conditional /mcp-beta mount) and take main's `Html(INDEX_HTML)` (INDEX_HTML is now a &str const, not a LazyLock<String>). - src/assets/index.html: take main's exported design bundle, then re-apply this branch's endpoint change within it — the production connector URL becomes https://mcp.internetcomputer.org/mcp (5 occurrences; /mcp-prod is removed by this branch and must not be advertised), and the beta-testing hint becomes https://mcp.beta.id.ai/mcp-beta. cargo test: 139 lib + 7 router + 1 doctest passing. Co-Authored-By: Claude Opus 4.8 <[email protected]> Claude-Session: https://claude.ai/code/session_014T9N8USDfNK5yzznPGg7Ym
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
Replaces the hand-authored root landing page with the self-contained design
bundle exported from Claude Design. The new page keeps the connect flow's ICP
identity (parchment grid, editorial serif, rust accent, "Hosted by DFINITY")
but adds a richer editorial layout, an animated hero network diagram, a
dark-mode toggle, and a three-step "Enable it" carousel.
The export is a single HTML document that inlines its own fonts, images, styles,
and render runtime as an embedded resource bundle and unpacks itself
client-side. So despite the richer look, the page stays self-contained — no
external fonts, scripts, or images — and is served straight from
include_str!.Related issues
Changes
src/assets/index.html: replaced with the exported design bundle (~1.7 MB,self-contained; carries its own fonts/images/styles/runtime).
src/main.rs: serve the bundle directly viainclude_str!as aconst &str;dropped the
__CSS__/__LOGO__splice and theLazyLock(the page no longerneeds the stylesheet/logo injected). Updated the doc comment.
src/assets/index.css: deleted — orphaned now that the bundle carries its ownCSS.
dfinity-logo.svgstays; the connect pages still use it viaauth.rs.Trade-offs worth a reviewer's eye
are made in the Claude Design project and re-exported, not hand-edited here.
~27 KB instant-render page. Inherent to the self-contained-bundle format.
Testing
cargo build --bin imcp2— clean (2 pre-existingtools.rswarnings, unrelated).GET /→200,text/html, 1,695,090 bytes, byte-identical to the source.Checklist
main.rsdoc comment).