File tree Expand file tree Collapse file tree 5 files changed +53
-7
lines changed Expand file tree Collapse file tree 5 files changed +53
-7
lines changed Original file line number Diff line number Diff line change @@ -13,6 +13,7 @@ import Features from "./components/Features";
13
13
import Uploadsyllabus from "./components/Uploadsyllabus" ;
14
14
import Uploadnote from "./components/Uploadnote" ;
15
15
import Uploadpyq from "./components/Uploadpyq" ;
16
+ import Anythingmore from "./components/Anythingmore" ;
16
17
17
18
function App ( ) {
18
19
return (
@@ -36,7 +37,10 @@ function App() {
36
37
< Route path = "/uploadsyllabus" element = { < Uploadsyllabus /> } />
37
38
< Route path = "/uploadnote" element = { < Uploadnote /> } />
38
39
< Route path = "/uploadpyq" element = { < Uploadpyq /> } />
40
+ < Route path = "/anythingmore" element = { < Anythingmore /> } />
41
+
39
42
43
+
40
44
</ Routes >
41
45
</ BrowserRouter >
42
46
</ div >
Original file line number Diff line number Diff line change
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 ;
Original file line number Diff line number Diff line change @@ -119,10 +119,10 @@ function Uploadnote({ moduleNumber }) {
119
119
} ;
120
120
121
121
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 " >
123
123
{ ! fadeOut && (
124
124
< 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"
126
126
initial = { { scale : 0 } }
127
127
animate = { { scale : 1 } }
128
128
transition = { { duration : 0.5 } }
@@ -154,7 +154,7 @@ function Uploadnote({ moduleNumber }) {
154
154
>
155
155
{ uploading ? 'Uploaded' : 'Upload' }
156
156
</ 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" >
158
158
Next
159
159
</ Link >
160
160
</ >
Original file line number Diff line number Diff line change @@ -119,10 +119,10 @@ function Uploadpyq({ moduleNumber }) {
119
119
} ;
120
120
121
121
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 " >
123
123
{ ! fadeOut && (
124
124
< 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"
126
126
initial = { { scale : 0 } }
127
127
animate = { { scale : 1 } }
128
128
transition = { { duration : 0.5 } }
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import React, { useState } from 'react';
2
2
import { motion } from 'framer-motion' ;
3
3
import Lottie from 'lottie-react' ;
4
4
import animationData from '../assets/87967-task-completed.json' ;
5
+ import { Link } from 'react-router-dom' ;
5
6
6
7
function Uploadsyllabus ( ) {
7
8
const [ selectedFile , setSelectedFile ] = useState ( null ) ;
@@ -67,9 +68,9 @@ function Uploadsyllabus() {
67
68
} ;
68
69
69
70
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 " >
71
72
< 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 "
73
74
initial = { { scale : 0 } }
74
75
animate = { { scale : 1 } }
75
76
transition = { { duration : 0.5 } }
@@ -95,6 +96,9 @@ function Uploadsyllabus() {
95
96
>
96
97
{ uploading ? 'Uploaded' : 'Upload' }
97
98
</ motion . button >
99
+ < Link to = "/anythingmore" className = "bg-green-500 text-white py-2 px-6 mt-4 rounded-lg" >
100
+ Next
101
+ </ Link >
98
102
</ >
99
103
) : (
100
104
< motion . div
You can’t perform that action at this time.
0 commit comments