diff --git a/src/app/directory/components/TeamRow.module.css b/src/app/directory/components/TeamRow.module.css new file mode 100644 index 00000000..e23e65e9 --- /dev/null +++ b/src/app/directory/components/TeamRow.module.css @@ -0,0 +1,7 @@ +.table :where(td) { + @apply py-1; +} + +.table :where(th) { + @apply pb-6; +} \ No newline at end of file diff --git a/src/app/directory/components/TeamRow.tsx b/src/app/directory/components/TeamRow.tsx new file mode 100644 index 00000000..77c146af --- /dev/null +++ b/src/app/directory/components/TeamRow.tsx @@ -0,0 +1,36 @@ +import { PencilSquareIcon } from "@heroicons/react/24/solid"; +import { TeamMember } from "./fixtures/MyTeam"; +import { Button } from "@/components"; + +interface TeamRowProps { + teamMember: TeamMember; + currentUserId: string; +} + +function TeamRow({ teamMember, currentUserId }: TeamRowProps) { + return ( + + {teamMember.name} + {teamMember.discordId} + +
+ {teamMember.averageHour === 0 ? "Add hours" : teamMember.averageHour} + {teamMember.id === currentUserId && ( + + )} +
+ + {teamMember.location} + {teamMember.timeZone} + {teamMember.email} + {teamMember.position} + + ); +} + +export default TeamRow; diff --git a/src/app/directory/components/TeamTable.tsx b/src/app/directory/components/TeamTable.tsx new file mode 100644 index 00000000..636991f3 --- /dev/null +++ b/src/app/directory/components/TeamTable.tsx @@ -0,0 +1,41 @@ +import styles from "./TeamRow.module.css"; +import { teamMembers } from "./fixtures/MyTeam"; +import { TeamRow } from "."; + +// Temp: +const currentUserId = "1"; + +function TeamTable() { + return ( +
+ + {/* head */} + + + + + + + + + + + + + {/* rows */} + {teamMembers.map((teamMember) => ( + + ))} + +
NameDiscord IDAverage Hour/SprintLocationTime ZoneEmailPosition
+
+ ); +} + +export default TeamTable; diff --git a/src/app/directory/components/fixtures/MyTeam.ts b/src/app/directory/components/fixtures/MyTeam.ts new file mode 100644 index 00000000..297d2e56 --- /dev/null +++ b/src/app/directory/components/fixtures/MyTeam.ts @@ -0,0 +1,53 @@ +export interface TeamMember { + id: string; + name: string; + discordId: string; + averageHour: number; + location: string; + timeZone: string; + email: string; + position: string; +} + +export const teamMembers: TeamMember[] = [ + { + id: "1", + name: "Danney Trieu", + discordId: "danneytrieuwork#2558", + averageHour: 0, + location: "Denver, CO, USA", + timeZone: "MDT", + email: "danney@gmail.com", + position: "Product Owner", + }, + { + id: "2", + name: "Jane Morez", + discordId: "Jan_morez#2341", + averageHour: 0, + location: "Las Vegas, NY, USA", + timeZone: "PDT", + email: "jane@gmail.com", + position: "Back-end Developer", + }, + { + id: "3", + name: "Kayla Montre", + discordId: "KaylaMon#5678", + averageHour: 12, + location: "Las Vegas, NY, USA", + timeZone: "PDT", + email: "kayla@gmail.com", + position: "UX/UI Designer", + }, + { + id: "4", + name: "Jackson Pez", + discordId: "jackson#2558", + averageHour: 10, + location: "Denver, CO, USA", + timeZone: "MDT", + email: "jackson@gmail.com", + position: "Front-end Developer", + }, +]; diff --git a/src/app/directory/components/index.ts b/src/app/directory/components/index.ts new file mode 100644 index 00000000..2e1afbb7 --- /dev/null +++ b/src/app/directory/components/index.ts @@ -0,0 +1,2 @@ +export { default as TeamTable } from "./TeamTable"; +export { default as TeamRow } from "./TeamRow"; diff --git a/src/app/directory/index.ts b/src/app/directory/index.ts new file mode 100644 index 00000000..2b241792 --- /dev/null +++ b/src/app/directory/index.ts @@ -0,0 +1 @@ +export { default as DirectoryPage } from "./page"; diff --git a/src/app/directory/page.tsx b/src/app/directory/page.tsx new file mode 100644 index 00000000..7cc644d0 --- /dev/null +++ b/src/app/directory/page.tsx @@ -0,0 +1,7 @@ +import { TeamTable } from "./components"; + +function DirectoryPage() { + return ; +} + +export default DirectoryPage; diff --git a/src/app/globals.css b/src/app/globals.css index cc294bc0..273d332d 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -5,6 +5,7 @@ ::-webkit-scrollbar { width: 4px; + height: 6px } ::-webkit-scrollbar-track { diff --git a/src/app/tech-stack/components/TechStackContainer.tsx b/src/app/tech-stack/components/TechStackContainer.tsx index 10c0a722..669ea824 100644 --- a/src/app/tech-stack/components/TechStackContainer.tsx +++ b/src/app/tech-stack/components/TechStackContainer.tsx @@ -16,7 +16,7 @@ export default function TechStackContainer() {
-