Rebuilding an Open-Source Model’s Official Homepage with LLMs: A Practical Frontend Generation Review
This article reports a hands-on experiment in which six mainstream large language models were asked to rebuild the homepage of an open-source model’s official website using only page descriptions and screenshots. It explains the five evaluation dimensions—visual fidelity, interaction completeness, responsive adaptation, code quality, and delivery rigor—and summarizes the differences observed across models. It also breaks down the key steps in a high-quality page replication task, including design-system abstraction, semantic layout, interaction-state modeling, mobile-first responsive strategy, and delivery notes, and concludes with practical implications for developers evaluating AI coding tools.
1. Background: Why Use “Rebuilding an Official Homepage” to Test LLMs?
Recently, another major open-source model suite has been released, covering base models, chat models, reasoning models, and other versions, along with complete open-source licenses and deployment documentation. Beyond the technical value of such releases, they also naturally provide an excellent test scenario. Their official pages usually have clear structure, complete interactions, and well-implemented responsive design, making them a “standard exam question” for testing the frontend generation capabilities of large language models.
So I ran an experiment: I used the same open-source model’s homepage as the replication target and gave it to six mainstream LLMs, asking each to independently complete a frontend replication based only on page descriptions and screenshots. No source code was provided, and no component library was supplied—only requirement descriptions and visual references. This maximized the simulation of a real development workflow: implementing a page from a design spec.
2. Test Design: How to Evaluate “Replication Capability” Scientifically
To make the results comparable, I defined five core evaluation dimensions before the test:
- Visual fidelity: Whether the color system, font hierarchy, and spacing rhythm match the original page.
- Interaction completeness: Whether core functions such as navigation switching, input suggestions, and button feedback work.
- Responsive adaptation: Whether the mobile layout is reasonable and whether element positions and sizes are accurate.
- Code quality: The degree of structural semantics, the way styles are organized, and maintainability.
- Delivery rigor: Whether the model proactively explains acceptance methods, compatibility considerations, and other engineering details.
Each dimension used a score range of 1 to 5, evaluated manually against the original site item by item. To ensure fairness, all six models used exactly the same prompt template and had to deliver within a single-turn conversation, with no human intervention or modification during the process.
3. Test Results: Details Determine Success
Overall, the gap between the six models was much larger than expected. The model with the best overall performance and the most stable replication fidelity won on two levels.
The first level was visible fidelity. The page it replicated was visually almost indistinguishable from the original. Even more impressive was the mobile adaptation. On mobile, the position and size of the input field matched the original site almost exactly. This is not easy for code generated purely by a model, because responsive breakpoint selection and flexbox scaling ratios require a real understanding of design intent rather than mechanically piling up styles.
The second level was invisible rigor. In its delivery report, it proactively noted engineering details such as “the shared link needs to be verified in a different browser.” This may seem minor, but it reflects the model’s depth of understanding of the actual frontend runtime environment. Many models only output code and do not tell users under what conditions to verify it or what compatibility boundaries may exist. For team collaboration, this ability to “deliver with explanations” is extremely valuable.
By contrast, the other models each had shortcomings: some were visually close but lacked interactions, with input fields not responding to clicks; some were perfect on desktop but had broken mobile layouts; and others mixed in large amounts of inline styles, making the code almost impossible to maintain for a second round.
4. Technical Breakdown of Replication Tasks
From an engineering perspective, a high-quality page replication usually includes the following key steps. Whether an LLM can handle each step well is exactly where capability differences come from.
- Structuring visual information: Break down screenshots into layout grids, color variables, and type scales. Strong models first abstract a design system—for example, defining a set of CSS custom properties—before writing the page, rather than hard-coding color values element by element.
A representative best practice:
:root {--color-primary: #4d6bfe;--color-bg: #ffffff;--font-size-base: 16px;--space-unit: 8px;}
Semantic layout: Use semantic tags such as
header,nav,main, andsectionto build the skeleton. This helps with SEO and also makes future maintenance easier.Interaction-state modeling: Complete replication is not just about “looking similar”; it also includes restoring hover, focus, disabled, loading, and other states. The best-performing model in the test often proactively completed these edge states for components.
Responsive strategy: Prefer a mobile-first media query strategy, combined with relative units such as
rem,vw, and percentages, to ensure consistency across devices.Delivery notes: This includes the acceptance environment, known limitations, and suggestions for future extension. This is the dividing line between “it runs” and “it is usable.”
5. Implications for Developers
This test left me with three thoughts.
First, LLM frontend capabilities have already shown clear stratification. Top-tier models can handle the complete path from design spec to usable page, not just generate code snippets. For individual developers, choosing the right tool can significantly compress prototype development cycles. For enterprises, this means frontend low-code development is moving from concept to practical implementation.
Second, LLMs cannot be evaluated by a single metric alone. Just as “can write HTML” is not enough, visual fidelity, interaction completeness, and delivery rigor must be combined to truly reflect a model’s value in real workflows. When selecting tools, teams should use real pages from their own business for small-scale regression testing; that is more reliable than any leaderboard.
Third, the open-source ecosystem and toolchains complement each other. Open-source models lower the technical barrier, while high-quality development tools accelerate validation and implementation of open-source solutions. For example, Baidu AI Cloud offers general AI development and compute services—such as model development platforms, GPU compute, and container and monitoring cloud products—that can provide general infrastructure support for private deployment and secondary development of such open-source models, helping teams focus on business innovation itself.
6. Conclusion
“Rebuilding an official homepage” may look like a fun experiment, but it is actually a stress test of LLMs’ engineering capabilities. The results show that what truly creates the gap is not whether a model can write code, but the depth of its understanding of design intent, the rigor of its attention to engineering details, and its complete delivery-oriented mindset. For teams currently evaluating AI coding tools, it is worth running the same test on the page you know best; the answer is often more intuitive than any promotional page.
