From 86cca4688865348b4a2c97d0e01aa756bba705b4 Mon Sep 17 00:00:00 2001 From: jtw Date: Thu, 29 Jan 2026 14:27:53 +0900 Subject: [PATCH 01/21] =?UTF-8?q?fix:=20=ED=8A=B9=EC=88=98=20=EC=9D=B4?= =?UTF-8?q?=EB=A6=84=EC=83=89=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/kkuko/profile/components/ProfileHeader.tsx | 4 ++-- app/kkuko/profile/utils/profileHelper.ts | 16 ++++++++++++++++ 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/app/kkuko/profile/components/ProfileHeader.tsx b/app/kkuko/profile/components/ProfileHeader.tsx index af2d1a0..d4ec09d 100644 --- a/app/kkuko/profile/components/ProfileHeader.tsx +++ b/app/kkuko/profile/components/ProfileHeader.tsx @@ -2,7 +2,7 @@ import React from 'react'; import { ItemInfo, ProfileData } from '@/types/kkuko.types'; import TryRenderImg from '../../shared/components/TryRenderImg'; import ProfileAvatar from '../../shared/components/ProfileAvatar'; -import { getNicknameColor } from '../utils/profileHelper'; +import { getNicknameStyle } from '../utils/profileHelper'; interface ProfileHeaderProps { profileData: ProfileData; @@ -65,7 +65,7 @@ export default function ProfileHeader({ profileData, itemsData, expRank }: Profi

{profileData.user.nickname}

diff --git a/app/kkuko/profile/utils/profileHelper.ts b/app/kkuko/profile/utils/profileHelper.ts index 8670ab7..8546e98 100644 --- a/app/kkuko/profile/utils/profileHelper.ts +++ b/app/kkuko/profile/utils/profileHelper.ts @@ -1,5 +1,6 @@ import { Equipment, ItemInfo, KkukoRecord, Mode, isSpecialOptions } from '@/types/kkuko.types'; import { NICKNAME_COLORS, OPTION_NAMES, SLOT_NAMES } from '../../shared/lib/const'; +import { CSSProperties } from 'react'; export const getNicknameColor = (equipment: Equipment[], isDarkTheme: boolean): string => { const nikItem = equipment.find(eq => eq.slot === 'NIK'); @@ -11,6 +12,21 @@ export const getNicknameColor = (equipment: Equipment[], isDarkTheme: boolean): return NICKNAME_COLORS[colorKey] || defaultColor; }; +export const getNicknameStyle = (equipment: Equipment[], isDarkTheme: boolean): CSSProperties => { + const nikItem = equipment.find(eq => eq.slot === 'NIK'); + + if (nikItem?.itemId === '25_815_blue_red_name') { + return { + background: 'linear-gradient(127deg,rgba(255, 81, 81, 1) 0%, rgba(50, 137, 255, 1) 100%)', + color: 'transparent', + WebkitBackgroundClip: 'text', + backgroundClip: 'text' + }; + } + + return { color: getNicknameColor(equipment, isDarkTheme) }; +}; + export const extractColorFromLabel = (description: string, isDarkTheme: boolean): string => { const defaultColor = isDarkTheme ? '#FFFFFF' : '#000000'; const match = description.match(/