style(hero-abacus): apply dark theme to match homepage styling

Add dark mode custom styles for column posts and reckoning bar:
- Semi-transparent white fills (0.3-0.4 opacity)
- Subtle stroke borders (0.2-0.25 opacity)
- Matches styling used in MiniAbacus component

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Thomas Hallock 2025-10-20 12:56:13 -05:00
parent 230f1dcd86
commit e0b6a2e88b
1 changed files with 15 additions and 0 deletions

View File

@ -10,6 +10,20 @@ export function HeroAbacus() {
const appConfig = useAbacusConfig() const appConfig = useAbacusConfig()
const heroRef = useRef<HTMLDivElement>(null) const heroRef = useRef<HTMLDivElement>(null)
// Dark theme styles for the abacus (matching the mini abacus on homepage)
const darkStyles = {
columnPosts: {
fill: 'rgba(255, 255, 255, 0.3)',
stroke: 'rgba(255, 255, 255, 0.2)',
strokeWidth: 2,
},
reckoningBar: {
fill: 'rgba(255, 255, 255, 0.4)',
stroke: 'rgba(255, 255, 255, 0.25)',
strokeWidth: 3,
},
}
// Detect when hero scrolls out of view // Detect when hero scrolls out of view
useEffect(() => { useEffect(() => {
if (!heroRef.current) return if (!heroRef.current) return
@ -123,6 +137,7 @@ export function HeroAbacus() {
columns={4} columns={4}
beadShape={appConfig.beadShape} beadShape={appConfig.beadShape}
showNumbers={true} showNumbers={true}
customStyles={darkStyles}
/> />
</div> </div>