> For the complete documentation index, see [llms.txt](https://docs.strike.fun/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.strike.fun/frontend/overview.md).

# Overview

Strike's web frontend is a trading terminal built with Next.js 16, Tailwind CSS, and shadcn/ui. Dark theme, inspired by Bloomberg and Polymarket.

## Stack

| Component         | Technology                                    |
| ----------------- | --------------------------------------------- |
| Framework         | Next.js 16 (App Router)                       |
| Styling           | Tailwind CSS + shadcn/ui                      |
| Wallet            | RainbowKit + WalletConnect / injected wallets |
| Chain interaction | wagmi v3 + viem v2.45                         |
| Real-time data    | Indexer WebSocket                             |
| Contract ABIs     | Auto-generated from Foundry artifacts         |

> **Note:** Users connect an external or injected wallet through RainbowKit. Transactions are signed by the user wallet; the frontend interacts with contracts through wagmi/viem.

## Pages

| Page          | Route          | Description                                   |
| ------------- | -------------- | --------------------------------------------- |
| Markets       | `/`            | Active markets with volume, spread, countdown |
| Trading       | `/markets/:id` | Full orderbook, order entry, trade history    |
| Portfolio     | `/portfolio`   | Positions, P\&L, bulk claim/redeem            |
| Market Detail | `/markets/:id` | Resolution details, price chart, lifecycle    |

## Key UX Patterns

* **Batch-aware:** countdown timer to next clearing, indicative clearing price computed client-side
* **Transaction toasts:** pending → confirmed → success/error status on all chain interactions
* **Gas guards:** estimated gas shown before confirmation, "insufficient funds" prevention
* **Real-time:** orderbook and trade feed update via WebSocket, no manual refresh needed
* **Mobile-first:** responsive breakpoints, touch-friendly order entry, PWA-ready
