added part of Poll Page

master
YasamanKahdooei 2024-05-01 16:23:08 +03:30
parent 66dcd0b0b8
commit 13b80b143e
5 changed files with 56 additions and 4 deletions

View File

@ -4,7 +4,7 @@ import React from "react";
export default function page() {
return (
<section className="flex w-full md:grid md:grid-cols-2 h-full items-center flex-col overflow-y-auto p-5 scrollbar-thin scrollbar-thumb-yellow scrollbar-track-white">
<section className="flex w-full md:grid md:grid-cols-2 h-full items-start flex-col overflow-y-auto p-5 scrollbar-thin scrollbar-thumb-yellow scrollbar-track-white">
<RequestCard />
{/* <RequestList /> */}
</section>

View File

@ -0,0 +1,9 @@
import React from 'react'
function page() {
return (
<div>page</div>
)
}
export default page

View File

@ -1,7 +1,10 @@
import React from 'react'
import Polls from "@/components/Polls/Polls";
import React from "react";
export default function page() {
return (
<div>page</div>
)
<section className="flex flex-col md:flex-row flex-wrap w-full gap-5 h-full items-start overflow-y-auto p-5 scrollbar-thin scrollbar-thumb-yellow scrollbar-track-white">
<Polls />
</section>
);
}

21
components/Polls/Poll.tsx Normal file
View File

@ -0,0 +1,21 @@
import Link from "next/link";
import React from "react";
import { FaRegChartBar } from "react-icons/fa6";
const Poll = () => {
return (
<Link
href={"#"}
className="flex flex-col items-start justify-around w-72 h-48 bg-white shadow-[0_0_2px_1px_rgba(0,0,0,0.1)] rounded-lg p-3"
>
<FaRegChartBar className="text-2xl text-blue mb-3" />
<p className="text-lg font-bold text-black mb-3">عنوان</p>
<p className="text-[15px] text-gray-400 mb-3">سوال</p>
<p className="text-xs w-full mt-3 pt-3 border-t-[1px] border-t-gray-200 font-bold text-gray-400">
تاریخ و زمان
</p>
</Link>
);
};
export default Poll;

View File

@ -0,0 +1,19 @@
import React from "react";
import Poll from "./Poll";
function Polls() {
return (
<>
{/* Loading */}
{/* SuccessFull */}
<Poll />
<Poll />
<Poll />
<Poll />
<Poll />
</>
);
}
export default Polls;