From e1e585df23242eb73ada6ac3051a5fde5ebb353f Mon Sep 17 00:00:00 2001 From: Jeff Sieu Date: Sun, 6 Nov 2022 16:11:22 +0800 Subject: [PATCH] [questions][ui] restyle landing, question pages (#517) --- .../questions/AnswerCommentListItem.tsx | 2 +- .../components/questions/LandingComponent.tsx | 56 +++--- .../questions/QuestionAggregateBadge.tsx | 2 +- .../card/question/BaseQuestionCard.tsx | 11 +- .../card/question/FullQuestionCard.tsx | 1 + .../questions/layout/BackButtonLayout.tsx | 30 ++++ .../answer/[answerId]/[answerSlug]/index.tsx | 129 +++++++------- .../[questionId]/[questionSlug]/index.tsx | 166 +++++++++--------- apps/portal/src/pages/questions/index.tsx | 8 + 9 files changed, 223 insertions(+), 182 deletions(-) create mode 100644 apps/portal/src/components/questions/layout/BackButtonLayout.tsx diff --git a/apps/portal/src/components/questions/AnswerCommentListItem.tsx b/apps/portal/src/components/questions/AnswerCommentListItem.tsx index c65a379f..a51cd291 100644 --- a/apps/portal/src/components/questions/AnswerCommentListItem.tsx +++ b/apps/portal/src/components/questions/AnswerCommentListItem.tsx @@ -25,7 +25,7 @@ export default function AnswerCommentListItem({ useAnswerCommentVote(answerCommentId); return ( -
+
void; }; -export default function LandingComponent({ - onLanded: handleLandingQuery, -}: LandingComponentProps) { +export default function LandingComponent({ onLanded }: LandingComponentProps) { const defaultCompany = useDefaultCompany(); const defaultLocation = useDefaultLocation(); @@ -70,17 +68,17 @@ export default function LandingComponent({
-
+
Questions Bank -

+

Tech Interview Question Bank

-

+

Know the{' '} latest SWE interview questions @@ -118,22 +116,34 @@ export default function LandingComponent({ }} />

-