-
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
445ce43
commit 3fa7513
Showing
9 changed files
with
332 additions
and
2,066 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
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
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
52 changes: 52 additions & 0 deletions
52
packages/nextjs/components/rep-tokens-demo/tokens/tokens-card/MainTokensCardConfig.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,52 @@ | ||
import { TBaseTokenCardBooleanSet } from "../token-card/BaseTokenCard"; | ||
import { TTokenCardPrettifyLoadingProps, TTokenCardPropertiesClasses } from "../token-card/TokenCard"; | ||
import { TTokenGroupCardPrettifyLoadingProps, TTokensCardRenderProps } from "./TokensCard"; | ||
import { TTokenCardGroupPropertiesClasses } from "./TokensCard"; | ||
|
||
export const tokensCardRenderProps = { | ||
address: true, | ||
} as TTokensCardRenderProps; | ||
|
||
export const tokenCardRenderProps = { | ||
balance: true, | ||
image: true, | ||
name: true, | ||
description: true, | ||
} as TBaseTokenCardBooleanSet; | ||
|
||
export const tokensCardPropertiesClasses = { | ||
card: "bg-base-300 flex flex-col items-center", | ||
container: "flex justify-center", | ||
} as TTokenCardGroupPropertiesClasses; | ||
|
||
export const tokenCardPropertiesClasses = { | ||
card: "px-5 py-5 w-64", | ||
baseTokenCardPropertyClasses: { | ||
balance: { | ||
value: "text-4xl mx-auto text-center", | ||
}, | ||
name: { | ||
value: "text-1xl text-center object-center mx-auto font-bold break-all", | ||
}, | ||
description: { | ||
value: "text-1xl mx-auto text-center break-words", | ||
}, | ||
image: { | ||
value: "rounded mx-auto", | ||
}, | ||
}, | ||
} as TTokenCardPropertiesClasses; | ||
|
||
export const tokensCardPrettifyLoadingProps = { | ||
card: true, | ||
} as TTokenGroupCardPrettifyLoadingProps; | ||
|
||
export const tokenCardPrettifyLoadingProps = { | ||
card: false, | ||
baseTokenCardPrettifyLoadingProps: { | ||
balance: false, | ||
image: false, | ||
name: false, | ||
description: false, | ||
}, | ||
} as TTokenCardPrettifyLoadingProps; |
53 changes: 53 additions & 0 deletions
53
...s/components/rep-tokens-demo/tokens/tokens-card/MainTokensCardWithNumberOverlayConfig.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,53 @@ | ||
import { TBaseTokenCardBooleanSet } from "../token-card/BaseTokenCard"; | ||
import { TTokenCardPrettifyLoadingProps, TTokenCardPropertiesClasses } from "../token-card/TokenCard"; | ||
import { TTokenGroupCardPrettifyLoadingProps, TTokensCardRenderProps } from "./TokensCard"; | ||
import { TTokenCardGroupPropertiesClasses } from "./TokensCard"; | ||
|
||
export const tokensCardRenderProps = { | ||
address: true, | ||
} as TTokensCardRenderProps; | ||
|
||
export const tokenCardRenderProps = { | ||
balance: true, | ||
image: true, | ||
name: true, | ||
description: true, | ||
} as TBaseTokenCardBooleanSet; | ||
|
||
export const tokensCardPropertiesClasses = { | ||
card: "bg-base-300 flex flex-col items-center", | ||
container: "flex justify-center", | ||
} as TTokenCardGroupPropertiesClasses; | ||
|
||
export const tokenCardPropertiesClasses = { | ||
card: "px-5 py-5 relative w-64", | ||
baseTokenCardPropertyClasses: { | ||
balance: { | ||
container: "absolute top-1/4 left-1/2 transform -translate-x-1/2 -translate-y-1/3", | ||
value: "text-9xl mx-auto text-center", | ||
}, | ||
name: { | ||
value: "text-1xl text-center object-center mx-auto font-bold break-all", | ||
}, | ||
description: { | ||
value: "text-1xl mx-auto text-center break-words", | ||
}, | ||
image: { | ||
value: "rounded mx-auto", | ||
}, | ||
}, | ||
} as TTokenCardPropertiesClasses; | ||
|
||
export const tokensCardPrettifyLoadingProps = { | ||
card: true, | ||
} as TTokenGroupCardPrettifyLoadingProps; | ||
|
||
export const tokenCardPrettifyLoadingProps = { | ||
card: false, | ||
baseTokenCardPrettifyLoadingProps: { | ||
balance: false, | ||
image: false, | ||
name: false, | ||
description: false, | ||
}, | ||
} as TTokenCardPrettifyLoadingProps; |
47 changes: 47 additions & 0 deletions
47
packages/nextjs/components/rep-tokens-demo/tokens/tokens-card/NavBarCardConfig.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,47 @@ | ||
import { TBaseTokenCardBooleanSet } from "../token-card/BaseTokenCard"; | ||
import { TTokenCardPrettifyLoadingProps, TTokenCardPropertiesClasses } from "../token-card/TokenCard"; | ||
import { TTokenGroupCardPrettifyLoadingProps, TTokensCardRenderProps } from "./TokensCard"; | ||
import { TTokenCardGroupPropertiesClasses } from "./TokensCard"; | ||
|
||
export const tokensCardPropertiesClasses = { | ||
card: "bg-base-300 flex flex-col items-center", | ||
container: "flex justify-center", | ||
} as TTokenCardGroupPropertiesClasses; | ||
|
||
export const tokenCardPropertiesClasses = { | ||
card: "px-1 py-1 relative w-20", | ||
baseTokenCardPropertyClasses: { | ||
balance: { | ||
container: "absolute top-1/2 left-1/2 transform -translate-x-1/2 -translate-y-1/2", | ||
value: "text-4xl text-center justify-center", | ||
}, | ||
image: { | ||
value: "rounded mx-auto", | ||
}, | ||
}, | ||
} as TTokenCardPropertiesClasses; | ||
|
||
export const tokenCardRenderProps = { | ||
balance: true, | ||
image: true, | ||
name: false, | ||
description: false, | ||
} as TBaseTokenCardBooleanSet; | ||
|
||
export const tokensCardRenderProps = { | ||
address: true, | ||
} as TTokensCardRenderProps; | ||
|
||
export const tokensCardPrettifyLoadingProps = { | ||
card: true, | ||
} as TTokenGroupCardPrettifyLoadingProps; | ||
|
||
export const tokenCardPrettifyLoadingProps = { | ||
card: false, | ||
baseTokenCardPrettifyLoadingProps: { | ||
balance: false, | ||
image: false, | ||
name: false, | ||
description: false, | ||
}, | ||
} as TTokenCardPrettifyLoadingProps; |
Oops, something went wrong.