Skip to content

Commit

Permalink
update content
Browse files Browse the repository at this point in the history
  • Loading branch information
yethranayeh committed Dec 30, 2024
1 parent c62ecb0 commit 9f67675
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/pages/Home/ConfidenceColor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ type Props = { confidence: number; highestConfidence: number; timeString: string

export const ConfidenceColor = ({ confidence, highestConfidence, timeString }: Props) => (
<div
className='flex items-center justify-center min-w-[3px] max-w-[2px] min-h-[20px] overflow-hidden text-transparent font-[FontinBold] text-nowrap text-xs select-none transition-all hover:min-w-[104px] hover:text-white hover:px-1'
className='flex items-center justify-center min-w-[3px] max-w-[2px] min-h-[20px] overflow-hidden text-transparent font-[FontinBold] text-nowrap text-xs select-none transition-all hover:min-w-[114px] hover:text-white hover:px-1'
style={{
backgroundColor: `hsl(${calculateConfidenceHue(confidence, highestConfidence, timeString)}, 70%, 50%)`
}}>
<span>Confidence: {confidence}%</span>
<span>Confidence: {confidence.toFixed(2)}%</span>
</div>
);
14 changes: 11 additions & 3 deletions src/pages/Home/UpdateTime.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,16 @@ export function UpdateTime() {
}, [currencyMap.meta.createdAt]);

return (
<p className='flex items-center gap-1 text-selected-dark italic text-xs'>
<DatabaseBackup className='w-4 h-4' /> Last updated {lastUpdated}
</p>
<div className='flex flex-col gap-1'>
<p className='flex items-center gap-1 italic text-xs'>
<DatabaseBackup className='w-4 h-4' /> Last updated {lastUpdated}
</p>
<p className='text-primary-dark text-sm'>
*Data is collected from{" "}
<a href='https://www.pathofexile.com/trade2/search/poe2/Standard' target='_blank' className='underline'>
PoE 2 Trade
</a>
</p>
</div>
);
}

0 comments on commit 9f67675

Please sign in to comment.