Spaces:
Running
Running
Download client/src/pages/Home.jsx from mb672038/python-mastery-academy: direct link, hf CLI and curl.
- Browser
- Download file 635 Bytes
-
https://huggingface.co/spaces/mb672038/python-mastery-academy/resolve/main/client/src/pages/Home.jsx
- Command line
-
hf download hf://spaces/mb672038/python-mastery-academy/client/src/pages/Home.jsx
-
curl -L -o Home.jsx https://huggingface.co/spaces/mb672038/python-mastery-academy/resolve/main/client/src/pages/Home.jsx
635 Bytes
| import { useEffect } from 'react'; | |
| import Hero from '../components/Hero'; | |
| import Features from '../components/Features'; | |
| import PopularCourses from '../components/PopularCourses'; | |
| import Testimonials from '../components/Testimonials'; | |
| import CTA from '../components/CTA'; | |
| import { useCourse } from '../context/CourseContext'; | |
| export default function Home() { | |
| const { featuredCourses, getFeaturedCourses } = useCourse(); | |
| useEffect(() => { | |
| getFeaturedCourses(); | |
| }, []); | |
| return ( | |
| <> | |
| <Hero /> | |
| <Features /> | |
| <PopularCourses courses={featuredCourses} /> | |
| <Testimonials /> | |
| <CTA /> | |
| </> | |
| ); | |
| } |