design style step head
This commit is contained in:
@@ -4,26 +4,26 @@ import UserEdit from "@/components/icons/UserEdit";
|
|||||||
|
|
||||||
function Step({ value }) {
|
function Step({ value }) {
|
||||||
const list = [
|
const list = [
|
||||||
{ icon: <UserEdit active={value === 0} />, name: "اطلاعات عمومی" },
|
{ icon: <UserEdit active={value >= 0} />, name: "اطلاعات عمومی" },
|
||||||
{ icon: <LocationAdd active={value === 1} />, name: "اطلاعات مطب" },
|
{ icon: <LocationAdd active={value >= 1} />, name: "اطلاعات مطب" },
|
||||||
{ icon: <CalendarTick active={value === 2} />, name: "روزهای کاری" },
|
{ icon: <CalendarTick active={value >= 2} />, name: "روزهای کاری" },
|
||||||
];
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ul className="flex items-center justify-center">
|
<ul className="flex items-center justify-center">
|
||||||
{list.map((item, idx) => (
|
{list.map((item, idx) => (
|
||||||
<li className="" key={idx}>
|
<li className="flex items-center justify-center" key={idx}>
|
||||||
<div className="flex flex-col items-center justify-center gap-2">
|
<div className="flex flex-col items-center justify-center gap-2">
|
||||||
<div
|
<div
|
||||||
className={`flex items-center w-fit justify-center p-[18px] rounded-full
|
className={`flex items-center justify-center p-[18px] w-[75px] h-[75px] rounded-full
|
||||||
${value === idx ? "bg-[#5559CE]" : "bg-[#F6F6F6]"}`}
|
${value >= idx ? "bg-[#5559CE]" : "bg-[#F6F6F6]"}`}
|
||||||
>
|
>
|
||||||
{item.icon}
|
{item.icon}
|
||||||
</div>
|
</div>
|
||||||
<p
|
<p
|
||||||
className={`text-[16px]
|
className={`text-[16px]
|
||||||
${
|
${
|
||||||
value === idx
|
value >= idx
|
||||||
? "font-bold text-[#5559CE]"
|
? "font-bold text-[#5559CE]"
|
||||||
: "font-normal text-[#616161]"
|
: "font-normal text-[#616161]"
|
||||||
}`}
|
}`}
|
||||||
@@ -31,6 +31,13 @@ function Step({ value }) {
|
|||||||
{item.name}
|
{item.name}
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
|
{list.length > idx + 1 && (
|
||||||
|
<span
|
||||||
|
className={`block rounded-[16px] h-[2px] w-[100px] ${
|
||||||
|
value >= idx ? "bg-[#5559CE]" : "bg-[#EFEFEF]"
|
||||||
|
}`}
|
||||||
|
></span>
|
||||||
|
)}
|
||||||
</li>
|
</li>
|
||||||
))}
|
))}
|
||||||
</ul>
|
</ul>
|
||||||
|
|||||||
Reference in New Issue
Block a user