mirror of
https://github.com/thecyberlearn/quantum-ai.git
synced 2026-08-18 15:53:00 +00:00
- Replace legacy agents system with modular individual agent apps - Add agent_base framework for BaseAgent, processors, and management commands - Create weather_reporter as example individual agent with API integration - Implement simplified template structure: agent_name/templates/detail.html - Fix marketplace to display actual agents instead of placeholder - Add proper authentication flow with login redirect for agent access - Organize project structure: move tests to tests/, docs to docs/ - Update all documentation to reflect new simplified architecture - Fix URL namespace issues throughout templates and views 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
90 lines
4.7 KiB
HTML
90 lines
4.7 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>NetCop Hub - Platform</title>
|
|
<style>
|
|
body { font-family: Arial, sans-serif; margin: 0; padding: 20px; background-color: #f5f5f5; }
|
|
.container { max-width: 1200px; margin: 0 auto; }
|
|
.header { background: white; padding: 20px; border-radius: 8px; margin-bottom: 20px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
|
|
.user-info { float: right; }
|
|
.balance { background: #e8f5e8; padding: 5px 15px; border-radius: 20px; color: #2d5a2d; }
|
|
.content-section { background: white; padding: 40px; border-radius: 8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); text-align: center; }
|
|
.auth-links { margin-top: 10px; }
|
|
.auth-links a { margin-right: 15px; text-decoration: none; color: #007bff; }
|
|
.message { background: #e8f4fd; padding: 20px; border-radius: 8px; margin: 20px 0; border-left: 4px solid #007bff; }
|
|
.agents-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 30px; text-align: left; }
|
|
.agent-card { background: #f8f9fa; border: 1px solid #dee2e6; border-radius: 8px; padding: 20px; }
|
|
.agent-card h3 { margin: 0 0 10px 0; color: #333; }
|
|
.agent-card .price { color: #28a745; font-weight: bold; }
|
|
.agent-card .category { background: #e9ecef; padding: 4px 8px; border-radius: 4px; font-size: 12px; color: #6c757d; display: inline-block; margin-bottom: 10px; }
|
|
.agent-card .description { margin: 10px 0; color: #666; }
|
|
.use-button { background: #007bff; color: white; padding: 8px 16px; border: none; border-radius: 4px; text-decoration: none; display: inline-block; }
|
|
.use-button:hover { background: #0056b3; }
|
|
</style>
|
|
</head>
|
|
<body>
|
|
<div class="container">
|
|
<div class="header">
|
|
<h1>NetCop Hub - Platform</h1>
|
|
<div class="user-info">
|
|
{% if user.is_authenticated %}
|
|
<p>Welcome, {{ user.username }}!</p>
|
|
<div class="balance">Balance: {{ user_balance }} AED</div>
|
|
<div class="auth-links">
|
|
<a href="{% url 'core:marketplace' %}">Marketplace</a>
|
|
<a href="{% url 'core:wallet' %}">Wallet</a>
|
|
<a href="{% url 'authentication:logout' %}">Logout</a>
|
|
</div>
|
|
{% else %}
|
|
<div class="auth-links">
|
|
<a href="{% url 'core:marketplace' %}">Marketplace</a>
|
|
<a href="{% url 'authentication:login' %}">Login</a>
|
|
<a href="{% url 'authentication:register' %}">Register</a>
|
|
</div>
|
|
{% endif %}
|
|
</div>
|
|
<div style="clear: both;"></div>
|
|
</div>
|
|
|
|
<div class="content-section">
|
|
<h2>Welcome to NetCop Hub</h2>
|
|
<p>Your platform for AI-powered digital solutions and services.</p>
|
|
|
|
{% if featured_agents %}
|
|
<h3>Featured AI Agents</h3>
|
|
<div class="agents-grid">
|
|
{% for agent in featured_agents %}
|
|
<div class="agent-card">
|
|
<div class="category">{{ agent.get_category_display }}</div>
|
|
<h3>{{ agent.icon }} {{ agent.name }}</h3>
|
|
<div class="description">{{ agent.description }}</div>
|
|
<div class="price">{{ agent.price_display }}</div>
|
|
<div style="margin-top: 15px;">
|
|
<a href="/agents/{{ agent.slug }}/" class="use-button">Use Now</a>
|
|
</div>
|
|
</div>
|
|
{% endfor %}
|
|
</div>
|
|
|
|
<div style="margin-top: 30px;">
|
|
<a href="{% url 'core:marketplace' %}" class="use-button">View All Agents</a>
|
|
</div>
|
|
{% else %}
|
|
<div class="message">
|
|
<h3>🤖 No Agents Available</h3>
|
|
<p>Agents are being configured. Please check back later.</p>
|
|
</div>
|
|
{% endif %}
|
|
|
|
{% if user.is_authenticated %}
|
|
<p style="margin-top: 30px;">Hello {{ user.username }}! Your current balance is {{ user_balance }} AED.</p>
|
|
<p><a href="{% url 'core:wallet' %}">Manage your wallet</a> to start using agents.</p>
|
|
{% else %}
|
|
<p style="margin-top: 30px;"><a href="{% url 'authentication:login' %}">Log in</a> to access platform features.</p>
|
|
{% endif %}
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html> |