-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Co-authored-by: AKSHAT SHARMA <[email protected]>
- Loading branch information
1 parent
e543943
commit f98d6b9
Showing
29 changed files
with
2,868 additions
and
880 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
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
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; |
Oops, something went wrong.