Add files via upload

This commit is contained in:
jasonMPM
2026-03-05 12:13:22 -06:00
committed by GitHub
parent bfa3887e61
commit 20e71ee7f9
40 changed files with 1352 additions and 368 deletions

29
frontend/src/App.jsx Normal file
View File

@@ -0,0 +1,29 @@
import { useEffect } from 'react'
import ProjectList from './components/Projects/ProjectList'
import MainCalendar from './components/Calendar/MainCalendar'
import FocusDrawer from './components/FocusView/FocusDrawer'
import { fetchProjects } from './api/projects'
import useProjectStore from './store/useProjectStore'
export default function App() {
const { setProjects, setLoading } = useProjectStore()
useEffect(() => {
setLoading(true)
fetchProjects()
.then(data => { setProjects(data); setLoading(false) })
.catch(() => setLoading(false))
}, [])
return (
<div className="flex h-screen bg-surface overflow-hidden">
<aside className="w-72 flex-shrink-0 bg-surface-raised border-r border-surface-border flex flex-col h-full">
<ProjectList />
</aside>
<main className="flex-1 overflow-hidden">
<MainCalendar />
</main>
<FocusDrawer />
</div>
)
}