-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9038c8d
commit 608a9d8
Showing
3 changed files
with
72 additions
and
5 deletions.
There are no files selected for viewing
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
67 changes: 67 additions & 0 deletions
67
packages/nextjs/app/rep-tokens-demo/_components/SingleCardConfig.tsx
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,67 @@ | ||
import { ImageProps } from "../../../components/rep-tokens/cards/value-cards/ImageCard"; | ||
import { | ||
ImageValueCardConfigProp, | ||
TokenCardConfigProps, | ||
TokenCardValuesConfigProps, | ||
ValueCardConfigProps, | ||
} from "../../../components/rep-tokens/types/Types"; | ||
|
||
export const balanceProps = { | ||
isRendering: true, | ||
classes: { | ||
card: "bg-red-300 rounded-lg bg-slate-300", | ||
value: "text-4xl mx-auto text-center text-black", | ||
}, | ||
isPrettyLoading: true, | ||
} as ValueCardConfigProps; | ||
|
||
export const imageProps = { | ||
isRendering: true, | ||
classes: { | ||
card: "bg-cyan-300 rounded-lg bg-slate-300 p-1", | ||
value: "rounded-lg mx-auto", | ||
}, | ||
imageProperties: new ImageProps("Token", 256, 256), | ||
isPrettyLoading: true, | ||
} as ImageValueCardConfigProp; | ||
|
||
export const nameProps = { | ||
isRendering: true, | ||
classes: { | ||
card: "bg-lime-300 rounded-lg bg-slate-300", | ||
value: "text-1xl text-center object-center mx-auto font-bold break-all text-black", | ||
}, | ||
isPrettyLoading: true, | ||
} as ValueCardConfigProps; | ||
|
||
export const descriptionProps = { | ||
isRendering: true, | ||
classes: { | ||
card: "bg-violet-300 rounded-lg bg-slate-300", | ||
value: "text-1xl mx-auto text-center break-words text-black", | ||
}, | ||
isPrettyLoading: true, | ||
} as ValueCardConfigProps; | ||
|
||
export const addressProps = { | ||
isRendering: true, | ||
classes: { | ||
card: "bg-pink-300 rounded-lg flex items-center justify-center bg-slate-300", | ||
value: " ml-1.5 text-base font-normal text-cyan-800", | ||
}, | ||
isPrettyLoading: true, | ||
} as ValueCardConfigProps; | ||
|
||
export const tokenCardValuesProps = { | ||
balanceProps, | ||
imageProps, | ||
nameProps, | ||
descriptionProps, | ||
addressProps, | ||
} as TokenCardValuesConfigProps; | ||
|
||
export const tokenCardConfigProps = { | ||
isRendering: true, | ||
cardClasses: "bg-slate-600 rounded-lg p-5 m-4 w-64", | ||
valuesProps: tokenCardValuesProps, | ||
} as TokenCardConfigProps; |
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