-
Notifications
You must be signed in to change notification settings - Fork 0
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
0e37adc
commit d4b9b7c
Showing
8 changed files
with
68 additions
and
20 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
export const BASE_DENOM = 'boot'; | ||
export const BASE_DENOM = "boot"; | ||
|
||
export const CYBER_GATEWAY = "https://gateway.ipfs.cybernode.ai"; |
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
10 changes: 10 additions & 0 deletions
10
front/src/pages/Main/Passport/ui/Avatar/Avatar.module.scss
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,10 @@ | ||
$size: 130px; | ||
|
||
.wrapper { | ||
|
||
img { | ||
width: $size; | ||
height: $size; | ||
border-radius: 50%; | ||
} | ||
} |
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,15 @@ | ||
import { CYBER_GATEWAY } from '@/constants'; | ||
import styles from './Avatar.module.scss'; | ||
|
||
function Avatar({ cid }: {cid: string}) { | ||
|
||
const urlCid = `${CYBER_GATEWAY}/ipfs/${cid}`; | ||
|
||
return ( | ||
<div className={styles.wrapper}> | ||
<img src={urlCid} alt="avatar" /> | ||
</div> | ||
); | ||
} | ||
|
||
export default Avatar; |
13 changes: 0 additions & 13 deletions
13
front/src/pages/Main/Passport/ui/Balances/Balances.module.scss
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
13 changes: 13 additions & 0 deletions
13
front/src/pages/Main/Passport/ui/TitleItem/TitleItem.module.scss
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,13 @@ | ||
$size-title: 14px; | ||
|
||
.wrapper { | ||
display: grid; | ||
gap: 15px; | ||
|
||
.title { | ||
text-align: center; | ||
font-size: $size-title; | ||
color: #616161; | ||
} | ||
|
||
} |
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,19 @@ | ||
import { ReactNode } from "react"; | ||
import styles from './TitleItem.module.scss'; | ||
|
||
function TitleItem({ | ||
title, | ||
children, | ||
}: { | ||
title: string; | ||
children: ReactNode; | ||
}) { | ||
return ( | ||
<div className={styles.wrapper}> | ||
<span className={styles.title}>{title}</span> | ||
{children} | ||
</div> | ||
); | ||
} | ||
|
||
export default TitleItem; |