- Figma to React Landing Page
Content
Figma to React Landing Page
This project is a React application generated from a Figma design, built with Vite, TypeScript, and Tailwind CSS.
Project Structure
src/components: Shared, reusable UI components (Atoms, Molecules).src/features: Feature-specific modules, each containing its own components, pages, types, etc.landing/: Contains all components and logic for the main landing page.
src/App.tsx: Main application component.src/main.tsx: Application entry point.src/index.css: Global styles and Tailwind CSS directives.tailwind.config.js: Tailwind CSS configuration.postcss.config.js: PostCSS configuration.tsconfig.json&tsconfig.node.json: TypeScript configurations.vite.config.ts: Vite build tool configuration.
Getting Started
Prerequisites
- Node.js (version 18.x or 20.x recommended)
- npm or yarn
Installation
- Clone the repository (if applicable).
- Navigate to the project directory.
- Install dependencies:
npm install # or yarn install
Running the Development Server
npm run dev
# or
yarn dev
This will start the Vite development server, typically at http://localhost:5173.
Building for Production
npm run build
# or
yarn build
This command will type-check the project and then build the static assets into the dist directory.
Linting
npm run lint
# or
yarn lint
This will run ESLint to check for code quality and style issues.
Coding Rules & Guidelines
This project aims to follow these key principles (as per user request):
- Test-First Development: Write tests before features. (Vitest/Playwright)
- TypeScript Strict Mode: No
anytypes, define all interfaces/types. - Clean Component Architecture: Atomic Design (atoms, molecules, organisms, templates, pages). Pure, focused components.
- Feature-Based Folder Structure: Organize by features/domains.
- Clean Architecture Pattern: UI components separate from business logic.
- Dependency Injection Pattern: Pass dependencies explicitly.
- Tailwind Best Practices: Utility-first, use
@applyfor common patterns, theme consistency. - State Management Hierarchy: Local state, Context API, Redux/React Query as needed.
- Performance Optimization:
React.memo,useMemo,useCallback, code-splitting. - Error Handling Strategy: Error boundaries, try/catch, user-friendly messages.
- Accessibility Standards: Semantic HTML, ARIA, keyboard navigation, WCAG 2.1 AA.
- Code Quality Standards: Consistent naming, small functions, meaningful comments, linting.
Recommend Servers
TraeBuild with Free GPT-4.1 & Claude 3.7. Fully MCP-Ready.
MiniMax MCPOfficial MiniMax Model Context Protocol (MCP) server that enables interaction with powerful Text to Speech, image generation and video generation APIs.
WindsurfThe new purpose-built IDE to harness magic
Tavily Mcp
Visual Studio Code - Open Source ("Code - OSS")Visual Studio Code
CursorThe AI Code Editor
MCP AdvisorMCP Advisor & Installation - Use the right MCP server for your needs
Playwright McpPlaywright MCP server
BlenderBlenderMCP connects Blender to Claude AI through the Model Context Protocol (MCP), allowing Claude to directly interact with and control Blender. This integration enables prompt assisted 3D modeling, scene creation, and manipulation.
TimeA Model Context Protocol server that provides time and timezone conversion capabilities. This server enables LLMs to get current time information and perform timezone conversions using IANA timezone names, with automatic system timezone detection.
Howtocook Mcp基于Anduin2017 / HowToCook (程序员在家做饭指南)的mcp server,帮你推荐菜谱、规划膳食,解决“今天吃什么“的世纪难题;
Based on Anduin2017/HowToCook (Programmer's Guide to Cooking at Home), MCP Server helps you recommend recipes, plan meals, and solve the century old problem of "what to eat today"
Serper MCP ServerA Serper MCP Server
ChatWiseThe second fastest AI chatbot™
EdgeOne Pages MCPAn MCP service designed for deploying HTML content to EdgeOne Pages and obtaining an accessible public URL.
Jina AI MCP ToolsA Model Context Protocol (MCP) server that integrates with Jina AI Search Foundation APIs.
DeepChatYour AI Partner on Desktop
Amap Maps高德地图官方 MCP Server
Zhipu Web SearchZhipu Web Search MCP Server is a search engine specifically designed for large models. It integrates four search engines, allowing users to flexibly compare and switch between them. Building upon the web crawling and ranking capabilities of traditional search engines, it enhances intent recognition capabilities, returning results more suitable for large model processing (such as webpage titles, URLs, summaries, site names, site icons, etc.). This helps AI applications achieve "dynamic knowledge acquisition" and "precise scenario adaptation" capabilities.
Context7Context7 MCP Server -- Up-to-date code documentation for LLMs and AI code editors
AiimagemultistyleA Model Context Protocol (MCP) server for image generation and manipulation using fal.ai's Stable Diffusion model.
Baidu Map百度地图核心API现已全面兼容MCP协议,是国内首家兼容MCP协议的地图服务商。