Download the Frame0 design for the lock and bind UI.

To use this you need to:

  1. Get Frame0.
  2. Install and open Frame0, then open the design file.
  3. In a terminal, navigate to your Hyperapp directory.
  4. Add the Frame0 MCP server to Claude Code or Codex.
    claude mcp add frame0 -- npx -y frame0-mcp-server
    
    or
    codex mcp add frame0 -- npx -y frame0-mcp-server
    
  5. Start Claude Code or Codex.
  6. Paste in the original design prompt and ask it to implement the UI using the design.

Note you will have to tune up the UI: it is not perfect. But it is a good starting point.

Locking and binding design prompt

A mobile-first app for managing locking and binding HYPR tokens in a smart contract

Bottom bar

The bottom bar has the following tabs. Tabs can only be selected if actions have been completed on previous tabs, so it also functions as a "progress bar". Each tab has an icon and a word.

Interface views

Have a rainbowkit/wagmi connection status in the top-right.

"Connect Wallet"

Prompt user to connect wallet to proceed. Text tells the user they must connect their wallet. Button opens modal. Use rainbowkit/wagmi for modal (don't design it).

Approve

Allow approving with an input that accepts a number and a button to approve.

None approved?

Prompt user to tell them they have none approved and must approve HYPR interaction in order to lock.

Some approved?

Display the amount user has currently approved for locking in the contract and the amount they have locked (i.e. 50/100).

Lock

Allow locking with an input that accepts an amount, a duration input that can either be entered in number or opened into a calendar view (minimum lock duration is 1 month, maximum lock duration is 4 years) and a button to approve.

None locked?

Prompt user to tell them they have none locked. Tell user they cannot bind until they have locked. Tell user lock cannot be reversed until the lock time is over and it makes tokens illiquid.

Some locked?

Display the amount user has currently locked, the unlock time and remaining duration of the current lock.

Bind

None bound?

Prompt user to tell them they have none bound. Tell user binds cannot be reversed until the bind time is over.

Some bound?

Display the amounts user has currently bound to each entry, the unlock time and remaining duration of that current bind. Display a summary of binds

Original gist on GitHub