diff --git a/index.html b/index.html index 0f06582..92bb92f 100644 --- a/index.html +++ b/index.html @@ -9,6 +9,14 @@ + diff --git a/src/App.jsx b/src/App.jsx index 977243c..e0e6689 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -1,64 +1,46 @@ -import React,{lazy, Suspense} from "react"; -import { Route, Routes, NavLink } from "react-router-dom"; -// import Nav from './components/nav/Nav.jsx'; -import SideNav from "./components/nav/SideNav.jsx"; -import ScrollToTopButton from "./components/ScrollToTopButton.jsx"; +import { lazy, Suspense } from 'react'; +import { Routes, Route } from 'react-router-dom'; +import { ThemeProvider } from './context/ThemeContext'; +import Sidebar from './components/Sidebar'; -const Home = lazy(() => import("./components/Home.jsx")); -const Books = lazy(() => import("./components/books/Index.jsx")); -const Tools = lazy(() => import("./components/tools/Index.jsx")); -const Videos = lazy(() => import("./components/videos/Index.jsx")); -const Editors = lazy(() => import("./components/editor/Index.jsx")); -const Websites = lazy(() => import("./components/websites/Index.jsx")); -const Challenges = lazy(() => import("./components/challenges/Index.jsx")); +// Lazy load components +const Home = lazy(() => import('./components/Home')); +const About = lazy(() => import('./components/About')); +const Videos = lazy(() => import('./components/videos/Index')); +const Websites = lazy(() => import('./components/websites/Index')); +const Challenges = lazy(() => import('./components/challenges/Index')); +const Books = lazy(() => import('./components/books/Index')); +const Tools = lazy(() => import('./components/tools/Index')); +const Editors = lazy(() => import('./components/editor/Index')); +const Resources = lazy(() => import('./components/Resources')); -const App = () => { +function App() { return ( -
+ Welcome to Web Resources Hub, your comprehensive platform for web development + learning and resources. Our mission is to empower developers of all levels + with the tools and knowledge they need to succeed in the ever-evolving + world of web development. +
+ ++ We believe that quality learning resources should be accessible to everyone. + Our platform curates the best web development resources, from beginner-friendly + tutorials to advanced technical documentation, helping you grow your skills + at your own pace. +
+ ++ Whether you're just starting your web development journey or you're an + experienced developer looking to stay updated, Web Resources Hub is here + to support your growth. Join our community of learners and contributors + to share knowledge and help others succeed. +
++
{description.slice(0, 120) + "..."}
Email: contact@webresourceshub.com
+Follow us on social media for updates and community discussions.
++
Explore our vast collection of web development resources, designed to give you the knowledge and tools you need to succeed in the world of web development!
diff --git a/src/components/Resources.jsx b/src/components/Resources.jsx new file mode 100644 index 0000000..5fcf8b5 --- /dev/null +++ b/src/components/Resources.jsx @@ -0,0 +1,120 @@ +import { motion } from 'framer-motion'; +import { useState } from 'react'; +import { useTheme } from '../context/ThemeContext'; + +export default function Resources() { + const [activeCategory, setActiveCategory] = useState('all'); + const { isDarkMode, toggleTheme } = useTheme(); + + const categories = [ + { id: 'all', name: 'All Resources' }, + { id: 'frontend', name: 'Frontend' }, + { id: 'backend', name: 'Backend' }, + { id: 'database', name: 'Database' }, + { id: 'devops', name: 'DevOps' }, + ]; + + const resources = [ + { + id: 1, + title: 'React Documentation', + description: 'Official React documentation with comprehensive guides and API references.', + category: 'frontend', + link: 'https://reactjs.org/docs/getting-started.html', + }, + { + id: 2, + title: 'Node.js Documentation', + description: 'Complete Node.js documentation and guides for backend development.', + category: 'backend', + link: 'https://nodejs.org/en/docs/', + }, + { + id: 3, + title: 'MongoDB University', + description: 'Free courses and tutorials for MongoDB database development.', + category: 'database', + link: 'https://university.mongodb.com/', + }, + { + id: 4, + title: 'Docker Documentation', + description: 'Learn containerization with Docker through official documentation.', + category: 'devops', + link: 'https://docs.docker.com/', + }, + ]; + + const filteredResources = activeCategory === 'all' + ? resources + : resources.filter(resource => resource.category === activeCategory); + + return ( ++ {resource.description} +
+ + Learn More → + +