added project modal, portal, and backend code to get description
This commit is contained in:
@@ -6,6 +6,7 @@ interface ProjectData {
|
||||
title: string;
|
||||
repo?: string;
|
||||
summary: string;
|
||||
description?: string;
|
||||
tech: string;
|
||||
wip?: boolean;
|
||||
created_at: string;
|
||||
@@ -43,12 +44,16 @@ export default function Projects({ data }: PageProps<ProjectData>) {
|
||||
challenges that keep me busy when I'm not doing "real work" stuff!
|
||||
</p>
|
||||
<div class="grid grid-cols-1 sm:grid-cols-2">
|
||||
{projects.map((project: any) => {
|
||||
{projects.map((project: ProjectData) => {
|
||||
return (
|
||||
<ProjectCard
|
||||
title={project.title}
|
||||
repo={project.repo ?? undefined}
|
||||
summary={project.summary}
|
||||
description={
|
||||
project.description ??
|
||||
"No description found. Perhaps you should check out the repository instead!"
|
||||
}
|
||||
tech={project.tech}
|
||||
wip={project.wip ?? true}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user