From 96248a8417e14fb8c7f9c40b918097fd3ac2c350 Mon Sep 17 00:00:00 2001 From: szelongq <72333104+szelongq@users.noreply.github.com> Date: Wed, 15 Nov 2023 15:41:14 +0800 Subject: [PATCH] Update homepage --- frontend/src/components/Home.tsx | 31 ++++++++++++++++--------------- frontend/src/pages/App.tsx | 1 - 2 files changed, 16 insertions(+), 16 deletions(-) diff --git a/frontend/src/components/Home.tsx b/frontend/src/components/Home.tsx index 6423f5ce..0213ea92 100644 --- a/frontend/src/components/Home.tsx +++ b/frontend/src/components/Home.tsx @@ -1,6 +1,7 @@ -import { useEffect } from "react"; +import React, { useEffect } from "react"; import { Box } from "@mui/material"; import ButtonModal from "./MatchingService/MatchButton"; +import QuestionsTable from "./Questions/QuestionsTable"; export default function Home() { // Sample data for practice questions (you can replace this with actual data) @@ -23,21 +24,21 @@ export default function Home() { }, []); return ( - -
-

Welcome to the Technical Interview Preparation Portal

+ +
-

Practice Questions

-
    - {practiceQuestions.map((question) => ( -
  • - {question.difficulty}: {question.count} questions -
  • - ))} -
- +

Welcome to the Technical Interview Preparation Portal

+
+

Match with someone

+ Match with a partner to collaborate and solve a problem together +

+ +

Practice on your own

+ Click on any question below to start your personal practice session +
-
-
+ + + ); } diff --git a/frontend/src/pages/App.tsx b/frontend/src/pages/App.tsx index c12a57a0..6e25ec28 100644 --- a/frontend/src/pages/App.tsx +++ b/frontend/src/pages/App.tsx @@ -12,7 +12,6 @@ export default function App() { - );