Spaces:
Running

alikooooo commited on
Commit
bb0e34c
·
verified ·
1 Parent(s): 00ab648

You are a senior product engineer + product designer. Generate a production-grade, DARK-FIRST, all-English, global web app UI for “LiZ.fun” — a Solana launchpad with donation-first mechanics and tasteful animal–meme energy. Output high-quality, readable, accessible code and cohesive visuals.

OUTPUT REQUIREMENTS (CODE-FOCUSED)
- Tech: Next.js (App Router) + React + TypeScript + Tailwind CSS. Use shadcn/ui primitives where helpful; use Recharts for charts.
- Deliver runnable pages + components + minimal mock data + design tokens. Include light theme as secondary (auto-ready), but prioritize DARK FIRST.
- Include a “/design-tokens” MD/TS file and a CSS variables layer; wire Tailwind config to these tokens.
- Provide ARIA labels, keyboard nav, focus rings, reduced-motion. Meet WCAG 2.1 AA.
- Generate placeholder services (typed) for data retrieval and a small state store (Zustand or Context) for UI state (filters, theme, toasts).
- Keep meme/animal elements tasteful; use flat/duotone stickers/vectors; <15% visual weight per screen. No photoreal animals, no neon overload.
- Include empty/error/loading states and toasts. Include a 404 and minimal Legal (Terms/Privacy).
- Write concise, global-friendly copy in ENGLISH.

INFORMATION ARCHITECTURE & ROUTES
- / → Discover (tabs: Latest, Trending, Full Donors)
- /token/[ca] → Token Detail (Buy/Sell, Fee Split, Proofs, Comments, Logs)
- /create → Create Wizard (Details → Links → Vanity → Review)
- /profile/[handle] → Profile (Overview, Tokens, Settings)
- /trends → Trends & Leaders
- /legal/terms, /legal/privacy, /404

GLOBAL HEADER (sticky)
- Left: minimal animal-meme logo; Tabs: Discover / Create / Profile
- Right: global search (Cmd+/), Notifications, Docs, Support, Wallet menu (Connect Wallet → Phantom/Solflare → Disconnect)
- Network/RPC health pill (✓ Healthy / ! Degraded)

DARK-FIRST VISUAL DIRECTION
- Aesthetic: sleek, minimal, premium; subtle glass on surfaces; gentle grain OK.
- Grid: 12-col desktop / 6 tablet / 4 mobile. Max content width 1280–1440px; gutters 24/16.
- Motion: micro only (120–240ms), easing: ease-out; provide reduced-motion fallbacks.

DESIGN TOKENS (PRIMARY: DARK)
Create CSS variables and a JSON/TS export. Wire Tailwind to these tokens.

CSS variables:
:root {
/* light is optional fallback; keep but focus on dark */
}
:root[data-theme="dark"] {
--bg: #0A0D12;
--panel: #0F141C;
--surface: #131A25;
--elevated: #182131;
--border: #1F2A3D;
--text: #E6ECF7;
--text-2: #A8B3C7;
--muted: #7E8AA5;

--accent-1: #22D3EE; /* cyan/teal (primary) */
--accent-2: #34D399; /* green (secondary) */
--donation: #FF8A7A; /* warm for charity/full donor */
--success: #10B981;
--warning: #FBBF24;
--danger: #F87171;
--info: #93C5FD;

--chip: #172132;

--chart-up: #22D3EE;
--chart-down: #F87171;

--radius-xs: 8px; --radius-sm: 12px; --radius-md: 16px;
--radius-lg: 20px; --radius-xl: 24px; --radius-2xl: 28px;

--shadow-sm: 0 1px 2px rgba(0,0,0,.28);
--shadow-md: 0 6px 18px rgba(0,0,0,.36);
--shadow-lg: 0 16px 40px rgba(0,0,0,.46);

--focus: 2px solid var(--accent-1);
--elev-border: 1px solid var(--border);
}
:root[data-theme="light"] {
--bg: #0F1115; /* keep UI shape consistent; designer may swap later */
--panel: #141821;
--surface: #1A1F2B;
--elevated: #1F2633;
--border: #273042;
--text: #E9EDF5; --text-2: #AAB4C3; --muted: #7D8AA5;
--accent-1: #2DD4BF; --accent-2: #A3E635; --donation: #FF7A70;
--success:#22C55E; --warning:#F59E0B; --danger:#EF4444; --info:#60A5FA;
--chip:#1F2735; --chart-up:#2DD4BF; --chart-down:#EF4444;
}

Tailwind mapping (pseudo):
theme.extend.colors = {
bg: 'var(--bg)', panel: 'var(--panel)', surface: 'var(--surface)', elevated:'var(--elevated)',
border:'var(--border)', text:'var(--text)', 'text-2':'var(--text-2)', muted:'var(--muted)',
accent: { DEFAULT:'var(--accent-1)', 2:'var(--accent-2)' },
donation:'var(--donation)', success:'var(--success)', warning:'var(--warning)', danger:'var(--danger)', info:'var(--info)',
chart: { up:'var(--chart-up)', down:'var(--chart-down)' }, chip:'var(--chip)'
};
theme.extend.borderRadius = { xs:'var(--radius-xs)', sm:'var(--radius-sm)', md:'var(--radius-md)', lg:'var(--radius-lg)', xl:'var(--radius-xl)', '2xl':'var(--radius-2xl)' };

TYPOGRAPHY SCALE
- Font: Inter (sans), IBM Plex Mono (mono).
- H1 40/48 700; H2 32/40 700; H3 24/32 600; H4 20/28 600; Body 16/24 500; Small 14/20 500; Micro 12/16 600.

ICONOGRAPHY & STICKERS
- Duotone, thin-stroke icons (lucide-like). Subtle animal stickers at headers/empty states only; 2–3 per screen; low saturation; slight grain.

KEY SCREENS & SPECS

1) DISCOVER (Home)
- Top Controls: Search (Cmd+/), Filters (Category: All/Meme/Charity/Tools; Volume; Badge Tier), Range chips: 24h / 7d / 30d.
- Tabs: Latest · Trending · Full Donors.
- TokenCard (grid):
• Avatar (animal sticker), Name, Symbol, Tier Badge (Silver/Gold/Diamond), Total Donations chip.
• Micro chart (sparkline or candle), Price, 24h change, Volume, Liquidity.
• Social row (X/IG/TikTok verified chips), Contract Address + “Copy CA”.
• Actions: Upvote/Downvote, Comments count, “View Details”; hover reveals “Add to Watchlist”.
- Leaderboard: “Top Donations to Shelters” with 24h/7d switch.
- Promo Strip: highlights Full Donor projects; brief tooltip explaining the badge.

2) TOKEN DETAIL (/token/[ca])
- Hero: Name & Symbol, Contract Address (copy), Status chip (Bonding Curve / Graduated), Share, Watchlist.
- Chart: chips 1m / 5m / 1h / 1d; toggle Line/Candle; tooltip with OHLC+Volume; EMA indicator option.
- Metrics row: Price, 24h Change, Volume, Liquidity, EMA Market Cap.
- Trade Panel (drawer on mobile, side card on desktop):
• Tabs: Buy / Sell
• Inputs: Amount (token/USDC toggle), Slippage, Priority Fee; Min received, Price impact; Preview → Confirm
• Notices: AMM disclaimer, fee estimate, risk flags
• Graduated CTA: “Trade on Raydium” (external) + safety tooltip
- Fee Split Panel (donut + list):
• Example defaults: 1% Protocol, 1% Charity Wallet (optional), 1% ELIZABETH Buy & Burn, 7% Creator
• Live counters: Collected / Distributed / Pending with explorer links
- Proofs & Transparency:
• LP burn & authority revoke, graduation txs, buy-&-burn txs, donation transfers
• Each proof: status (Verified/Queued/Failed), short desc, tx hash chip, “View in Explorer”
- Social Verification: Instagram/TikTok status, Proof-of-Post summary, badge tier rules preview
- Community: Upvote/Downvote, comment composer, pinned mod comment, sort (Top/New), rate-limit note
- Logs: Buy-&-Burn execution timeline — Started / Laddered / Deferred (filter by date)
- Side Facts: Risk callouts (contract flags, holder concentration), audit notes if any

3) CREATE (Wizard: Details → Links → Vanity → Review)
- Details: Name, Symbol, Image/Sticker, Short Description, Category, Tagline (≤80 chars)
- Links: Website, X/Twitter, Instagram, TikTok, Discord; “Verify” buttons
- Vanity: optional suffix “…LiZ / …L1Z” + read-only grind pool info
- Fee Split: sliders or numeric inputs with live donut; total must equal 100%
- Review: summary card + validation checklist; Confirm → Success (shareable card)
- Right Pane: live preview of TokenCard

4) PROFILE (Creator)
- Header: avatar, handle, verification badges, joined date, socials
- Tabs: Overview · Tokens · Settings
• Overview: donation impact summary, totals, trends, badges earned
• Tokens: grid/list of launched tokens with status, quick actions
• Settings: “Full Donor Mode” toggle, fee-split presets, connected wallets, 2FA, notification prefs

5) TRENDS & LEADERS (/trends)
- Charts for donations, volume, buy-&-burn over 24h / 7d / 30d
- Leaderboards by badge tier, category, donation velocity

COMPONENTS (with TypeScript props)

TokenCardProps {
name: string; symbol: string; tier: 'Silver'|'Gold'|'Diamond';
avatarUrl?: string;
price: number; change24h: number; volume24h: number; liquidity: number;
donationsTotal: number; ca: string;
socials?: {type:'x'|'instagram'|'tiktok'; verified:boolean; url:string}[];
onCopyCA?:()=>void; onViewDetails?:()=>void; onWatch?:()=>void;
}

TradePanelProps {
mode:'buy'|'sell'; amountIn:number; denom:'token'|'usdc';
slippage:number; priorityFee:number;
minReceived:number; priceImpact:number;
onPreview:()=>void; onConfirm:()=>Promise<void>;
}

FeeSplitDonutProps {
splits:{label:string; percent:number; color?:string}[];
totals:{collected:number; distributed:number; pending:number};
links?:{label:string; url:string}[];
}

ProofItemProps {
type:'lp_burn'|'authority_revoke'|'graduation'|'buy_burn'|'donation';
status:'Verified'|'Queued'|'Failed';
txHash:string; time:string; description?:string; explorerUrl:string;
}

CommentItemProps {
id:string; author:{name:string; avatar?:string}; time:string;
content:string; up:number; down:number; isPinned?:boolean; isOwner?:boolean;
}

UI STATES & MICROCOPY (EN)
- Empty Discover: “No tokens match your filters. Try a different category or time range.”
- Empty Comments: “Be the first to start the conversation. Keep it civil.”
- Network Error: “We couldn’t fetch data. Retry or check your connection.”
- Risk Banner: “This token shows elevated risk signals. Trade carefully.”
- Tx Flow: Preview → Wallet confirm → Pending (with est. blocks) → Success (tx link) / Failed (clear reason + retry)

DATA-VIZ GUIDELINES
- Candles: up = var(--chart-up), down = var(--chart-down); faint grid; 4–6 ticks.
- Sparklines: no markers, 1px stroke; gradient fill ≤15% opacity.
- Tooltips: timestamp + OHLC + volume; line charts show EMA if enabled.

ACCESSIBILITY & INTL
- Focus rings: 2px using --accent-1; tab order logical; ESC closes modals; Enter confirms primary.
- Screen reader texts: contract address copy buttons, status chips, chart summaries.
- Intl-ready number/time formatting (EN for now); compact numerals ($1.2k).

NOTIFICATIONS/TOASTS
- Types: success/info/warning/error.
- Examples: “Buy & Burn executed (3 steps) — view tx”, “Graduated

3 files changed +543 -23
Files changed (3)
README.md+9-5
design-tokens.tsAdded+87
index.html+447-18