diff --git a/web/app/hacker/HackerForm/HackathonProfileForm.tsx b/web/app/hacker/HackerForm/HackathonProfileForm.tsx index b2f3256a..dd686f53 100644 --- a/web/app/hacker/HackerForm/HackathonProfileForm.tsx +++ b/web/app/hacker/HackerForm/HackathonProfileForm.tsx @@ -167,7 +167,7 @@ export default function Component() { Disagree handleAnswer(question.id, value)} + onValueChange={(value: any) => handleAnswer(question.id, value)} className="flex justify-center items-center space-x-6" > {[1, 2, 3, 4, 5].map((value) => ( @@ -182,16 +182,20 @@ export default function Component() { key={value} value={value.toString()} id={`q${question.id}-${value}`} - className={`h-8 w-8 border-4 rounded-full transition-colors duration-300 ${ - value <= 2 ? 'hover:bg-[#e4b4f9] border-[#d393f7]' : - value >= 4 ? 'hover:bg-[#baf2df] border-[#8ee9c2]' : - 'hover:bg-gray-200 border-gray-400' + className={`h-8 w-8 rounded-full transition-colors duration-300 ${ + answers[question.id] === value.toString() + ? (value <= 2 ? 'bg-[#d393f7] border-[#d393f7]' + : value >= 4 ? 'bg-[#8ee9c2] border-[#8ee9c2]' + : 'bg-gray-400 border-gray-400') + : 'border-4 ' + (value <= 2 ? 'hover:bg-[#e4b4f9] border-[#d393f7]' + : value >= 4 ? 'hover:bg-[#baf2df] border-[#8ee9c2]' + : 'hover:bg-gray-200 border-gray-400') }`} + onClick={() => handleAnswer(question.id, value.toString())} /> ))} - Agree

{question.category}

diff --git a/web/app/matching/MatchingPage/Matching.tsx b/web/app/matching/MatchingPage/Matching.tsx new file mode 100644 index 00000000..197d6ffa --- /dev/null +++ b/web/app/matching/MatchingPage/Matching.tsx @@ -0,0 +1,79 @@ +import React from 'react'; + +const Match = () => { + const matches = [ + { name: 'David', role: '3rd Year Software Engineer', skills: 'Java, Python, React', photo: 'https://via.placeholder.com/150' }, + { name: 'David', role: '3rd Year Software Engineer', skills: 'Java, Python, React', photo: 'https://via.placeholder.com/150' }, + { name: 'David', role: '3rd Year Software Engineer', skills: 'Java, Python, React', photo: 'https://via.placeholder.com/150' }, + { name: 'David', role: '3rd Year Software Engineer', skills: 'Java, Python, React', photo: 'https://via.placeholder.com/150' }, + { name: 'David', role: '3rd Year Software Engineer', skills: 'Java, Python, React', photo: 'https://via.placeholder.com/150' } + ]; + + return ( +
+ {/* Header Section */} +
+

Let’s find your match!

+
+ Pie Chart +
+

Python - 71.7%

+

JavaScript - 22.9%

+

Other - 2.7%

+
+
+
+ + {/* Middle Section - Brown Bar and White Box */} +
+
+
+

+ Here are the 5 people attending Hack The North that we think you should meet. Take the next step and reach out! +

+
+
+ + {/* Profiles Section - 3 on top, 2 on bottom */} +
+ {matches.slice(0, 3).map((match, index) => ( +
+ {match.name} +

{match.name}

+

{match.role}

+

{match.skills}

+ Contact +
+ ))} +
+ +
+ {matches.slice(3).map((match, index) => ( +
+ {match.name} +

{match.name}

+

{match.role}

+

{match.skills}

+ Contact +
+ ))} +
+
+ ); +}; + +export default Match; diff --git a/web/app/matching/layout.tsx b/web/app/matching/layout.tsx new file mode 100644 index 00000000..0373c309 --- /dev/null +++ b/web/app/matching/layout.tsx @@ -0,0 +1,64 @@ +import { Button } from "@/components/ui/button"; +import Image from "next/image"; +import Link from "next/link"; +import { ReactNode } from "react"; + +export default function SplashPageLayout({ + children, +}: { + children: ReactNode; +}) { + return ( +
+
+ +
+
{children}
+ +
+ ); +} + +function FooterLink({ href, children }: { href: string; children: ReactNode }) { + return ( + + {children} + + ); +} + +function SplashPageNav() { + return ( + <> + + + + + + ); +} diff --git a/web/app/matching/page.tsx b/web/app/matching/page.tsx new file mode 100644 index 00000000..1a068260 --- /dev/null +++ b/web/app/matching/page.tsx @@ -0,0 +1,5 @@ +import SurveyForm from "./MatchingPage/Matching"; + +export default function HomePage() { + return ; +} \ No newline at end of file