diff --git a/app/Dashboard/page.tsx b/app/Dashboard/page.tsx index d3fe0b7..37a7ce2 100644 --- a/app/Dashboard/page.tsx +++ b/app/Dashboard/page.tsx @@ -1,20 +1,27 @@ "use client"; import React, { useState, useEffect } from "react"; -import { getStoredProjects, StoredProject } from "../utils/storage"; +import { getStoredProjects, StoredProject,setProjectForEditing } from "../utils/storage"; import Link from 'next/link'; +import { useRouter } from "next/navigation"; export default function Dashboard() { const [query, setQuery] = useState(""); const [sideBarOpen, setSidebarOpen] = useState(true); const [sortOrder, setSortOrder] = useState("newest"); const [projects, setProjects] = useState([]); + const router = useRouter(); useEffect(() => { const storedProjects = getStoredProjects(); setProjects(storedProjects); }, []); + const handleRerun = (project: StoredProject) => { + setProjectForEditing(project); + router.push('/formfile'); + }; + const sortedProjects = [...projects].sort((a, b) => { const dateA = new Date(a.id).getTime(); const dateB = new Date(b.id).getTime(); @@ -39,15 +46,17 @@ export default function Dashboard() { }; return ( -
+
@@ -58,7 +55,12 @@ export default function Home() { className="w-full max-w-[450px] h-[350px] rounded-xl shadow-md flex items-center justify-center text-white" style={{ backgroundColor: "#173C46" }} > - Image Placeholder +  Img
@@ -81,11 +83,8 @@ export default function Home() { style={{ backgroundColor: "#B8C0AD" }} >

- First Text Block + Input your hackathon preferences and team skills to get tailored project ideas.

-

- This is the content for the first text block. You can write anything here. -

{/* Box 2 (Image) - Standardized Size */}
@@ -93,7 +92,12 @@ export default function Home() { className="w-full h-[350px] rounded-xl shadow-md flex items-center justify-center text-zinc-800" style={{ backgroundColor: "#B8C0AD" }} > - Image Placeholder +  Img
@@ -106,7 +110,12 @@ export default function Home() { className="w-full h-[350px] rounded-xl shadow-md flex items-center justify-center text-zinc-800" style={{ backgroundColor: "#B8C0AD" }} > - Image Placeholder +  Img {/* Box 4 (Text) - Standardized Size */} @@ -116,12 +125,8 @@ export default function Home() { style={{ backgroundColor: "#B8C0AD" }} >

- Second Text Block + Choose between generated project ideas by swiping left or right on the cards.

- {/* Fixed the typo to

*/} -

- This is the content for the second text block. You can write anything here. -

@@ -134,11 +139,8 @@ export default function Home() { style={{ backgroundColor: "#B8C0AD" }} >

- Third Text Block + Work on your chosen project idea with your team using our integrated chat-based AI assistant.

-

- This is the content for the third text block. You can write anything here. -

{/* Box 6 (Image) - Standardized Size */}
@@ -146,7 +148,12 @@ export default function Home() { className="w-full h-[350px] rounded-xl shadow-md flex items-center justify-center text-zinc-800" style={{ backgroundColor: "#B8C0AD" }} > - Image Placeholder +  Img
diff --git a/app/utils/geminiHelper.ts b/app/utils/geminiHelper.ts index 1eb5cb4..c044ad6 100644 --- a/app/utils/geminiHelper.ts +++ b/app/utils/geminiHelper.ts @@ -15,8 +15,8 @@ export async function chatToGemini( settings:ChatSetting ):Promise{ const model = genAI.getGenerativeModel({ - model:settings.model || "gemini-2.5-flash", - systemInstruction: settings.systemInstructions || "you are going to create a project idea, explain it in summery first before going to detail", + model:settings.model || "gemini-2.5-flash-lite", + systemInstruction: settings.systemInstructions || "you are going to create a project idea, explain it in summary first before going to detail", }); const generationConfig:GenerateConfig = { diff --git a/public/s1.jpeg b/public/s1.jpeg new file mode 100644 index 0000000..0a2857a Binary files /dev/null and b/public/s1.jpeg differ diff --git a/public/s2.jpeg b/public/s2.jpeg new file mode 100644 index 0000000..599270d Binary files /dev/null and b/public/s2.jpeg differ diff --git a/public/s3.jpeg b/public/s3.jpeg new file mode 100644 index 0000000..9b364b9 Binary files /dev/null and b/public/s3.jpeg differ diff --git a/public/s4.jpeg b/public/s4.jpeg new file mode 100644 index 0000000..cb43da9 Binary files /dev/null and b/public/s4.jpeg differ diff --git a/public/s5.jpeg b/public/s5.jpeg new file mode 100644 index 0000000..333d89e Binary files /dev/null and b/public/s5.jpeg differ