From 78637b36a67fb158ad3c5f5b2e2eebb3beeb7c9d Mon Sep 17 00:00:00 2001 From: Life Date: Wed, 15 Apr 2026 22:21:11 +0200 Subject: [PATCH] Modernize HC Center UI with Tailwind classes Replace missing SCSS styles with inline Tailwind utilities and image imports. Use design-system components (Column, Flex, Text, Button) for consistent look across the client. - Import hc-center images as modules (hc_logo, payday, clock, benefits) - Replace custom CSS classes with Tailwind (w-[], h-[], bg-*, rounded, etc.) - Use Text bold/small/variant props instead of raw h4/h5/h6 tags - Add hover:underline on links, border cards, rounded sections - Remove dead SCSS import from index.scss --- src/components/hc-center/HcCenterView.tsx | 109 +++++++++++----------- src/components/index.scss | 1 - 2 files changed, 56 insertions(+), 54 deletions(-) diff --git a/src/components/hc-center/HcCenterView.tsx b/src/components/hc-center/HcCenterView.tsx index 79bc0aa..2519197 100644 --- a/src/components/hc-center/HcCenterView.tsx +++ b/src/components/hc-center/HcCenterView.tsx @@ -1,6 +1,10 @@ import { AddLinkEventTracker, ClubGiftInfoEvent, CreateLinkEvent, GetClubGiftInfo, ILinkEventTracker, RemoveLinkEventTracker, ScrGetKickbackInfoMessageComposer, ScrKickbackData, ScrSendKickbackInfoMessageEvent } from '@nitrots/nitro-renderer'; import { FC, useEffect, useState } from 'react'; import { ClubStatus, FriendlyTime, GetClubBadge, GetConfigurationValue, LocalizeText, SendMessageComposer } from '../../api'; +import hcLogo from '../../assets/images/hc-center/hc_logo.gif'; +import paydayBg from '../../assets/images/hc-center/payday.png'; +import clockIcon from '../../assets/images/hc-center/clock.png'; +import benefitsBg from '../../assets/images/hc-center/benefits.png'; import { Button, Column, Flex, LayoutAvatarImageView, LayoutBadgeImageView, NitroCardContentView, NitroCardHeaderView, NitroCardView, Text } from '../../common'; import { useInventoryBadges, useMessageEvent, usePurse, useSessionInfo } from '../../hooks'; @@ -126,73 +130,72 @@ export const HcCenterView: FC<{}> = props => ); return ( - + setIsVisible(false) } /> - -
-
- - - -
-
+ + +
+ + +
-
- - - { LocalizeText('hccenter.status.' + clubStatus) } - + + + + { LocalizeText('hccenter.status.' + clubStatus) } + -
+ { GetConfigurationValue('hc.center')['payday.info'] && - - - -

{ LocalizeText('hccenter.special.title') }

-
{ LocalizeText('hccenter.special.info') }
-
CreateLinkEvent('habbopages/' + GetConfigurationValue('hc.center')['payday.habbopage']) }>{ LocalizeText('hccenter.special.infolink') }
-
-
-
{ LocalizeText('hccenter.special.time.title') }
-
-
-
{ getHcPaydayTime() }
+ + + { LocalizeText('hccenter.special.title') } + { LocalizeText('hccenter.special.info') } +
+ CreateLinkEvent('habbopages/' + GetConfigurationValue('hc.center')['payday.habbopage']) }> + { LocalizeText('hccenter.special.infolink') } +
+
+ + { LocalizeText('hccenter.special.time.title') } + +
+ { getHcPaydayTime() } + { clubStatus === ClubStatus.ACTIVE && -
-
{ LocalizeText('hccenter.special.amount.title') }
-
-
{ getHcPaydayAmount() }
-
- { LocalizeText('hccenter.breakdown.infolink') } -
-
-
} -
+ + { LocalizeText('hccenter.special.amount.title') } + { getHcPaydayAmount() } + CreateLinkEvent('habbopages/' + GetConfigurationValue('hc.center')['payday.habbopage']) }> + { LocalizeText('hccenter.breakdown.infolink') } + + } +
} { GetConfigurationValue('hc.center')['gift.info'] && -
-
-

{ LocalizeText('hccenter.gift.title') }

-
0 ? LocalizeText('hccenter.unclaimedgifts', [ 'unclaimedgifts' ], [ unclaimedGifts.toString() ]) : LocalizeText('hccenter.gift.info') } }>
-
- -
} + + } { GetConfigurationValue('hc.center')['benefits.info'] && -
-
{ LocalizeText('hccenter.general.title') }
-
- -
} + + } ); diff --git a/src/components/index.scss b/src/components/index.scss index 8be9445..a432c27 100644 --- a/src/components/index.scss +++ b/src/components/index.scss @@ -9,7 +9,6 @@ @import './friends/FriendsView'; @import './groups/GroupView'; @import './guide-tool/GuideToolView'; -@import './hc-center/HcCenterView'; @import './help/HelpView'; @import './hotel-view/HotelView'; @import './loading/LoadingView';