2024-03-07 10:05:45 +01:00
|
|
|
import BasicWindow from "../Components/BasicWindow";
|
2024-03-16 02:23:52 +01:00
|
|
|
import { ProjectListUser } from "../Components/ProjectListUser";
|
2024-03-18 09:56:07 +01:00
|
|
|
import { Project } from "../Types/goTypes";
|
2024-03-07 10:05:45 +01:00
|
|
|
|
2024-03-07 11:43:19 +01:00
|
|
|
function YourProjectsPage(): JSX.Element {
|
2024-03-16 02:23:52 +01:00
|
|
|
//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>
|
2024-03-16 02:23:52 +01:00
|
|
|
<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 10:05:45 +01:00
|
|
|
);
|
2024-03-07 11:43:19 +01:00
|
|
|
|
|
|
|
const buttons = <></>;
|
|
|
|
|
|
|
|
return <BasicWindow username="Admin" content={content} buttons={buttons} />;
|
2024-03-07 10:05:45 +01:00
|
|
|
}
|
2024-03-07 11:43:19 +01:00
|
|
|
export default YourProjectsPage;
|