Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Amarjeet #7

Open
wants to merge 4 commits into
base: main
Choose a base branch
from
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
30 changes: 30 additions & 0 deletions E-learning-frontend/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions E-learning-frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
"@heroicons/react": "^2.1.5",
"@react-icons/all-files": "^4.1.0",
"axios": "^1.7.7",
"framer-motion": "^11.9.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-icons": "^5.3.0",
Expand Down
74 changes: 74 additions & 0 deletions E-learning-frontend/public/list.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
[
{
"id":1,
"name":"story book",
"title":"Kahani ki kitab",
"price":0,
"category":"Free",
"image":"https://www.freepik.com/free-vector/hand-drawn-flat-design-stack-books-illustration_24307396.htm#fromView=search&page=1&position=0&uuid=ddabc1c2-16dc-477e-916f-f37d293be0b6"

},
{
"id":2,
"name":"sports book",
"title":"Kahani ki kitab",
"price":50,
"category":"sports",
"image":"https://www.freepik.com/free-vector/hand-drawn-flat-design-stack-books-illustration_24307396.htm#fromView=search&page=1&position=0&uuid=ddabc1c2-16dc-477e-916f-f37d293be0b6"

},
{
"id":3,
"name":"music book",
"title":"Kahani ki kitab",
"price":70,
"category":"songs",
"image":"https://www.freepik.com/free-vector/hand-drawn-flat-design-stack-books-illustration_24307396.htm#fromView=search&page=1&position=0&uuid=ddabc1c2-16dc-477e-916f-f37d293be0b6"

}
, {
"id":4,
"name":"Horrore book",
"title":"Kahani ki kitab",
"price":110,
"category":"hollyvood",
"image":"https://www.freepik.com/free-vector/hand-drawn-flat-design-stack-books-illustration_24307396.htm#fromView=search&page=1&position=0&uuid=ddabc1c2-16dc-477e-916f-f37d293be0b6"

},
{
"id":5,
"name":"cooking book",
"title":"Kahani ki kitab",
"price":120,
"category":"cooking",
"image":"https://www.freepik.com/free-vector/hand-drawn-flat-design-stack-books-illustration_24307396.htm#fromView=search&page=1&position=0&uuid=ddabc1c2-16dc-477e-916f-f37d293be0b6"

},
{
"id":6,
"name":"moview book",
"title":"Kahani ki kitab",
"price":130,
"category":"Bollywood",
"image":"https://www.freepik.com/free-vector/hand-drawn-flat-design-stack-books-illustration_24307396.htm#fromView=search&page=1&position=0&uuid=ddabc1c2-16dc-477e-916f-f37d293be0b6"

},
{
"id":7,
"name":"jokes book",
"title":"Kahani ki kitab",
"price":90,
"category":"comic jokes",
"image":"https://www.freepik.com/free-vector/hand-drawn-flat-design-stack-books-illustration_24307396.htm#fromView=search&page=1&position=0&uuid=ddabc1c2-16dc-477e-916f-f37d293be0b6"

},
{
"id":8,
"name":"forming book",
"title":"Kahani ki kitab",
"price":100,
"category":"forming",
"image":"https://www.freepik.com/free-vector/hand-drawn-flat-design-stack-books-illustration_24307396.htm#fromView=search&page=1&position=0&uuid=ddabc1c2-16dc-477e-916f-f37d293be0b6"

}
]
5 changes: 4 additions & 1 deletion E-learning-frontend/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,13 @@ function App() {
<div className="min-h-screen flex flex-col">
<Navbar />
<main className="flex-grow flex items-center justify-center container mx-auto p-4">
<ComponentsRouter />
<ComponentsRouter />

</main>

</div>


</BrowserRouter>

</div>
Expand Down
2 changes: 1 addition & 1 deletion E-learning-frontend/src/Navbar.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ export default function Navbar() {

return (
<nav className="bg-gray-800 w-screen">
<div className="max-w-7xl mx-auto px-2 sm:px-6 lg:px-8">
<div className="max-w-7xl mx-auto px-2 sm:px-6 lg:px-8 ">
<div className="flex items-center justify-between h-16">
{/* Logo */}
<div className="flex items-center">
Expand Down
121 changes: 121 additions & 0 deletions E-learning-frontend/src/components/Hero/Hero.jsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,121 @@
// import React from 'react';
// import Heropng from '../../components/Hero/Hii.png'
// import { GrUserExpert } from "react-icons/gr";
// import { MdOutlineAccessTime } from "react-icons/md";
// import { FaBookReader } from "react-icons/fa";

// const Hero = () => {
// return (
// <div className='container py-14 md:py-24 grid .grid-cols-1 md:grid grid-cols-2 gap-8 space-y-6 md:space-y-0'>
// <div className='flrx justify-center items-center'>
// <img src={Heropng} alt=""
// className='w-[350px] md:max-w-[450px] object-cover drop-shadow'
// />
// </div>
// <div className='flex flex-col justify-center'>
// <div className='text-center md:text-left space-y-12'>
// <h1 className='text-3xl md:text-4xl font-bold !leading-snug text-white'>
// The world's Leading Online Learning plateform

// </h1>
// <div className='flex items-center gap-4 p-6 bg-[#f4f4f4] rounded-2xl hover:bg-gray-700 duration-300 hover:shadow-2xl'>
// <FaBookReader className='text-2xl'/>
// <p className="text-lg">1000+ Courses </p>
// </div>
// <div className='flex items-center gap-4 p-6 bg-[#f4f4f4] rounded-2xl hover:bg-gray-700 duration-300 hover:shadow-2xl'>
// <GrUserExpert className='text-2xl'/>
// <p className="text-lg">Expert Instruction </p>
// </div>
// <div className='flex items-center gap-4 p-6 bg-[#f4f4f4] rounded-2xl hover:bg-gray-700 duration-300 hover:shadow-2xl'>
// <MdOutlineAccessTime className='text-2xl'/>
// <p className="text-lg"> Lifetime Access</p>
// </div>


// </div>

// </div>

// </div>
// )
// }

// export default Hero;


import React from "react";
import BannPng from "../../components/Hero/Hii.png";
import { GrUserExpert } from "react-icons/gr";
import { MdOutlineAccessTime } from "react-icons/md";
import { FaBookReader } from "react-icons/fa";
// import { FadeUp } from "../Hero/Hero";
import { motion } from "framer-motion";

const Hero = () => {
return (
<section>
<div className="container py-14 md:py-24 grid grid-cols-1 md:grid-cols-2 gap-8 space-y-6 md:space-y-0">
{/* Banner Image */}
<div className="flex justify-center items-center">
<motion.img
initial={{ opacity: 0, x: -50 }}
whileInView={{ opacity: 1, x: 0 }}
viewport={{ once: true }}
transition={{ duration: 0.5, ease: "easeInOut" }}
src={BannPng}
alt=""
className="w-[350px] md:max-w-[450px] object-cover drop-shadow"
/>
</div>
{/* Banner Text */}
<div className="flex flex-col justify-center">
<div className="text-center md:text-left space-y-12">
<motion.h1
initial={{ opacity: 0, scale: 0.5 }}
whileInView={{ opacity: 1, scale: 1 }}
viewport={{ once: true }}
transition={{ duration: 0.5 }}
className="text-3xl md:text-4xl font-bold !leading-snug text-white"
>
The World's Leading Online learning Platform
</motion.h1>
<div className="flex flex-col gap-6">
<motion.div
// variants={FadeUp(0.2)}
initial="initial"
whileInView={"animate"}
viewport={{ once: true }}
className="flex items-center gap-4 p-6 bg-[#f7f7f7] rounded-2xl hover:bg-gray-700 duration-300 hover:shadow-2xl"
>
<FaBookReader className="text-2xl" />
<p className="text-lg">100+ Courses</p>
</motion.div>
<motion.div
// variants={FadeUp(0.4)}
initial="initial"
whileInView={"animate"}
viewport={{ once: true }}
className="flex items-center gap-4 p-6 bg-[#f4f4f4] rounded-2xl hover:bg-gray-700 duration-300 hover:shadow-2xl"
>
<GrUserExpert className="text-2xl" />
<p className="text-lg">Expert Instruction</p>
</motion.div>
<motion.div
// variants={FadeUp(0.6)}
initial="initial"
whileInView={"animate"}
viewport={{ once: true }}
className="flex items-center gap-4 p-6 bg-[#f4f4f4] rounded-2xl hover:bg-gray-700 duration-300 hover:shadow-2xl"
>
<MdOutlineAccessTime className="text-2xl" />
<p className="text-lg">Lifetime Access</p>
</motion.div>
</div>
</div>
</div>
</div>
</section>
);
};

export default Hero;
Binary file added E-learning-frontend/src/components/Hero/Hii.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading