generated from worldcoin/minikit-react-template
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #58 from MindVault-Inc/feat/impl-test-results-page
feat: add tests page and fix to nav bar
- Loading branch information
Showing
4 changed files
with
88 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,83 @@ | ||
"use client" | ||
|
||
import { ActionCard } from "@/components/ui/ActionCard" | ||
import { ArrowUpRight } from "lucide-react" | ||
|
||
export default function ResultsPage() { | ||
const testResults = [ | ||
{ | ||
title: "Ideology Test", | ||
backgroundColor: "#42888D", | ||
iconBgColor: "#2C5154", | ||
Icon: ArrowUpRight, | ||
isEnabled: true | ||
}, | ||
{ | ||
title: "Personality Test", | ||
backgroundColor: "#E36C59", | ||
iconBgColor: "#2C5154", | ||
Icon: ArrowUpRight, | ||
isEnabled: false | ||
}, | ||
{ | ||
title: "Emotional Int Test", | ||
backgroundColor: "#778BAD", | ||
iconBgColor: "#2C5154", | ||
Icon: ArrowUpRight, | ||
isEnabled: false | ||
}, | ||
{ | ||
title: "Values Test", | ||
backgroundColor: "#DA9540", | ||
iconBgColor: "#2C5154", | ||
Icon: ArrowUpRight, | ||
isEnabled: false | ||
}, | ||
{ | ||
title: " ", | ||
backgroundColor: "#D9D9D9", | ||
iconBgColor: "#2C5154", | ||
Icon: ArrowUpRight, | ||
isEnabled: false | ||
}, | ||
{ | ||
title: " ", | ||
backgroundColor: "#D9D9D9", | ||
iconBgColor: "#2C5154", | ||
Icon: ArrowUpRight, | ||
isEnabled: false | ||
} | ||
] | ||
|
||
return ( | ||
<div className="flex min-h-screen flex-col items-center"> | ||
<div className="w-full bg-brand-tertiary rounded-b-[50px] shadow-lg pb-8 sm:pb-14 mb-6 sm:mb-8"> | ||
<div className="w-full max-w-2xl mx-auto px-4 pt-16 sm:pt-20"> | ||
<h1 className="text-center text-white text-3xl sm:text-4xl md:text-5xl font-bold font-spaceGrotesk leading-tight sm:leading-[50px] mb-3 sm:mb-4"> | ||
Tests Results | ||
</h1> | ||
<p className="text-center text-[#C9CDCE] text-lg font-normal font-spaceGrotesk leading-[25px]"> | ||
Insights based on <span className="font-bold">your results</span> | ||
</p> | ||
</div> | ||
</div> | ||
|
||
<div className="w-full max-w-7xl mx-auto px-4 pb-20"> | ||
<div className="grid grid-cols-2 gap-6 justify-items-center max-w-[400px] mx-auto"> | ||
{testResults.map((test, index) => ( | ||
<ActionCard | ||
key={index} | ||
title={test.isEnabled ? test.title : `${test.title} (Coming Soon)`} | ||
backgroundColor={test.backgroundColor} | ||
iconBgColor={test.iconBgColor} | ||
Icon={test.Icon} | ||
className={`transform transition-all duration-300 hover:scale-105 hover:-translate-y-1 ${ | ||
!test.isEnabled && "opacity-30 cursor-not-allowed" | ||
}`} | ||
/> | ||
))} | ||
</div> | ||
</div> | ||
</div> | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters