Spaces:
Running
Running
File size: 870 Bytes
5cc4335 | 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 | import React from 'react';
function Home({ setActiveTab, setIsTutorialActive }) {
const handleStartFocus = () => {
setActiveTab('focus');
};
const handleStartTutorial = () => {
setIsTutorialActive(true);
setActiveTab('focus');
};
return (
<main id="page-a" className="page">
<h1>FocusGuard</h1>
<p>Your productivity monitor assistant.</p>
<div style={{ display: 'flex', flexDirection: 'column', gap: '15px', alignItems: 'center', marginTop: '30px' }}>
<button className="btn-main" onClick={handleStartFocus} style={{ width: '250px' }}>
Start Focus
</button>
<button className="btn-main" onClick={handleStartTutorial} style={{ width: '250px' }}>
Tutorial
</button>
</div>
</main>
);
}
export default Home; |