From ce332736e5354f8a236994db41b477c0fe77d3df Mon Sep 17 00:00:00 2001 From: Claude Date: Sat, 12 Jul 2025 02:47:12 +0530 Subject: [PATCH] Fix button visibility issues and improve UI consistency MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Fix secondary buttons with white background/border invisibility - Improve disabled button states with proper contrast ratios - Update form element borders for better visibility - Establish unified color system with CSS variables - Replace 11 random gradient classes with 4 professional ones - Fix authentication page styling and button definitions - Ensure accessibility compliance with visible interactive elements 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- .gitignore | 1 + core/urls.py | 1 + core/views.py | 16 + .../templates/data_analyzer/detail.html | 88 +- .../job_posting_generator/detail.html | 74 +- netcop_hub/settings.py | 4 +- .../social_ads_generator/detail.html | 76 +- static/css/base.css | 88 +- static/css/homepage.css | 802 ++++++++++++++++++ static/css/marketplace.css | 362 ++++++++ templates/authentication/login.html | 405 +++++++-- templates/authentication/profile.html | 148 ++-- templates/authentication/register.html | 557 ++++++++++-- templates/base.html | 5 +- templates/core/homepage.html | 488 +++++++++-- templates/core/marketplace.html | 274 +++--- templates/core/pricing.html | 212 +++++ templates/core/wallet.html | 375 ++++++-- templates/core/wallet_topup.html | 453 ++++++++-- .../templates/weather_reporter/detail.html | 80 +- 20 files changed, 3780 insertions(+), 729 deletions(-) create mode 100644 static/css/homepage.css create mode 100644 static/css/marketplace.css create mode 100644 templates/core/pricing.html diff --git a/.gitignore b/.gitignore index 8ad6560..2f2142b 100644 --- a/.gitignore +++ b/.gitignore @@ -230,3 +230,4 @@ secrets.json # NextJS frontend directory nextjs/ netcop-ai-hub/ +temp/ \ No newline at end of file diff --git a/core/urls.py b/core/urls.py index 39a09d1..b0031d3 100644 --- a/core/urls.py +++ b/core/urls.py @@ -6,6 +6,7 @@ app_name = 'core' urlpatterns = [ path('', views.homepage_view, name='homepage'), path('marketplace/', views.marketplace_view, name='marketplace'), + path('pricing/', views.pricing_view, name='pricing'), path('agents//', views.agent_detail_view, name='agent_detail'), path('wallet/', views.wallet_view, name='wallet'), path('wallet/topup/', views.wallet_topup_view, name='wallet_topup'), diff --git a/core/views.py b/core/views.py index 9dd9696..1133aa7 100644 --- a/core/views.py +++ b/core/views.py @@ -51,6 +51,22 @@ def marketplace_view(request): return render(request, 'core/marketplace.html', context) +def pricing_view(request): + """Pricing page for non-logged-in users""" + # If user is already logged in, redirect to wallet top-up + if request.user.is_authenticated: + return redirect('core:wallet_topup') + + # Get sample agents to show pricing context + sample_agents = BaseAgent.objects.filter(is_active=True).order_by('name')[:4] + + context = { + 'sample_agents': sample_agents, + } + + return render(request, 'core/pricing.html', context) + + def agent_detail_view(request, agent_slug): """Agent detail view - redirect to specific agent app""" try: diff --git a/data_analyzer/templates/data_analyzer/detail.html b/data_analyzer/templates/data_analyzer/detail.html index 5a869e8..5f95a73 100644 --- a/data_analyzer/templates/data_analyzer/detail.html +++ b/data_analyzer/templates/data_analyzer/detail.html @@ -18,7 +18,7 @@ /* Page background */ .data-analyzer-page { - background: linear-gradient(135deg, #f6f8ff 0%, #e8f0fe 50%, #f0f7ff 100%); + background: var(--gradient-hero); min-height: calc(100vh - 80px); padding: clamp(20px, 5vw, 40px); width: 100vw; @@ -53,7 +53,7 @@ .section-title { font-size: clamp(16px, 4vw, 18px); font-weight: 600; - color: #1f2937; + color: var(--text-primary); margin-bottom: clamp(12px, 3vw, 16px); } @@ -61,7 +61,7 @@ .form-input { width: 100%; padding: clamp(12px, 3vw, 16px) clamp(16px, 4vw, 20px); - border: 2px solid #e5e7eb; + border: 2px solid var(--border-medium); border-radius: clamp(8px, 2vw, 12px); font-size: clamp(14px, 3.5vw, 16px); transition: border-color 0.2s ease; @@ -71,39 +71,39 @@ .form-input:focus { outline: none; - border-color: #10b981; + border-color: var(--success-green); } .help-text { font-size: clamp(12px, 3vw, 14px); - color: #6b7280; + color: var(--text-secondary); } /* File upload zone */ .file-upload-zone { - border: 2px dashed #d1d5db; + border: 2px dashed var(--border-medium); border-radius: clamp(12px, 3vw, 16px); padding: clamp(24px, 6vw, 40px); text-align: center; transition: all 0.3s ease; - background: #f9fafb; + background: var(--background-light); cursor: pointer; margin-bottom: clamp(12px, 3vw, 16px); } .file-upload-zone.dragover { - border-color: #10b981; - background: #f0fdf4; + border-color: var(--success-green); + background: rgba(16, 185, 129, 0.1); } .file-upload-zone:hover { - border-color: #10b981; - background: #f0fdf4; + border-color: var(--success-green); + background: rgba(16, 185, 129, 0.1); } .file-preview { - background: #f0fdf4; - border: 1px solid #86efac; + background: rgba(16, 185, 129, 0.1); + border: 1px solid rgba(16, 185, 129, 0.5); border-radius: 8px; padding: 12px; margin-top: 12px; @@ -124,7 +124,7 @@ align-items: center; gap: clamp(8px, 2vw, 12px); padding: clamp(12px, 3vw, 16px); - border: 2px solid #e5e7eb; + border: 2px solid var(--border-light); border-radius: clamp(8px, 2vw, 12px); cursor: pointer; background: white; @@ -133,8 +133,8 @@ } .radio-option.selected { - border-color: #10b981; - background: #f0fdf4; + border-color: var(--success-green); + background: rgba(16, 185, 129, 0.1); } .radio-option input[type="radio"] { @@ -144,10 +144,10 @@ /* Processing status */ .processing-status { padding: clamp(16px, 4vw, 20px); - background: #f0fdf4; - border: 1px solid #10b981; + background: rgba(16, 185, 129, 0.1); + border: 1px solid var(--success-green); border-radius: clamp(8px, 2vw, 12px); - color: #047857; + color: var(--success-dark); font-weight: 600; text-align: center; margin-bottom: clamp(16px, 4vw, 24px); @@ -172,14 +172,14 @@ } .results-content { - background: #f8fafc; - border: 1px solid #e2e8f0; + background: var(--background-page); + border: 1px solid var(--border-light); border-radius: 12px; padding: 24px; margin-bottom: 20px; white-space: pre-line; line-height: 1.7; - color: #374151; + color: var(--text-primary); font-size: 15px; } @@ -208,16 +208,16 @@ } .btn-primary { - background: linear-gradient(135deg, #10b981 0%, #059669 100%); + background: var(--gradient-success); color: white; flex: 1; min-width: 120px; } .btn-secondary { - background: white; - color: #374151; - border: 2px solid #e5e7eb; + background: var(--background-subtle); + color: var(--text-primary); + border: 2px solid var(--border-medium); flex: 1; min-width: 120px; } @@ -227,9 +227,11 @@ } .btn:disabled { - background: #9ca3af; + background: var(--border-strong); + color: white; cursor: not-allowed; transform: none; + opacity: 0.6; } /* Wallet sidebar */ @@ -241,13 +243,13 @@ .wallet-balance { font-size: clamp(24px, 6vw, 28px); font-weight: 700; - color: #1f2937; + color: var(--text-primary); margin-bottom: 8px; } .balance-label { font-size: clamp(14px, 3.5vw, 16px); - color: #6b7280; + color: var(--text-secondary); margin-bottom: clamp(16px, 4vw, 20px); } @@ -267,13 +269,13 @@ margin: 0 0 8px 0; font-size: 14px; font-weight: 600; - color: #047857; + color: var(--success-dark); } .usage-info ul { margin: 0; font-size: 12px; - color: #374151; + color: var(--text-primary); line-height: 1.4; list-style: none; padding-left: 0; @@ -289,7 +291,7 @@ content: "•"; position: absolute; left: 0; - color: #10b981; + color: var(--success-green); } /* Responsive */ @@ -322,10 +324,10 @@
📊
-
+
Choose or drag your data file here
-
+
Supports PDF, CSV, Excel files (up to 10MB)
@@ -340,11 +342,11 @@ -
+
Quick overview and key insights
@@ -382,7 +384,7 @@
Detailed Analysis
-
+
Comprehensive statistical analysis
@@ -395,7 +397,7 @@
Statistical Analysis
-
+
Advanced statistics and trends
@@ -417,11 +419,11 @@