Skip to content

Commit 20a4099

Browse files
upload notes+pyq+summary
1 parent 3b3c1dc commit 20a4099

File tree

12 files changed

+207
-7
lines changed

12 files changed

+207
-7
lines changed

Local_Storage/pyqs_text/1.pdf

-985 KB
Binary file not shown.

Local_Storage/pyqs_text/2.pdf

-985 KB
Binary file not shown.

Local_Storage/pyqs_text/3.pdf

-985 KB
Binary file not shown.

Local_Storage/pyqs_text/4.pdf

-985 KB
Binary file not shown.

Local_Storage/pyqs_text/5.pdf

-985 KB
Binary file not shown.

client/src/App.jsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import Studyplanner from "./components/Studyplanner";
1212
import Features from "./components/Features";
1313
import Uploadsyllabus from "./components/Uploadsyllabus";
1414
import Uploadnote from "./components/Uploadnote";
15-
15+
import Uploadpyq from "./components/Uploadpyq";
1616

1717
function App() {
1818
return (
@@ -35,6 +35,8 @@ function App() {
3535

3636
<Route path="/uploadsyllabus" element={<Uploadsyllabus/>} />
3737
<Route path="/uploadnote" element={<Uploadnote/>} />
38+
<Route path="/uploadpyq" element={<Uploadpyq/>} />
39+
3840
</Routes>
3941
</BrowserRouter>
4042
</div>

client/src/assets/101391-online-test.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

client/src/assets/87967-task-completed.json

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

client/src/components/Hero.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ function Hero() {
1010
<div className="mr-auto place-self-center lg:col-span-7">
1111
<h1 className="max-w-2xl mb-4 text-4xl font-extrabold tracking-tight leading-none md:text-5xl xl:text-6xl dark:text-white">Unlock Your Academic Potential with LearnMateAI</h1>
1212
<p className="max-w-2xl mb-6 font-light text-gray-500 lg:mb-8 md:text-lg lg:text-xl dark:text-gray-400">Personalized Learning for Smarter Results</p>
13-
<Link to='/uploadnotes'>
13+
<Link to='/uploadnote'>
1414
<a href="#" className="inline-flex items-center justify-center px-5 py-3 mr-3 text-base font-medium text-center text-white rounded-lg bg-primary-700 hover:bg-primary-800 focus:ring-4 focus:ring-primary-300 dark:focus:ring-primary-900">
1515
Upload Notes
1616
<svg className="w-5 h-5 ml-2 -mr-1" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fillRule="evenodd" d="M10.293 3.293a1 1 0 011.414 0l6 6a1 1 0 010 1.414l-6 6a1 1 0 01-1.414-1.414L14.586 11H3a1 1 0 110-2h11.586l-4.293-4.293a1 1 0 010-1.414z" clipRule="evenodd"></path></svg>

client/src/components/Uploadnote.jsx

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ import React, { useState } from 'react';
22
import { motion } from 'framer-motion';
33
import Lottie from 'lottie-react';
44
import animationData from '../assets/95241-uploading.json';
5+
import { Link } from 'react-router-dom';
56

67
function Uploadnote({ moduleNumber }) {
78
const [numNotes, setNumNotes] = useState(0);
@@ -118,10 +119,10 @@ function Uploadnote({ moduleNumber }) {
118119
};
119120

120121
return (
121-
<div className="flex flex-col items-center justify-center text-center">
122-
{!fadeOut && ( // Render the component if fadeOut state is false
122+
<div className="flex flex-col items-center justify-center text-center h-screen">
123+
{!fadeOut && (
123124
<motion.div
124-
className="bg-blue-500 text-white py-6 px-6 rounded-lg shadow-lg"
125+
className="bg-blue-500 text-white py-6 px-6 rounded-lg shadow-lg text-center justify-center items-center flex flex-col"
125126
initial={{ scale: 0 }}
126127
animate={{ scale: 1 }}
127128
transition={{ duration: 0.5 }}
@@ -143,7 +144,7 @@ function Uploadnote({ moduleNumber }) {
143144
/>
144145
{renderUploadInputs()}
145146
<motion.button
146-
className={`bg-green-500 text-white py-2 px-6 rounded-lg ${
147+
className={`bg-green-500 text-white py-2 px-6 rounded-lg ml-4 ${
147148
uploading ? 'opacity-50 cursor-not-allowed' : ''
148149
}`}
149150
disabled={uploading || selectedFiles.some((file) => file === null)}
@@ -153,6 +154,9 @@ function Uploadnote({ moduleNumber }) {
153154
>
154155
{uploading ? 'Uploaded' : 'Upload'}
155156
</motion.button>
157+
<Link to="/uploadpyq" className="bg-green-500 text-white py-3 px-6 ml-4 rounded-lg">
158+
Next
159+
</Link>
156160
</>
157161
) : (
158162
<>
@@ -171,6 +175,9 @@ function Uploadnote({ moduleNumber }) {
171175
>
172176
Upload Another
173177
</motion.button>
178+
<Link to="/uploadpyq" className="text-blue-500 mt-8">
179+
Next
180+
</Link>
174181
</>
175182
)}
176183
</motion.div>

0 commit comments

Comments
 (0)