Skip to content

Commit 4267ab0

Browse files
authored
Merge pull request hack2skill#6 from ANGELOANTU7/harshed
new component
2 parents 2adfb23 + bbe3e64 commit 4267ab0

File tree

13 files changed

+255
-9
lines changed

13 files changed

+255
-9
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: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ 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";
16+
import Anythingmore from "./components/Anythingmore";
1617

1718
function App() {
1819
return (
@@ -35,6 +36,11 @@ function App() {
3536

3637
<Route path="/uploadsyllabus" element={<Uploadsyllabus/>} />
3738
<Route path="/uploadnote" element={<Uploadnote/>} />
39+
<Route path="/uploadpyq" element={<Uploadpyq/>} />
40+
<Route path="/anythingmore" element={<Anythingmore/>} />
41+
42+
43+
3844
</Routes>
3945
</BrowserRouter>
4046
</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.
Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
import React, { useState } from 'react';
2+
3+
function Anythingmore() {
4+
const [details, setDetails] = useState('');
5+
6+
const handleInputChange = (event) => {
7+
setDetails(event.target.value);
8+
};
9+
10+
const handleSubmit = () => {
11+
// Perform any necessary actions with the submitted details
12+
console.log('Submitted details:', details);
13+
// You can add additional logic here, such as making an API call to save the details
14+
15+
// Clear the input field after submission
16+
setDetails('');
17+
};
18+
19+
return (
20+
<div className="flex flex-col items-center justify-center h-screen text-center w-screen bg-gradient-to-tr from-violet-700 via-green-600 to-green-400">
21+
<h1 className="text-3xl font-bold mb-4 text-white">Anything more to add!</h1>
22+
<textarea
23+
className="w-96 h-40 p-4 mb-4 rounded-md"
24+
value={details}
25+
onChange={handleInputChange}
26+
placeholder="Enter details..."
27+
></textarea>
28+
<button
29+
className="bg-violet-900 text-white py-2 px-6 rounded-lg"
30+
onClick={handleSubmit}
31+
>
32+
Finish
33+
</button>
34+
</div>
35+
);
36+
}
37+
38+
export default Anythingmore;

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>

0 commit comments

Comments
 (0)