Skip to content

Commit bbe3e64

Browse files
anythingmore component
1 parent 20a4099 commit bbe3e64

File tree

5 files changed

+53
-7
lines changed

5 files changed

+53
-7
lines changed

client/src/App.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import Features from "./components/Features";
1313
import Uploadsyllabus from "./components/Uploadsyllabus";
1414
import Uploadnote from "./components/Uploadnote";
1515
import Uploadpyq from "./components/Uploadpyq";
16+
import Anythingmore from "./components/Anythingmore";
1617

1718
function App() {
1819
return (
@@ -36,7 +37,10 @@ function App() {
3637
<Route path="/uploadsyllabus" element={<Uploadsyllabus/>} />
3738
<Route path="/uploadnote" element={<Uploadnote/>} />
3839
<Route path="/uploadpyq" element={<Uploadpyq/>} />
40+
<Route path="/anythingmore" element={<Anythingmore/>} />
41+
3942

43+
4044
</Routes>
4145
</BrowserRouter>
4246
</div>
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/Uploadnote.jsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ function Uploadnote({ moduleNumber }) {
119119
};
120120

121121
return (
122-
<div className="flex flex-col items-center justify-center text-center h-screen">
122+
<div className="flex flex-col items-center justify-center w-screen text-center h-screen bg-gradient-to-tr from-violet-700 via-green-600 to-green-400">
123123
{!fadeOut && (
124124
<motion.div
125-
className="bg-blue-500 text-white py-6 px-6 rounded-lg shadow-lg text-center justify-center items-center flex flex-col"
125+
className="bg-violet-900 text-white py-6 px-6 rounded-lg shadow-lg text-center justify-center items-center flex flex-col"
126126
initial={{ scale: 0 }}
127127
animate={{ scale: 1 }}
128128
transition={{ duration: 0.5 }}
@@ -154,7 +154,7 @@ function Uploadnote({ moduleNumber }) {
154154
>
155155
{uploading ? 'Uploaded' : 'Upload'}
156156
</motion.button>
157-
<Link to="/uploadpyq" className="bg-green-500 text-white py-3 px-6 ml-4 rounded-lg">
157+
<Link to="/uploadpyq" className="bg-green-500 text-white py-2 ml-4 px-6 mt-4 rounded-lg">
158158
Next
159159
</Link>
160160
</>

client/src/components/Uploadpyq.jsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,10 +119,10 @@ function Uploadpyq({ moduleNumber }) {
119119
};
120120

121121
return (
122-
<div className="flex flex-col items-center justify-center text-center">
122+
<div className="flex flex-col items-center justify-center w-screen text-center bg-gradient-to-tr from-violet-700 via-green-600 to-green-400">
123123
{!fadeOut && (
124124
<motion.div
125-
className="bg-blue-500 text-white py-6 px-6 mt-8 mb-8 rounded-lg shadow-lg justify-center items-center flex flex-col"
125+
className="bg-violet-900 text-white py-6 px-6 mt-8 mb-8 rounded-lg shadow-lg justify-center items-center flex flex-col"
126126
initial={{ scale: 0 }}
127127
animate={{ scale: 1 }}
128128
transition={{ duration: 0.5 }}

client/src/components/Uploadsyllabus.jsx

Lines changed: 6 additions & 2 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/87967-task-completed.json';
5+
import { Link } from 'react-router-dom';
56

67
function Uploadsyllabus() {
78
const [selectedFile, setSelectedFile] = useState(null);
@@ -67,9 +68,9 @@ function Uploadsyllabus() {
6768
};
6869

6970
return (
70-
<div className="flex flex-col items-center justify-center h-screen text-center">
71+
<div className="flex flex-col items-center justify-center h-screen w-screen text-center bg-gradient-to-tr from-violet-700 via-green-600 to-green-400">
7172
<motion.div
72-
className="bg-blue-500 text-white py-6 px-6 rounded-lg shadow-lg"
73+
className="bg-violet-900 text-white py-6 px-6 rounded-lg shadow-lg justify-center items-center flex flex-col"
7374
initial={{ scale: 0 }}
7475
animate={{ scale: 1 }}
7576
transition={{ duration: 0.5 }}
@@ -95,6 +96,9 @@ function Uploadsyllabus() {
9596
>
9697
{uploading ? 'Uploaded' : 'Upload'}
9798
</motion.button>
99+
<Link to="/anythingmore" className="bg-green-500 text-white py-2 px-6 mt-4 rounded-lg">
100+
Next
101+
</Link>
98102
</>
99103
) : (
100104
<motion.div

0 commit comments

Comments
 (0)