Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added assets/Fonts/ProfileFont.woff2
Binary file not shown.
85 changes: 39 additions & 46 deletions src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,54 +12,47 @@ import PlayGround from "./Python/PlayGround";

import Navbar from "./Components/Navbar";
import TensorFlow from "./Python_Library_Pages/TensorFlow/Introduction-to-tensorFlow";
import IntroAndInstall from "./Python_Library_Pages/Flask/Introduction-to-flask";


const App = () => {
return (
<RootLayout>
<Navbar />
<Routes>
<Route path="/" element={<AllApps />} />

<Route path="/play-ground" element={<PlayGround />} />

<Route path="/Python-Basics" element={<Outlet />}>
<Route path="Introduction-to-Python" element={<PythonBasics />} />
<Route
path="Introduction-to-Operators"
element={<OperatorsBasics />}
/>
<Route
path="Introduction-to-Functions"
element={<FunctionsBasics />}
/>
</Route>
<Route path="/NumPy-Library" element={<Outlet />}>
<Route path="Intro-to-Numpy" element={<NumpyBasics />} />
{/* if we have child element we need added here */}
</Route>
<Route path="Pandas-Library" element={<Outlet />}>
<Route path="Intro-to-pandas" element={<PandasBasics />} />
</Route>
<Route path="Matplotlib-Library" element={<Outlet />}>
<Route path="Intro-to-Matplotlib" element={<MatplotlibBasics />} />
</Route>

{/* TensorFlow */}
<Route path="/TensorFlow" element={<Outlet />}>
<Route path="Introduction-to-tensorFlow" element={<TensorFlow />} />
</Route>

<Route path="/Flask" element={<Outlet />}>
<Route path="Introduction-to-flask" element={<IntroAndInstall />} />
</Route>

{/* remaing routes*/}

</Routes>
</RootLayout>
);
return (
<RootLayout>
<Navbar />
<Routes>
<Route path="/" element={<AllApps />} />

<Route path="/play-ground" element={<PlayGround />} />

<Route path="/Python-Basics" element={<Outlet />}>
<Route path="Introduction-to-Python" element={<PythonBasics />} />
<Route
path="Introduction-to-Operators"
element={<OperatorsBasics />}
/>
<Route
path="Introduction-to-Functions"
element={<FunctionsBasics />}
/>
</Route>
<Route path="/NumPy-Library" element={<Outlet />}>
<Route path="Intro-to-Numpy" element={<NumpyBasics />} />
{/* if we have child element we need added here */}
</Route>
<Route path="Pandas-Library" element={<Outlet />}>
<Route path="Intro-to-pandas" element={<PandasBasics />} />
</Route>
<Route path="Matplotlib-Library" element={<Outlet />}>
<Route path="Intro-to-Matplotlib" element={<MatplotlibBasics />} />
</Route>

{/* TensorFlow */}
<Route path="/TensorFlow" element={<Outlet />}>
<Route path="Introduction-to-tensorFlow" element={<TensorFlow />} />
</Route>

{/* remaing routes*/}
</Routes>
</RootLayout>
);
};

export default App;
92 changes: 46 additions & 46 deletions src/Components/Navbar.jsx
Original file line number Diff line number Diff line change
@@ -1,56 +1,56 @@
import React, { useState } from "react";

const Navbar = () => {
// Navbar links
let links = [
{ name: "Docs", link: "/" },
{ name: "Libraries", link: "/" },
{ name: "Blog", link: "/" },
];
// Navbar links
let links = [
{ name: "Docs", link: "/" },
{ name: "Libraries", link: "/" },
{ name: "Blog", link: "/" },
{ name: "Profile", link: "/profile" },
];

const [isOpen, setisOpen] = useState(false);
const [isOpen, setisOpen] = useState(false);

return (
<>
<nav class="bg-custom-purple w-full md:flex justify-between relative z-10 ">

<div className="bg-custom-purple logo w-full md:w-1/5 lg:w-1/4 text-center py-4">
<span className="text-white text-xl font-bold">PyLibLog</span>
</div>
return (
<>
<nav class="bg-indigo-500 w-full md:flex justify-between relative z-10 ">
<div className="bg-indigo-500 logo w-full md:w-1/5 lg:w-1/4 text-center py-4">
<span className="text-white text-xl font-bold">PyLibLog</span>
</div>

<div
className="menu-btn text-3xl text-white absolute right-8 top-3 cursor-pointer md:hidden"
onClick={() => setisOpen(!isOpen)}
>
<ion-icon name={`${isOpen ? "close" : "menu"}-outline`}></ion-icon>
</div>
<div
className="menu-btn text-3xl text-white absolute right-8 top-3 cursor-pointer md:hidden"
onClick={() => setisOpen(!isOpen)}
>
<ion-icon name={`${isOpen ? "close" : "menu"}-outline`}></ion-icon>
</div>

<div
className={`nav-menu w-full my-1 md:my-4 md:w-4/5 lg:w-3/4 md:flex justify-end transition-all duration-500 ease-in absolute md:static z-[-1] md:z-auto ${
isOpen ? "top-[55px]" : " top-[-150px]"
}`}
>
<ul className="nav-list md:flex w-full lg:w-3/5 justify-evenly text-center md:bg-transparent bg-white pr-6">
{links.map((val) => {
return (
<li className="navlink text-lg w-full py-3 md:py-0">
<a
href={val.link}
className="md:text-white text-indigo-500 hover:font-bold "
>
{val.name}
</a>
</li>
);
})}
<button className="bg-custom-purple w-full hidden md:block px-2 border-2 border-white rounded text-white hover:bg-white hover:text-indigo-700 duration-500 ">
Get Started
</button>
</ul>
</div>
</nav>
</>
);
<div
className={`nav-menu w-full my-1 md:my-4 md:w-4/5 lg:w-3/4 md:flex justify-end transition-all duration-500 ease-in absolute md:static z-[-1] md:z-auto ${
isOpen ? "top-[55px]" : " top-[-150px]"
}`}
>
<ul className="nav-list md:flex w-full lg:w-3/5 justify-evenly text-center md:bg-transparent bg-white pr-6">
{links.map((val) => {
return (
<li className="navlink text-lg w-full py-3 md:py-0">
<a
href={val.link}
className="md:text-white text-indigo-500 hover:font-bold "
>
{val.name}
</a>
</li>
);
})}
<button className="bg-indigo-500 w-full hidden md:block px-2 border-2 border-white rounded text-white hover:bg-white hover:text-indigo-700 duration-500 ">
Get Started
</button>
</ul>
</div>
</nav>
</>
);
};

export default Navbar;
Loading