@@ -8,6 +8,7 @@ import Marquee from 'react-fast-marquee'; // Import Marquee
8
8
9
9
const ProjectsPage = ( ) => {
10
10
const [ allProjects , setAllProjects ] = useState ( [ ] ) ;
11
+ const [ isModalOpen , setIsModalOpen ] = useState ( false ) ;
11
12
const [ filteredProjects , setFilteredProjects ] = useState ( [ ] ) ;
12
13
const [ visibleProjects , setVisibleProjects ] = useState ( [ ] ) ;
13
14
const [ isLoading , setIsLoading ] = useState ( false ) ;
@@ -349,6 +350,46 @@ const ProjectsPage = () => {
349
350
className = "w-full rounded-lg border border-gray-700 bg-gray-800 px-4 py-2 text-white transition focus:outline-none focus:ring focus:ring-[#00a6fb]"
350
351
/>
351
352
</ div >
353
+ < div className = "mb-8 flex items-center justify-between" >
354
+ < button
355
+ onClick = { ( ) => setIsModalOpen ( true ) }
356
+ className = "rounded-lg bg-[#00a6fb] px-4 py-2 text-white transition-colors hover:bg-[#0089d2]"
357
+ >
358
+ Add Your Portfolio
359
+ </ button >
360
+ </ div >
361
+
362
+ { isModalOpen && (
363
+ < div className = "fixed inset-0 z-50 flex items-center justify-center bg-black bg-opacity-50" >
364
+ < div className = "w-full max-w-md rounded-lg bg-gray-800 p-6 text-white" >
365
+ < div className = "mb-4 flex items-center justify-between" >
366
+ < h2 className = "text-xl font-semibold" > Add Your Projects!</ h2 >
367
+ < button onClick = { ( ) => setIsModalOpen ( false ) } className = "text-gray-400 hover:text-white" >
368
+ X
369
+ </ button >
370
+ </ div >
371
+
372
+ < iframe
373
+ src = "https://tally.so/embed/wdRJar?alignLeft=1& hideTitle = 1 & transparentBackground = 1 & dynamicHeight = 1 "
374
+ width = "100%"
375
+ height = "500px"
376
+ frameBorder = "0"
377
+ title = "Tally Form"
378
+ className = "rounded-lg"
379
+ > </ iframe >
380
+
381
+ < div className = "mt-4 flex justify-end" >
382
+ < button
383
+ type = "button"
384
+ onClick = { ( ) => setIsModalOpen ( false ) }
385
+ className = "rounded-lg bg-gray-700 px-4 py-2 text-white transition-colors hover:bg-gray-600"
386
+ >
387
+ Close
388
+ </ button >
389
+ </ div >
390
+ </ div >
391
+ </ div >
392
+ ) }
352
393
353
394
< div className = "grid grid-cols-1 gap-6 sm:grid-cols-2 lg:grid-cols-3" >
354
395
{ visibleProjects . map ( ( project , index ) => (
0 commit comments