Press n or j to go to the next uncovered block, b, p or k for the previous block.
| 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 | import { css } from '../../../../../styled-system/css' export interface SetupHeaderProps { onOpenGuide: () => void isGuideOpen: boolean } export function SetupHeader({ onOpenGuide, isGuideOpen }: SetupHeaderProps) { return ( <div data-element="title-section" className={css({ textAlign: 'center', bg: 'rgba(255, 255, 255, 0.95)', borderRadius: '1.5vh', p: '1.5vh', boxShadow: '0 1vh 3vh rgba(0,0,0,0.5)', width: '100%', position: 'relative', border: '0.3vh solid', borderColor: 'rgba(251, 191, 36, 0.6)', backdropFilter: 'blur(10px)', flexShrink: 0, })} > {/* Ornamental corners */} <div className={css({ position: 'absolute', top: '-0.5vh', left: '-0.5vh', width: '2.5vh', height: '2.5vh', borderTop: '0.3vh solid', borderLeft: '0.3vh solid', borderColor: 'rgba(251, 191, 36, 0.8)', borderRadius: '1.5vh 0 0 0', })} /> <div className={css({ position: 'absolute', top: '-0.5vh', right: '-0.5vh', width: '2.5vh', height: '2.5vh', borderTop: '0.3vh solid', borderRight: '0.3vh solid', borderColor: 'rgba(251, 191, 36, 0.8)', borderRadius: '0 1.5vh 0 0', })} /> <div className={css({ position: 'absolute', bottom: '-0.5vh', left: '-0.5vh', width: '2.5vh', height: '2.5vh', borderBottom: '0.3vh solid', borderLeft: '0.3vh solid', borderColor: 'rgba(251, 191, 36, 0.8)', borderRadius: '0 0 0 1.5vh', })} /> <div className={css({ position: 'absolute', bottom: '-0.5vh', right: '-0.5vh', width: '2.5vh', height: '2.5vh', borderBottom: '0.3vh solid', borderRight: '0.3vh solid', borderColor: 'rgba(251, 191, 36, 0.8)', borderRadius: '0 0 1.5vh 0', })} /> <h1 className={css({ fontSize: '3.5vh', fontWeight: 'bold', mb: '0.5vh', color: '#7c2d12', textShadow: '0.15vh 0.15vh 0 rgba(251, 191, 36, 0.5), 0.3vh 0.3vh 0.5vh rgba(0,0,0,0.3)', letterSpacing: '0.2vh', })} > ⚔️ RITHMOMACHIA ⚔️ </h1> <div className={css({ height: '0.2vh', width: '60%', margin: '0 auto 0.5vh', background: 'linear-gradient(90deg, transparent, rgba(251, 191, 36, 0.8), transparent)', })} /> <p className={css({ color: '#92400e', fontSize: '1.8vh', fontWeight: 'bold', mb: '0.3vh', fontStyle: 'italic', })} > The Philosopher's Game </p> <p className={css({ color: '#78350f', fontSize: '1.2vh', lineHeight: '1.4', fontWeight: 500, mb: '0.8vh', })} > Win by forming mathematical progressions in enemy territory </p> {!isGuideOpen && ( <button type="button" data-action="open-guide" onClick={onOpenGuide} className={css({ bg: 'linear-gradient(135deg, #7c2d12, #92400e)', color: 'white', border: '2px solid rgba(251, 191, 36, 0.6)', borderRadius: '0.8vh', px: '1.5vh', py: '0.8vh', fontSize: '1.3vh', fontWeight: 'bold', cursor: 'pointer', transition: 'all 0.2s', display: 'flex', alignItems: 'center', gap: '0.5vh', mx: 'auto', boxShadow: '0 0.3vh 0.8vh rgba(0, 0, 0, 0.3)', _hover: { bg: 'linear-gradient(135deg, #92400e, #7c2d12)', transform: 'translateY(-0.2vh)', boxShadow: '0 0.5vh 1.2vh rgba(0, 0, 0, 0.4)', }, })} > <span>📖</span> <span>How to Play</span> </button> )} </div> ) } |