Skip to content

Commit 63c75f2

Browse files
authored
refactor: soften slot phase timeline colors (#292)
Replace harsh solid color blocks with subtle bottom borders (50% opacity) and neutral backgrounds. Update timeline cursor to col-resize for better UX. Improves visual hierarchy and reduces eye strain.
1 parent bdb3c80 commit 63c75f2

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

src/components/Ethereum/SlotTimeline/SlotTimeline.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ function SlotTimelineComponent({
129129
<div
130130
className={clsx(
131131
'relative flex overflow-hidden rounded-sm border border-border',
132-
onTimeClick && 'cursor-pointer touch-none select-none',
132+
onTimeClick && 'cursor-col-resize touch-none select-none',
133133
isDragging && 'cursor-grabbing'
134134
)}
135135
style={{ height: `${height}px` }}

src/utils/beacon.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -41,22 +41,22 @@ export const DEFAULT_BEACON_SLOT_PHASES: SlotPhase[] = [
4141
{
4242
label: 'Block',
4343
duration: ATTESTATION_DEADLINE_MS,
44-
className: 'bg-cyan-500',
45-
textClassName: 'text-cyan-200 font-bold',
44+
className: 'bg-surface border-b-4 border-b-cyan-500/50',
45+
textClassName: 'text-cyan-600 dark:text-cyan-400 font-bold',
4646
description: 'Proposer broadcasts block',
4747
},
4848
{
4949
label: 'Attestations',
5050
duration: 4000,
51-
className: 'bg-green-500',
52-
textClassName: 'text-green-200 font-bold',
51+
className: 'bg-surface border-b-4 border-b-green-500/50',
52+
textClassName: 'text-green-600 dark:text-green-400 font-bold',
5353
description: 'Validators attest to block',
5454
},
5555
{
5656
label: 'Aggregations',
5757
duration: 4000,
58-
className: 'bg-amber-500',
59-
textClassName: 'text-amber-200 font-bold',
58+
className: 'bg-surface border-b-4 border-b-amber-500/50',
59+
textClassName: 'text-amber-600 dark:text-amber-400 font-bold',
6060
description: 'Attestations aggregated',
6161
},
6262
];

0 commit comments

Comments
 (0)