From f04e36f1b5f559aa230d51c295fea361e8e2dfce Mon Sep 17 00:00:00 2001 From: icy Date: Sun, 2 Nov 2025 06:42:51 +0800 Subject: [PATCH] fix: restore header bar and fix layout in RegisterPage MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Add HeaderBar component to registration page - Change background to use CSS variables (var(--brand-black)) - Remove "back to home" button - Update layout structure to match LoginPage pattern - Fix container padding and spacing 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude --- web/src/components/RegisterPage.tsx | 40 +++++++++++++++-------------- 1 file changed, 21 insertions(+), 19 deletions(-) diff --git a/web/src/components/RegisterPage.tsx b/web/src/components/RegisterPage.tsx index 1a4ae370..df0ac7e9 100644 --- a/web/src/components/RegisterPage.tsx +++ b/web/src/components/RegisterPage.tsx @@ -3,7 +3,7 @@ import { useAuth } from '../contexts/AuthContext'; import { useLanguage } from '../contexts/LanguageContext'; import { t } from '../i18n/translations'; import { getSystemConfig } from '../lib/config'; -import { ArrowLeft } from 'lucide-react'; +import HeaderBar from './landing/HeaderBar'; export function RegisterPage() { const { language } = useLanguage(); @@ -88,25 +88,26 @@ export function RegisterPage() { }; return ( -
-
- {/* Back to Home */} - {step === 'register' && ( - - )} +
+ {}} + onPageChange={(page) => { + console.log('RegisterPage onPageChange called with:', page); + if (page === 'competition') { + window.location.href = '/competition'; + } + }} + /> - {/* Logo */} -
+
+
+ + {/* Logo */} +
NoFx Logo
@@ -357,6 +358,7 @@ export function RegisterPage() {

)} +
);