Skip to content

Replace the landing page with the exported ICP MCP design - #78

Merged
aterga merged 1 commit into
mainfrom
claude/landing-page-redesign-6fafab
Jul 24, 2026
Merged

aterga merged 1 commit into
mainfrom
claude/landing-page-redesign-6fafab

Conversation

@MRmarioruci

Copy link
Copy Markdown
Contributor

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 via include_str! as a const &str;
    dropped the __CSS__/__LOGO__ splice and the LazyLock (the page no longer
    needs the stylesheet/logo injected). Updated the doc comment.
  • src/assets/index.css: deleted — orphaned now that the bundle carries its own
    CSS. dfinity-logo.svg stays; the connect pages still use it via auth.rs.

Trade-offs worth a reviewer's eye

  • The page is a build artifact, not editable source. Copy/tool/URL changes
    are made in the Claude Design project and re-exported, not hand-edited here.
  • ~1.7 MB and a brief client-side "Unpacking…" state on load, vs. the prior
    ~27 KB instant-render page. Inherent to the self-contained-bundle format.

Testing

  • cargo build --bin imcp2 — clean (2 pre-existing tools.rs warnings, unrelated).
  • Ran the binary: GET / → 200, text/html, 1,695,090 bytes, byte-identical to the source.
  • Rendered over HTTP in a browser: fonts, animated hero diagram, dark-mode toggle — no console errors.

Checklist

  • I have read the Contributing guidelines.
  • Docs (comments) updated for the user-visible change (main.rs doc comment).
  • No secrets, credentials, or internal-only information are included.

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]>
@MRmarioruci

Copy link
Copy Markdown
Contributor Author
image

@MRmarioruci
MRmarioruci marked this pull request as ready for review July 24, 2026 14:08
@MRmarioruci
MRmarioruci requested a review from a team as a code owner July 24, 2026 14:08
Copilot AI review requested due to automatic review settings July 24, 2026 14:08
@MRmarioruci
MRmarioruci requested a review from aterga July 24, 2026 14:09
@aterga
aterga merged commit 8d65f31 into main Jul 24, 2026
2 checks passed
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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants