Spaces:
Sleeping
Sleeping
Download src/components/Home.jsx from FocusGuard/integration_test2: direct link, hf CLI and curl.
- Browser
- Download file 870 Bytes
-
https://huggingface.co/spaces/FocusGuard/integration_test2/resolve/main/src/components/Home.jsx
- Command line
-
hf download hf://spaces/FocusGuard/integration_test2/src/components/Home.jsx
-
curl -L -o Home.jsx https://huggingface.co/spaces/FocusGuard/integration_test2/resolve/main/src/components/Home.jsx
870 Bytes
| 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; |