|
| 1 | +import { useTheme } from '../../hooks/useTheme'; |
| 2 | + |
1 | 3 | const Header = () => { |
| 4 | + const { isDark, toggleTheme } = useTheme(); |
| 5 | + |
2 | 6 | return ( |
3 | 7 | <div className="win98-inset" style={{ |
4 | 8 | padding: '12px', |
5 | 9 | marginBottom: '8px', |
6 | 10 | backgroundColor: 'var(--win95-light-gray)' |
7 | 11 | }}> |
8 | | - <h1 style={{ fontSize: '18px', fontWeight: 'bold', marginBottom: '4px' }}> |
9 | | - Windows Post-Install Generator |
10 | | - </h1> |
11 | | - <p style={{ fontSize: '12px', color: 'var(--win98-gray-dark)', lineHeight: '1.5' }}> |
12 | | - Create custom installation script that:<br /> |
13 | | - • automatically installs selected programs<br /> |
14 | | - • adjusts selected settings<br /> |
15 | | - Everything automatically<br /> |
16 | | - <br /> |
17 | | - Right-click the downloaded .bat file and select "Run as Administrator" |
18 | | - </p> |
| 12 | + <div style={{ display: 'flex', justifyContent: 'space-between', alignItems: 'flex-start', gap: '12px' }}> |
| 13 | + <div style={{ flex: 1 }}> |
| 14 | + <h1 style={{ fontSize: '18px', fontWeight: 'bold', marginBottom: '4px' }}> |
| 15 | + Windows Post-Install Generator |
| 16 | + </h1> |
| 17 | + <p style={{ fontSize: '12px', color: 'var(--win98-gray-dark)', lineHeight: '1.5' }}> |
| 18 | + Create custom installation script that:<br /> |
| 19 | + • automatically installs selected programs<br /> |
| 20 | + • adjusts selected settings<br /> |
| 21 | + Everything automatically<br /> |
| 22 | + <br /> |
| 23 | + Right-click the downloaded .bat file and select "Run as Administrator" |
| 24 | + </p> |
| 25 | + </div> |
| 26 | + <button |
| 27 | + onClick={toggleTheme} |
| 28 | + className="win95-button" |
| 29 | + style={{ |
| 30 | + padding: '6px 12px', |
| 31 | + display: 'flex', |
| 32 | + alignItems: 'center', |
| 33 | + gap: '6px', |
| 34 | + minWidth: '100px' |
| 35 | + }} |
| 36 | + title={isDark ? 'Switch to Light Mode' : 'Switch to Dark Mode'} |
| 37 | + > |
| 38 | + <span style={{ fontSize: '14px' }}>{isDark ? '☀' : '☾'}</span> |
| 39 | + <span>{isDark ? 'Light' : 'Dark'}</span> |
| 40 | + </button> |
| 41 | + </div> |
19 | 42 | </div> |
20 | 43 | ); |
21 | 44 | }; |
|
0 commit comments