-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
45 changed files
with
172 additions
and
178 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions
4
src/components/layouts/Header.tsx → src/components/Header.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
3 changes: 2 additions & 1 deletion
3
src/components/shared/PersonCard.tsx → src/components/PersonCard.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
src/components/layouts/HomePage.tsx → src/components/pages/HomePage.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 3 additions & 6 deletions
9
src/components/layouts/PersonQAPage.tsx → src/components/pages/PersonQAPage.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
import { notFound } from "next/navigation"; | ||
|
||
import { QuestionItem } from "./questions"; | ||
import { PageContainer } from "~/components/PageContainer"; | ||
|
||
import { getQuestions } from "~/api-client/questions"; | ||
|
||
export async function QuestionsPage() { | ||
const questions = await getQuestions(); | ||
|
||
if (!questions) { | ||
notFound(); | ||
} | ||
|
||
return ( | ||
<PageContainer className="max-w-4xl"> | ||
{questions && ( | ||
<ul className="space-y-1"> | ||
{questions.map((item, index) => ( | ||
<li key={index}> | ||
<QuestionItem question={item} /> | ||
</li> | ||
))} | ||
</ul> | ||
)} | ||
</PageContainer> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { BACKLOG } from "~/utils/data"; | ||
|
||
export function BacklogCountLabel() { | ||
const todoList = BACKLOG.items.filter((item) => !item.done); | ||
const doneList = BACKLOG.items.filter((item) => item.done); | ||
|
||
return ( | ||
<div className="flex h-6 items-center justify-center rounded-full bg-stone-950 px-2"> | ||
<span className="mr-1 text-sm text-stone-50">{todoList.length}</span> | ||
<span className="text-sm text-stone-50 opacity-50"> | ||
{`/ ${doneList.length}`} | ||
</span> | ||
</div> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
import { CheckIcon } from "@heroicons/react/16/solid"; | ||
|
||
import { BacklogItem } from "~/utils/data"; | ||
import { cn } from "~/utils/handlers"; | ||
|
||
interface ListItemProps { | ||
item: BacklogItem; | ||
} | ||
|
||
export function BacklogListItem({ item }: ListItemProps) { | ||
return ( | ||
<li className="flex cursor-default items-start gap-3"> | ||
<span | ||
className={cn( | ||
"mt-0.5 flex size-5 shrink-0 items-center justify-center rounded-full", | ||
item.done | ||
? "bg-green-600/90" | ||
: "border border-stone-400/50 bg-stone-50", | ||
)} | ||
> | ||
{item.done ? <CheckIcon className="size-4 text-stone-50" /> : null} | ||
</span> | ||
<span | ||
className={cn( | ||
"text-base leading-snug", | ||
item.done && "text-stone-400/90 line-through", | ||
)} | ||
> | ||
{item.title} | ||
</span> | ||
</li> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
export * from "./BacklogCountLabel"; | ||
export * from "./BacklogListItem"; |
Oops, something went wrong.