Skip to content

Commit

Permalink
Student view (#53)
Browse files Browse the repository at this point in the history
Co-authored-by: AKSHAT SHARMA <[email protected]>
  • Loading branch information
AryanGKulkarni and AkshatSharma5 authored Jun 2, 2024
1 parent e543943 commit f98d6b9
Show file tree
Hide file tree
Showing 29 changed files with 2,868 additions and 880 deletions.
98 changes: 97 additions & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,11 @@
},
"dependencies": {
"@radix-ui/colors": "^3.0.0",
"@radix-ui/react-accordion": "^1.1.2",
"@radix-ui/react-checkbox": "^1.0.4",
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-dropdown-menu": "^2.0.6",
"@radix-ui/react-hover-card": "^1.0.7",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-popover": "^1.0.7",
Expand All @@ -22,7 +24,6 @@
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-toast": "^1.1.5",
"@reduxjs/toolkit": "^2.0.1",
"@tailwindcss/forms": "^0.5.7",
"@tanstack/react-table": "^8.11.2",
"@types/qs": "^6.9.14",
"antd": "^5.13.1",
Expand Down Expand Up @@ -65,6 +66,7 @@
"yup": "^1.3.3"
},
"devDependencies": {
"@tailwindcss/forms": "^0.5.7",
"@types/js-cookie": "^3.0.6",
"@types/node": "latest",
"@types/papaparse": "^5.3.10",
Expand Down
81 changes: 0 additions & 81 deletions src/app/(routes)/student/[studentId]/page.tsx

This file was deleted.

87 changes: 87 additions & 0 deletions src/app/(routes)/student/interviewExperiences/page.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
"use client";
import React, { useState } from "react";
import { Separator } from "../../../../components/ui/separator";
import {
Accordion,
AccordionItem,
AccordionTrigger,
AccordionContent,
} from '@radix-ui/react-accordion';
import { ChevronDownIcon } from '@radix-ui/react-icons';
import {interviewExpData} from "../../../../dummyData/Interviews";

// interface Props {
// interviewExpData: InterviewExperience[];
// }



interface InterviewExperience {
ques: string;
ans: string;
student_name: string;
difficulty:string,
tags:Array<string>;
}

const InterviewExperiencesPage = () => {
const [open, setOpen] = useState<boolean>(false);
return (
<div>
<div>
<h1 className="text-xl font-bold px-3 py-5">Interview Experiences</h1>
</div>
<Separator/>
<div>
<Accordion
className=""
type="single"
defaultValue="1"
collapsible

>
{interviewExpData.map((e,i)=>(

<AccordionItem key={i} value={String(i+1)}
className="py-6 px-4 bg-white my-3 rounded-xl hover:drop-shadow-[0_0px_10px_rgba(0,0,0,0.25)] ">
<AccordionTrigger
className="font-semibold px-1 flex"
>
{e.ques}
<ChevronDownIcon className="ml-3 mt-0.5"/>


</AccordionTrigger>

<AccordionContent
className="px-1 pt-4"
>
<Separator className="mb-3"/>
{e.ans}
<br/>
<div className="flex gap-3">
<div className=" bg-slate-400 text-white mt-3 font-semibold px-2 py-1 border rounded-3xl inline-block text-xs ">
By {e.student_name}
</div>
<div className=" text-slate-500 mt-3 font-semibold px-2 py-1 border rounded-3xl inline-block border-slate-500 text-xs ">
{e.difficulty}
</div>
<div className=" text-slate-500 mt-3 font-semibold px-2 py-1 border rounded-3xl inline-block border-slate-500 text-xs ">
{e.tags[0]}
</div>
<div className=" text-slate-500 mt-3 font-semibold px-2 py-1 border rounded-3xl inline-block border-slate-500 text-xs ">
{e.tags[1]}
</div>
</div>
</AccordionContent>
</AccordionItem>

))}
</Accordion>
</div>

</div>
)
}

export default InterviewExperiencesPage;
Loading

0 comments on commit f98d6b9

Please sign in to comment.