From 5eeb3c9f188b7965a969c4de5005813946b6718c Mon Sep 17 00:00:00 2001 From: admin Date: Sun, 14 Jun 2026 17:19:03 +0800 Subject: [PATCH] fix: auth button hover, nav links, minimal homepage redesign --- .../layout/components/public-header.tsx | 11 +- .../components/forgot-password-form.tsx | 2 +- .../features/auth/otp/components/otp-form.tsx | 2 +- .../sign-in/components/user-auth-form.tsx | 2 +- .../auth/sign-up/components/sign-up-form.tsx | 2 +- .../home/components/sections/hero.tsx | 142 +++++------------- 6 files changed, 51 insertions(+), 110 deletions(-) diff --git a/web/default/src/components/layout/components/public-header.tsx b/web/default/src/components/layout/components/public-header.tsx index c541967ae..fada91e90 100644 --- a/web/default/src/components/layout/components/public-header.tsx +++ b/web/default/src/components/layout/components/public-header.tsx @@ -227,7 +227,7 @@ export function PublicHeader(props: PublicHeaderProps) { tabIndex={link.disabled ? -1 : undefined} onClick={(event) => handleNavLinkClick(event, link)} className={cn( - 'text-[#8B8D97] hover:text-white rounded-lg px-3 py-1.5 text-[13px] font-medium transition-colors duration-200', + 'text-[#8B8D97] hover:text-[#C5C6D0] rounded-md px-3 py-1.5 text-[13px] font-medium transition-colors duration-200', link.disabled && 'pointer-events-none opacity-50' )} > @@ -242,14 +242,17 @@ export function PublicHeader(props: PublicHeaderProps) { disabled={link.disabled} onClick={(event) => handleNavLinkClick(event, link)} className={cn( - 'rounded-lg px-3 py-1.5 text-[13px] font-medium transition-colors duration-200', + 'relative rounded-md px-3 py-1.5 text-[13px] font-medium transition-colors duration-200', isActive - ? 'text-white' - : 'text-[#8B8D97] hover:text-white', + ? 'text-[#00D2FF]' + : 'text-[#8B8D97] hover:text-[#C5C6D0]', link.disabled && 'pointer-events-none opacity-50' )} > {t(link.title)} + {isActive && ( + + )} ) })} diff --git a/web/default/src/features/auth/forgot-password/components/forgot-password-form.tsx b/web/default/src/features/auth/forgot-password/components/forgot-password-form.tsx index e4bac7531..86406b5cb 100644 --- a/web/default/src/features/auth/forgot-password/components/forgot-password-form.tsx +++ b/web/default/src/features/auth/forgot-password/components/forgot-password-form.tsx @@ -112,7 +112,7 @@ export function ForgotPasswordForm({ - + {t('View Pricing')} → + )} {/* ── Terminal demo ── */} -
+
{/* Terminal header */} -
+
-
-
-
+
+
+
- bash + bash
{/* Terminal content */} -
+
${' '} curl{' '} {serverAddress}/v1/chat/completions{' '} \
-
+
-H{' '} "Authorization: Bearer sk-..."{' '} \
-
+
-d{' '} - {"'{ \"model\": \"gpt-4o\", \"messages\": [...] }'"} + {"'{ \"model\": \"gpt-4o\" }'"}
-
-
+
+
- 200 OK - 312ms + 200 + 312ms
- {"{"}{' '} - "model" - :{' '} - "gpt-4o" - ,{' '} - "usage" - :{' '} - {"{ \"prompt_tokens\": 12, \"completion_tokens\": 47 }"} + {"{"} + "model" + : + "gpt-4o" + , + "usage" + : + {"{...}"} {"}"}
-
+
$ - +
- - {/* ── Features ── */} -
-
-

- {t('Full-featured gateway')} -

-

- {t('Everything you need to manage, route, and monitor LLM API traffic')} -

-
- -
- {features.map((feature) => ( -
{ - e.currentTarget.style.borderColor = T.accentDim - e.currentTarget.style.transform = 'translateY(-2px)' - }} - onMouseLeave={(e) => { - e.currentTarget.style.borderColor = T.border - e.currentTarget.style.transform = 'translateY(0)' - }} - > -
- -
-

- {t(feature.title)} -

-

- {t(feature.desc)} -

-
- ))} -
-
)