Download src/App.js from Novacibes/Vwgge: direct link, hf CLI and curl.
- Browser
- Download file 2.33 kB
-
https://huggingface.co/spaces/Novacibes/Vwgge/resolve/main/src/App.js
- Command line
-
hf download hf://spaces/Novacibes/Vwgge/src/App.js
-
curl -L -o App.js https://huggingface.co/spaces/Novacibes/Vwgge/resolve/main/src/App.js
2.33 kB
| import { useState } from 'react'; | |
| import './App.css'; | |
| const SPECS = { | |
| college: { name: 'College ruled', spacing: '9/32 in (7.1 mm)' }, | |
| wide: { name: 'Wide ruled', spacing: '11/32 in (8.7 mm)' }, | |
| letter: { name: 'Letter', dims: '8.5 × 11 in' }, | |
| composition: { name: 'Composition', dims: '7.5 × 9.75 in' }, | |
| }; | |
| function App() { | |
| const [ruling, setRuling] = useState('college'); | |
| const [size, setSize] = useState('letter'); | |
| return ( | |
| <main className="desk"> | |
| <div className="toolbar" role="toolbar" aria-label="Paper options"> | |
| <div className="group"> | |
| <span className="label">Ruling</span> | |
| <button | |
| type="button" | |
| className={ruling === 'college' ? 'active' : ''} | |
| onClick={() => setRuling('college')} | |
| > | |
| College 9/32″ | |
| </button> | |
| <button | |
| type="button" | |
| className={ruling === 'wide' ? 'active' : ''} | |
| onClick={() => setRuling('wide')} | |
| > | |
| Wide 11/32″ | |
| </button> | |
| </div> | |
| <div className="group"> | |
| <span className="label">Size</span> | |
| <button | |
| type="button" | |
| className={size === 'letter' ? 'active' : ''} | |
| onClick={() => setSize('letter')} | |
| > | |
| Letter 8.5×11 | |
| </button> | |
| <button | |
| type="button" | |
| className={size === 'composition' ? 'active' : ''} | |
| onClick={() => setSize('composition')} | |
| > | |
| Comp. 7.5×9.75 | |
| </button> | |
| </div> | |
| </div> | |
| <div className="sheet-wrap"> | |
| <div className="sheet" data-ruling={ruling} data-size={size}> | |
| <div className="sheet-paper" aria-hidden="true" /> | |
| <div className="sheet-shade" aria-hidden="true" /> | |
| <div className="hole hole-1" aria-hidden="true" /> | |
| <div className="hole hole-2" aria-hidden="true" /> | |
| <div className="hole hole-3" aria-hidden="true" /> | |
| </div> | |
| </div> | |
| <p className="caption"> | |
| {SPECS[ruling].name} · {SPECS[ruling].spacing} · {SPECS[size].name}{' '} | |
| {SPECS[size].dims} · blue rules, red 1.25″ margin. Specs match Five Star / | |
| Mead (ACCO Brands) filler paper. | |
| </p> | |
| </main> | |
| ); | |
| } | |
| export default App; | |