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";
1313import Uploadsyllabus from "./components/Uploadsyllabus" ;
1414import Uploadnote from "./components/Uploadnote" ;
1515import Uploadpyq from "./components/Uploadpyq" ;
16+ import Anythingmore from "./components/Anythingmore" ;
1617
1718function 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 >
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 }) {
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 </ >
Original file line number Diff line number Diff 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 } }
Original file line number Diff line number Diff line change @@ -2,6 +2,7 @@ import React, { useState } from 'react';
22import { motion } from 'framer-motion' ;
33import Lottie from 'lottie-react' ;
44import animationData from '../assets/87967-task-completed.json' ;
5+ import { Link } from 'react-router-dom' ;
56
67function 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
You can’t perform that action at this time.
0 commit comments