-
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
8045397
commit 3b583f1
Showing
8 changed files
with
114 additions
and
128 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
48 changes: 24 additions & 24 deletions
48
packages/nextjs/components/rep-tokens-demo/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 |
---|---|---|
@@ -1,26 +1,26 @@ | ||
import { TokenCardClasses } from "../rep-tokens/cards/token-card/TokenCard"; | ||
import { TokenGroupCardElementsClasses } from "../rep-tokens/cards/token-group-card/TokenGroupCard"; | ||
// import { TokenCardClasses } from "../rep-tokens/cards/token-card/TokenCard"; | ||
// import { TokenGroupCardElementsClasses } from "../rep-tokens/cards/token-group-card/TokenGroupCard"; | ||
|
||
export const tokensCardPropertiesClasses = { | ||
card: "bg-base-300 flex flex-col items-center", | ||
container: "flex justify-center", | ||
} as TokenGroupCardElementsClasses; | ||
// export const tokensCardPropertiesClasses = { | ||
// card: "bg-base-300 flex flex-col items-center", | ||
// container: "flex justify-center", | ||
// } as TokenGroupCardElementsClasses; | ||
|
||
export const tokenCardPropertiesClasses = { | ||
card: "px-5 py-5 relative w-64", | ||
baseTokenCardElementsClasses: { | ||
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 TokenCardClasses; | ||
// export const tokenCardPropertiesClasses = { | ||
// card: "px-5 py-5 relative w-64", | ||
// baseTokenCardElementsClasses: { | ||
// 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 TokenCardClasses; |
44 changes: 22 additions & 22 deletions
44
packages/nextjs/components/rep-tokens-demo/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 |
---|---|---|
@@ -1,24 +1,24 @@ | ||
import { TokenCardClasses } from "../rep-tokens/cards/token-card/TokenCard"; | ||
import { TokenGroupCardElementsClasses } from "../rep-tokens/cards/token-group-card/TokenGroupCard"; | ||
// import { TokenCardClasses } from "../rep-tokens/cards/token-card/TokenCard"; | ||
// import { TokenGroupCardElementsClasses } from "../rep-tokens/cards/token-group-card/TokenGroupCard"; | ||
|
||
export const tokensCardPropertiesClasses = { | ||
container: "flex justify-center", | ||
card: "bg-slate-800 flex flex-col items-center", | ||
address: { | ||
container: "flex items-center justify-center bg-slate-600", | ||
value: "ml-1.5 text-${size} font-normal text-white", | ||
}, | ||
} as TokenGroupCardElementsClasses; | ||
// export const tokensCardPropertiesClasses = { | ||
// container: "flex justify-center", | ||
// card: "bg-slate-800 flex flex-col items-center", | ||
// address: { | ||
// container: "flex items-center justify-center bg-slate-600", | ||
// value: "ml-1.5 text-${size} font-normal text-white", | ||
// }, | ||
// } as TokenGroupCardElementsClasses; | ||
|
||
export const tokenCardPropertiesClasses = { | ||
card: "px-1 py-1 relative w-20 ", | ||
baseTokenCardElementsClasses: { | ||
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 TokenCardClasses; | ||
// export const tokenCardPropertiesClasses = { | ||
// card: "px-1 py-1 relative w-20 ", | ||
// baseTokenCardElementsClasses: { | ||
// 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 TokenCardClasses; |
35 changes: 15 additions & 20 deletions
35
packages/nextjs/components/rep-tokens/cards/token-card/TokenCard.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
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
21 changes: 19 additions & 2 deletions
21
packages/nextjs/components/rep-tokens/utils/buildTokensCard.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