From d3adf07c3ff76dd25b25f1a6fc90f5a187d77e77 Mon Sep 17 00:00:00 2001 From: Oronemu Date: Sun, 21 Dec 2025 03:05:57 +0700 Subject: [PATCH] Add covers --- frontend/src/components/ui/NeonButton.tsx | 8 ++------ frontend/src/pages/MarathonPage.tsx | 18 ++++++++++++++++-- 2 files changed, 18 insertions(+), 8 deletions(-) diff --git a/frontend/src/components/ui/NeonButton.tsx b/frontend/src/components/ui/NeonButton.tsx index 9d63daf..c5fb460 100644 --- a/frontend/src/components/ui/NeonButton.tsx +++ b/frontend/src/components/ui/NeonButton.tsx @@ -128,13 +128,9 @@ export const NeonButton = forwardRef( {...props} > {isLoading && } - {!isLoading && icon && iconPosition === 'left' && ( - {icon} - )} + {!isLoading && icon && iconPosition === 'left' && icon} {children} - {!isLoading && icon && iconPosition === 'right' && ( - {icon} - )} + {!isLoading && icon && iconPosition === 'right' && icon} ) } diff --git a/frontend/src/pages/MarathonPage.tsx b/frontend/src/pages/MarathonPage.tsx index 681efe2..5709a3f 100644 --- a/frontend/src/pages/MarathonPage.tsx +++ b/frontend/src/pages/MarathonPage.tsx @@ -192,8 +192,22 @@ export function MarathonPage() { {/* Hero Banner */}
{/* Background */} -
-
+ {marathon.cover_url ? ( + <> + +
+
+ + ) : ( + <> +
+
+ + )}