diff --git a/src/App.jsx b/src/App.jsx index ee5feff..de58852 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -7,7 +7,7 @@ import Login from "./components/Login"; import Signup from "./components/Signup"; import PrivacyPolicy from "./components/PrivacyPolicy"; import TermsOfUse from "./components/TermsOfUse"; - +import Error from "./components/Error"; function App() { return ( @@ -19,7 +19,7 @@ function App() { } /> } /> } /> - + } /> ); diff --git a/src/components/Courses.jsx b/src/components/Courses.jsx index 48a4573..0d65757 100644 --- a/src/components/Courses.jsx +++ b/src/components/Courses.jsx @@ -1,8 +1,55 @@ -import React, { useState } from 'react'; +import React, { useState, useEffect } from 'react'; import CourseCards from './CourseCards'; function Courses() { const [searchTerm, setSearchTerm] = useState(""); + const [placeholder, setPlaceholder] = useState(''); + + const placeholders = [ + 'Learn Java', + 'Master C', + 'Explore C++', + 'Discover C#', + 'Build with Ruby', + 'Unlock Python', + 'Style with CSS', + 'Develop with Go', + 'Create with HTML', + 'Enhance with JavaScript', + 'Build with Kotlin', + 'Scale with Node.js', + 'Craft with Swift', + 'Develop with PHP', + 'Build with React.js', + 'Streamline with Next.js', + 'Secure with Rust', + 'Type with TypeScript', + 'Craft with Dart', + 'Analyze with R', + 'Query with SQL', + 'Scale with Scala', + 'Automate with Shell Scripting', + 'Streamline with Groovy', + 'Optimize with Assembly', + 'Elevate with Elixir', + 'Develop with F#', + 'Explore Haskell', + 'Create with Lua', + 'Build with Objective-C', + 'Master Perl', + 'Solve with Prolog', + 'Innovate with Clojure' + ]; + + let index = 0; + + useEffect(() => { + const intervalId = setInterval(() => { + setPlaceholder(placeholders[index]); + index = (index + 1) % placeholders.length; + }, 3000); // Rotate every 3 seconds + return () => clearInterval(intervalId); + }, []); const handleSearchChange = (e) => { setSearchTerm(e.target.value.toLowerCase()); @@ -16,7 +63,7 @@ function Courses() {
{ + return ( +
+
+
+
+

404 - Page Not Found !!

+
+ +
+

Look like you're lost

+ +

+ The page you are looking for not available! +

+ + + Home + +
+
+
+
+ ); +}; + +export default Error;