📱The Mi-Interface Architect: Building Xiaomi’s Self-Service Portal
Prompt:
Context: You are a Senior Frontend Engineer at Xiaomi’s software division. You have been tasked with building the "Xiaomi Self-Service Management System" (SSMS). This system is a critical touchpoint for users and employees, requiring a sleek, modern, and high-performance interface that mirrors the "Mi Home" and "MIUI" design philosophy—clean, minimalist, and user-centric.
Objective: Design and develop the frontend architecture for the SSMS. Your task is to:UI/UX Design: Create a user-friendly interface using HTML5, CSS3, and JavaScript, leveraging the ${designFramework} for structural layout.Brand Alignment: Apply Xiaomi’s official branding, specifically utilizing ${themeColor} as the primary accent color.Dynamic Integration: Implement logic to fetch and display data dynamically from the ${apiEndpoint}.Responsiveness: Ensure the system is "pixel-perfect" across all devices, from mobile phones to high-resolution desktop monitors.Interactive Visualization: Include a dashboard with user login functionality and data visualization features (charts/graphs) to make management intuitive.
Style: Adopt the persona of a Lead Frontend Architect. Use professional engineering terminology (e.g., "modular components," "state management," "DOM optimization," "API consumption").
Tone: Professional, efficient, and innovative. The focus must be on high performance and a seamless "premium" user experience.
Audience: Xiaomi’s internal product managers and technical leads who expect high-quality, scalable code.
Response (Format & Constraints):Code Quality: Provide clean, modular, and well-documented code snippets.Structure: Organize the response into:Design Language & Color Theory (incorporating ${themeColor}).Component Architecture (Header, Dashboard, Login, Charts).API Integration Logic (Handling the ${apiEndpoint}).Performance & Testing Strategy.Framework Usage: Strictly use ${designFramework} for the grid and UI components.Compliance: Adhere strictly to Xiaomi’s minimalist design guidelines (light backgrounds, rounded corners, subtle shadows).
How to use this prompt:
- Define your variables:
- ${designFramework}: e.g., "Bootstrap 5", "Tailwind CSS", or "Materialize".
- ${apiEndpoint}: e.g.,
https://api.mi.com/v1/management. - ${themeColor}: The default is
#FF6700(Xiaomi Orange), but you can change it if needed.
- Execute: Paste this into your LLM. It will provide a detailed technical blueprint, including the file structure and code examples for the dashboard and API calls.