From d12c5ddfa55b8083498d073801b11e8f7f6e28b1 Mon Sep 17 00:00:00 2001 From: Yves Gugger Date: Mon, 8 Dec 2025 07:38:06 +0100 Subject: [PATCH] Add Footer component and real TLD history data - Created reusable Footer component with social links - Replaced mock data with real API calls for TLD history - Added Trending TLDs section at top of pricing page - Mini-charts now display actual 12-month price history - Improved data authenticity throughout TLD pricing page --- backend/app/services/domain_checker.py | 12 +- frontend/src/app/login/page.tsx | 14 +-- frontend/src/app/register/page.tsx | 14 +-- frontend/src/app/tld-pricing/page.tsx | 156 ++++++++++++++++++++----- frontend/src/components/Footer.tsx | 152 ++++++++++++++++++++++++ 5 files changed, 302 insertions(+), 46 deletions(-) create mode 100644 frontend/src/components/Footer.tsx diff --git a/backend/app/services/domain_checker.py b/backend/app/services/domain_checker.py index ed3c85f..1b6f7ab 100644 --- a/backend/app/services/domain_checker.py +++ b/backend/app/services/domain_checker.py @@ -329,12 +329,12 @@ class DomainChecker: 'object does not exist', ] if any(phrase in error_str for phrase in not_found_phrases): - return DomainCheckResult( - domain=domain, - status=DomainStatus.AVAILABLE, - is_available=True, - check_method="whois", - ) + return DomainCheckResult( + domain=domain, + status=DomainStatus.AVAILABLE, + is_available=True, + check_method="whois", + ) # Otherwise it's a real error return DomainCheckResult( domain=domain, diff --git a/frontend/src/app/login/page.tsx b/frontend/src/app/login/page.tsx index 944483d..dbc504b 100644 --- a/frontend/src/app/login/page.tsx +++ b/frontend/src/app/login/page.tsx @@ -86,15 +86,15 @@ export default function LoginPage() { className="input-elegant text-body-sm sm:text-body" />
- setPassword(e.target.value)} - placeholder="Password" - required - minLength={8} + value={password} + onChange={(e) => setPassword(e.target.value)} + placeholder="Password" + required + minLength={8} className="input-elegant text-body-sm sm:text-body pr-12" - /> + />