# đ setup-guide.md â NetCop AI Hub Agent Frontend Refactor This guide will help you modularize your AI agent pages using the **Data Analyzer layout as the base template** and build a reusable, theme-driven UI system. --- ## â 1. Define Folder Structure Create the following Django template structure: ``` templates/ âââ base_agent.html âââ agents/ â âââ data_analyzer.html â âââ weather_reporter.html âââ components/ â âââ agent_header.html â âââ wallet_card.html â âââ how_it_works_widget.html â âââ quick_agents_panel.html â âââ results_block.html â âââ processing_status.html â âââ ... (other shared components) static/ âââ css/ âââ theme.css ``` --- ## đ¨ 2. Create `theme.css` Save this as `static/css/theme.css` and link it in `base_agent.html`. > This file includes unified tokens: spacing, colors, radius, shadows, typography, responsive styles. (Refer to the generated `theme.css` in the conversation.) --- ## đ 3. Create `base_agent.html` ```django {% extends "base.html" %} {% load static %} {% block title %}{{ agent_title }} - NetCop AI Hub{% endblock %} {% block extra_css %} {% endblock %} {% block content %}
{{ agent_subtitle }}