You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

27 lines
1.2 KiB

  1. import BookmarkedPages from "@/Components/DashboardComponents/BookmarkedPages";
  2. import BulletinBoard from "@/Components/DashboardComponents/BulletinBoard";
  3. import ProjectsOverview from "@/Components/DashboardComponents/ProjectsOverview";
  4. import RecentLogs from "@/Components/DashboardComponents/RecentLogs";
  5. import { User } from "@/types";
  6. import { PropsWithChildren } from "react";
  7. export default function Admin({ user }: PropsWithChildren<{ user: User }>) {
  8. const thisUser = user;
  9. return (
  10. <div id="AdminDashboard" className="w-full h-full grid grid-cols-4 grid-rows-3 gap-6">
  11. <section className="col-start-1 col-span-4 row-start-1 row-span-2">
  12. <BulletinBoard user={thisUser} />
  13. </section>
  14. <section className="col-span-2 row-span-1">
  15. <ProjectsOverview user={thisUser} />
  16. </section>
  17. <section className="col-span-1 row-span-1">
  18. <BookmarkedPages user={thisUser} />
  19. </section>
  20. <RecentLogs user={thisUser} />
  21. <section className="col-span-1 row-span-1">
  22. </section>
  23. </div>
  24. );
  25. }