complete wallet page

This commit is contained in:
Alihaghighattalab
2024-08-08 10:33:58 +03:30
parent f7450f8822
commit 65943cb1f3
13 changed files with 356 additions and 12 deletions
+1 -1
View File
@@ -5,7 +5,7 @@ export const Imei = () => {
return (
<div className="w-full flex flex-col lg:flex-row bg-auth-form p-[30px] rounded-[40px] gap-8">
<div className="w-full h-full flex items-center justify-center">
<img src="/svgs/home/binary.svg" alt="binary" className="size-full max-w-[500px] max-h-[500px]" />
<img src="/svgs/dashboard/binary.svg" alt="binary" className="size-full max-w-[500px] max-h-[500px]" />
</div>
<div className="flex flex-col w-full gap-10 justify-center lg:justify-between">
<Input placeholder="کد IMEI" />
-35
View File
@@ -1,35 +0,0 @@
import { FC } from "react"
import { StatusBoxItemInterface } from "../../types"
import { filterNumber } from "../../utility/status"
type Props = {
item: StatusBoxItemInterface
}
export const StatusBoxItem: FC<Props> = ({ item }) => {
return (
<div className="w-full bg-auth-form p-[18px] h-full rounded-[40px] flex flex-col gap-[42px]">
<div className="size-16 bg-secondary-color flex justify-center rounded-full items-center">
{item?.icon}
</div>
<div className="flex flex-col gap-3">
<p className="font-normal text-base text-secondary-text-color">{item?.title}</p>
<div className="font-medium text-[28px] text-primary-text-color">
{item?.name === "coin" && (
<span className="flex items-end gap-x-1">
{filterNumber(item?.value)} <span className="text-lg font-normal">تومان</span>
</span>
)}
{item?.name === "dollar" && (
<span className="text-lg font-normal flex items-center gap-x-1">
$ <span className="font-medium text-[28px] text-primary-text-color">
{filterNumber(item?.value)}
</span>
</span>
)}
{item?.name !== "coin" && item?.name !== "dollar" && item?.value}
</div>
</div>
</div>
)
}
+1 -1
View File
@@ -1,6 +1,6 @@
import { StatusBoxItemInterface } from "../../types"
import { statusBoxItems } from "../../utility/status"
import { StatusBoxItem } from "./status-box-items"
import { StatusBoxItem } from "../common/status-box-items"
export const StatusBox = () => {