diff --git a/insights-ui/src/app/crowd-funding/projects/[projectId]/page.tsx b/insights-ui/src/app/crowd-funding/projects/[projectId]/page.tsx index bc8fb5b30..d1eb9b3c1 100644 --- a/insights-ui/src/app/crowd-funding/projects/[projectId]/page.tsx +++ b/insights-ui/src/app/crowd-funding/projects/[projectId]/page.tsx @@ -5,6 +5,7 @@ import React from 'react'; import Breadcrumbs from '@/components/ui/Breadcrumbs'; import PageWrapper from '@dodao/web-core/components/core/page/PageWrapper'; import ProjectDetailPage from '@/components/projects/ProjectDetailPage'; +import NewProjectDetailPage from '@/components/projects/NewProductDeatilPage'; export default async function ProjectDetailPageWrapper({ params }: { params: Promise<{ projectId: string }> }) { const { projectId } = await params; @@ -25,6 +26,7 @@ export default async function ProjectDetailPageWrapper({ params }: { params: Pro return ( + ); diff --git a/insights-ui/src/components/projects/NewProductDeatilPage.tsx b/insights-ui/src/components/projects/NewProductDeatilPage.tsx new file mode 100644 index 000000000..8c3bb592d --- /dev/null +++ b/insights-ui/src/components/projects/NewProductDeatilPage.tsx @@ -0,0 +1,103 @@ +import { ArrowPathIcon, CloudArrowUpIcon, FingerPrintIcon, LockClosedIcon } from '@heroicons/react/24/outline'; +import RadarChart from '../ui/RadarChart'; +import { ProjectDetails, SpiderGraph } from '@/types/project/project'; + +const features = [ + { + name: 'Push to deploy', + description: 'Morbi viverra dui mi arcu sed. Tellus semper adipiscing suspendisse semper morbi. Odio urna massa nunc massa.', + icon: CloudArrowUpIcon, + }, + { + name: 'SSL certificates', + description: 'Sit quis amet rutrum tellus ullamcorper ultricies libero dolor eget. Sem sodales gravida quam turpis enim lacus amet.', + icon: LockClosedIcon, + }, + { + name: 'Simple queues', + description: 'Quisque est vel vulputate cursus. Risus proin diam nunc commodo. Lobortis auctor congue commodo diam neque.', + icon: ArrowPathIcon, + }, + { + name: 'Advanced security', + description: 'Arcu egestas dolor vel iaculis in ipsum mauris. Tincidunt mattis aliquet hac quis. Id hac maecenas ac donec pharetra eget.', + icon: FingerPrintIcon, + }, +]; +interface ProjectDetailPageProps { + projectId: string; + initialProjectDetails: ProjectDetails; + spiderGraph: SpiderGraph | null; +} + +export default function NewProjectDetailPage({ projectId, initialProjectDetails, spiderGraph }: ProjectDetailPageProps) { + return ( +
+
+
+

{initialProjectDetails.name}

+ {spiderGraph && ( + <> +
+ +
+
+
+
+
Crowd Funding Link
+
{initialProjectDetails.projectInfoInput.crowdFundingUrl}
+
+
+
Website Link
+
{initialProjectDetails.projectInfoInput.websiteUrl}
+
+
+
SEC Filing Link
+
{initialProjectDetails.projectInfoInput.secFilingUrl}
+
+ {initialProjectDetails.projectInfoInput.additionalUrls && ( +
+
Additional Links
+ {initialProjectDetails.projectInfoInput.additionalUrls.map((url, index) => ( +
+ {url} +
+ ))} +
+ )} +
+
+
+
+ {Object.entries(spiderGraph).map(([key, values]) => ( +
+
+
+ {/* Placeholder for Icon (you can replace with actual icons) */} + +
+ {key.replace(/([A-Z])/g, ' $1').replace(/^./, (str) => str.toUpperCase())} +
+
+
    + {values.map((item, index) => ( +
  • + {item.score === 1 ? '✅' : '❌'} + {item.comment} +
  • + ))} +
+
+
+ ))} +
+
+ + )} +
+
+
+ ); +}