This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This is the XChainJS organization website built with Next.js 13.5.6, React 18.2.0, and Tailwind CSS. It's a static site exported to the out/ directory for hosting on GitHub Pages. The project showcases the XChainJS cross-chain development toolkit with modern design patterns and mobile-responsive components.
yarn dev- Start development serveryarn build- Build for production (static export)yarn start- Start production server (after build)yarn lint- Run ESLint for code quality checks
yarn install- Install dependencies (project uses Yarn as package manager)
src/app/- Next.js 13 App Router pages and layoutscomponents/- Reusable React components (root level, not in src)public/- Static assets (logos, etc.)fonts/- Custom font filesout/- Built static site output for deployment
Components are organized in the root components/ directory with:
- Individual component folders (Card, Icon, Link, etc.)
- Each folder contains the component file and index.ts for exports
components/sections/for page-specific sections- Main export file at
components/index.ts
The main page is composed of modular sections:
HeroSection- Landing hero with main messagingProblemSolution- Problem/solution storyBlockchainUniverse- Interactive blockchain visualizationLivePlayground- Code playground demonstrationDeveloperCommunity- Community metrics and resources
- Tailwind CSS with custom configuration including XChainJS brand colors
- Custom CSS classes in
globals.cssfor glassmorphism effects, animations - Brand colors:
chain-blue,electric-green,cyber-purple,darkvariants - Mobile-first responsive design with touch-friendly interactions
@/*- Maps tosrc/*@components- Maps tocomponentsdirectory@fonts- Maps tofontsdirectory
Uses standard-with-typescript configuration with React-specific rules:
- Disabled prop-types (TypeScript handles this)
- Disabled explicit return types for functions
- React hooks linting enabled
- Static export enabled (
output: 'export') - CSS optimization disabled to prevent build issues
- Custom webpack configuration for CSS minimization
- Targets static hosting (GitHub Pages)
- Custom color system with XChainJS brand palette
- Extended animations and keyframes for floating/glow effects
- Mobile-responsive utilities and custom shadow effects
- Content paths include both src and root component directories
- Centralized icon components in
Icon/directory IconClassenum for type-safe icon references- SVG-based icons with consistent styling
ButtonLink- Primary CTA buttonsIconLink- Social media and external linksTextLink- In-line text links- All links handle external URLs with proper security attributes
- Fixed header with mobile hamburger menu
- Glassmorphism effects for cards and overlays
- Grid-based layouts with responsive breakpoints
- Footer with organized link sections
- All components built mobile-first
- Touch targets meet 44px minimum requirement
- Prevent zoom on input focus (16px font size minimum)
- Smooth scrolling and touch-friendly interactions
- Next.js static export for optimal loading
- Image optimization through Next.js Image component
- Custom font loading with display:swap
- Minimal JavaScript bundle
- Crisp chat widget integration
- External links to documentation, Discord, GitHub
- Social media integration (Twitter, Telegram, Discord)
- Create component in
components/sections/ - Export in
components/index.ts - Import and use in
src/app/page.tsx
- Modify color definitions in
tailwind.config.ts - Update corresponding CSS custom properties if needed
- Create SVG component in
components/Icon/icons/ - Add to IconClass enum in
components/Icon/Icon.tsx - Export in
components/Icon/icons/index.ts