design dark mode list page panel

This commit is contained in:
Ehsan
2024-09-28 19:35:19 +03:30
parent 92945e60e4
commit 8e165bb2a7
4 changed files with 27 additions and 23 deletions
+16 -12
View File
@@ -4,11 +4,11 @@ import Image from "next/image";
function ColTable({ data, loading }) {
return (
<ul className="flex md:hidden flex-col gap-[16px]">
<ul className="grid grid-cols-1 sm:grid-cols-2 md:hidden flex-col gap-[16px]">
{data.map((item, idx) => (
<li
key={idx}
className="bg-[#FFF] p-[12px] rounded-[8px] shadow-[0px_1px_24.8px_0px_rgba(204,204,204,0.18)]"
className="bg-[#FFF] p-[12px] rounded-[8px] shadow-[0px_1px_24.8px_0px_rgba(204,204,204,0.18)] dark:shadow-transparent dark:bg-[#222433]"
>
<div className="flex items-center justify-between">
<div className="flex items-center justify-start gap-[8px] !text-nowrap">
@@ -16,42 +16,46 @@ function ColTable({ data, loading }) {
<Image src={item.image} alt="doctor" height={32} width={32} />
</CircularLoading>
<TextLoading width={40} height={18} loading={loading}>
{item.name}
<p className="text-[#616161] dark:text-[#D7D8ED]">
{item.name}
</p>
</TextLoading>
</div>
<TextLoading width={105} height={18} loading={loading}>
<p className="px-[8px] py-[4px] text-[#F17732] text-[14px] font-medium bg-[rgba(255,216,197,0.50)] rounded-[4px]">
<p className="px-[8px] py-[4px] text-[#F17732] dark:bg-[#4E2E39] dark:text-[#FF5450] text-[14px] font-medium bg-[rgba(255,216,197,0.50)] rounded-[4px]">
تعداد نوبت: {item.number_of_turns}
</p>
</TextLoading>
</div>
<div className="flex flex-col mt-[16px]">
<div className="flex items-center justify-between">
<p className="text-[#7E7E7E] text-[14px] font-normal">تخصص:</p>
<p className="text-[#7E7E7E] dark:text-[#A1A1A1] text-[14px] font-normal">
تخصص:
</p>
<TextLoading width={90} height={18} loading={loading}>
<p className="text-[#616161] text-[14px] font-medium">
<p className="text-[#616161] dark:text-[#A1A1A1] text-[14px] font-medium">
{item.expertise}
</p>
</TextLoading>
</div>
<span className="block h-px w-full bg-[#EFEFEF] my-[12px]"></span>
<span className="block h-px w-full bg-[#EFEFEF] dark:bg-[#343645] my-[12px]"></span>
<div className="flex items-center justify-between">
<p className="text-[#7E7E7E] text-[14px] font-normal">
<p className="text-[#7E7E7E] dark:text-[#A1A1A1] text-[14px] font-normal">
تاریخ نوبت:
</p>
<TextLoading width={85} height={18} loading={loading}>
<p className="text-[#616161] text-[14px] font-medium">
<p className="text-[#616161] dark:text-[#A1A1A1] text-[14px] font-medium">
{item.date}
</p>
</TextLoading>
</div>
<span className="block h-px w-full bg-[#EFEFEF] my-[12px]"></span>
<span className="block h-px w-full bg-[#EFEFEF] dark:bg-[#343645] my-[12px]"></span>
<div className="flex items-center justify-between">
<p className="text-[#7E7E7E] text-[14px] font-normal">
<p className="text-[#7E7E7E] dark:text-[#A1A1A1] text-[14px] font-normal">
ساعت نوبت:
</p>
<TextLoading width={60} height={18} loading={loading}>
<p className="text-[#616161] text-[14px] font-medium">
<p className="text-[#616161] dark:text-[#A1A1A1] text-[14px] font-medium">
{item.hour}
</p>
</TextLoading>