TTime/frontend/src/Pages/YourProjectsPage.tsx

32 lines
963 B
TypeScript
Raw Normal View History

import BasicWindow from "../Components/BasicWindow";
import { ProjectListUser } from "../Components/ProjectListUser";
2024-03-18 09:56:07 +01:00
import { Project } from "../Types/goTypes";
2024-03-07 11:43:19 +01:00
function YourProjectsPage(): JSX.Element {
//TODO: Change so that it reads projects from database
const projects: Project[] = [];
for (let i = 1; i <= 20; i++) {
projects.push({
id: i,
name: "Example Project " + i,
description: "good",
created: "now",
owner: "me",
});
}
2024-03-07 11:43:19 +01:00
const content = (
<>
<h1 className="font-bold text-[30px] mb-[20px]">Your Projects</h1>
<div className="border-4 border-black bg-white flex flex-col items-center h-[65vh] w-[50vw] rounded-3xl content-center overflow-scroll space-y-[10vh] p-[30px]">
<ProjectListUser projects={projects} />
2024-03-07 11:43:19 +01:00
</div>
</>
);
2024-03-07 11:43:19 +01:00
const buttons = <></>;
return <BasicWindow username="Admin" content={content} buttons={buttons} />;
}
2024-03-07 11:43:19 +01:00
export default YourProjectsPage;