-
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
Showing
20 changed files
with
453 additions
and
232 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
412 changes: 206 additions & 206 deletions
412
docs/assets/index-CFHbMKh7.js → docs/assets/index-Chq_XTR8.js
Large diffs are not rendered by default.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,110 @@ | ||
|
||
.holders-list { | ||
list-style: none; | ||
padding: 0; | ||
margin: 0; | ||
} | ||
|
||
.avatar { | ||
width: 36px; | ||
height: 36px; | ||
border-radius: 50%; | ||
margin-right: 10px; | ||
} | ||
|
||
.info { | ||
flex: 1; | ||
} | ||
|
||
.first_row, .second_row { | ||
justify-content: space-between; | ||
display: flex; | ||
} | ||
|
||
.profit { | ||
font-size: 12px; | ||
color: rgb(26, 100, 70); | ||
} | ||
|
||
.gravity { | ||
font-size: 12px; | ||
color: #333; | ||
} | ||
|
||
.volume { | ||
font-size: 14px; | ||
// color: #333; | ||
color: black | ||
} | ||
|
||
.username { | ||
font-size: 14px; | ||
font-weight: bold; | ||
text-decoration: none; | ||
// color: #333; | ||
color: black; | ||
} | ||
|
||
.holders-item { | ||
display: flex; | ||
align-items: center; | ||
padding: 10px; | ||
padding-top: 8px; | ||
// border-bottom: 1px solid #ccc; | ||
background-color: #f0f0f0; | ||
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); | ||
position: relative; | ||
} | ||
|
||
.holders-item:first-child { | ||
border-top-left-radius: 10px; | ||
border-top-right-radius: 10px; | ||
} | ||
|
||
.holders-item:last-child { | ||
border-bottom-left-radius: 10px; | ||
border-bottom-right-radius: 10px; | ||
border-bottom: none; | ||
} | ||
|
||
.holders-list-container { | ||
// background-color: #f0f0f0; | ||
background-color: transparent; | ||
padding: 20px; | ||
// border-radius: 10px; | ||
} | ||
|
||
.holders-list-container h2 { // HOLDERS CAPTION | ||
text-transform: uppercase; | ||
font-size: 12px; | ||
// font-weight: thin; | ||
// color: #333; | ||
color: #f0f0f0; | ||
// background-color: black; | ||
margin-bottom: 8px; | ||
margin-left: 12px; | ||
text-align: left; | ||
} | ||
|
||
// .divider { | ||
// // margin-left: 20px; /* Отступ слева */ | ||
// // border-bottom: 1px solid #ccc | ||
// width: 100%; | ||
// height: 1px; | ||
// color: black; | ||
// } | ||
|
||
.holders-item::before { | ||
content: ""; | ||
position: absolute; | ||
top: 56px; /* Позиционируем псевдоэлемент по центру высоты элемента */ | ||
left: 56px; /* Отступ слева */ | ||
width: calc(100% - 56px); | ||
height: 0.5px; | ||
background-color: #ccc; | ||
} | ||
|
||
/* Для последнего элемента убираем линию */ | ||
.holders-item:last-child::before { | ||
display: none; | ||
} |
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,32 @@ | ||
import './Holders.scss'; | ||
|
||
function Holders({ // THIS ITEM IS DEFAULT (ITEMS LIST IN HOLDERSLIST.TSX) | ||
avatar = './../../../../src/assets/coobot_23.jpg', | ||
username = 'Coobot fund', | ||
gravity = 0, | ||
profit = '-', | ||
volume = 0, | ||
}) { | ||
return ( | ||
<div className="holders-item"> | ||
<img src={avatar} alt={username} className="avatar" /> | ||
<div className="info"> | ||
{/* <a href={`/${username}`} className="username">{username}</a> */} | ||
<div className="first_row"> | ||
<div className="username">{username}</div> | ||
<div className="volume">{volume}M $COO</div> | ||
</div> | ||
<div className="second_row"> | ||
<div className="profit">{profit} USDT</div> | ||
<div className="gravity">{gravity} %</div> | ||
</div> | ||
{/* <div className="divider"></div> */} | ||
{/* <span>{amount} TON</span> */} | ||
{/* <span>{type} {term}</span> | ||
<span>{price} $COO</span> */} | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default Holders; |
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,77 @@ | ||
import Holders from './Holders'; | ||
import './Holders.scss'; | ||
|
||
const holdersData = [ | ||
{ | ||
avatar: './../../../../src/assets/coobot_23.jpg', | ||
username: 'Coobot fund', | ||
gravity: 1.00, | ||
profit: '+23.78', | ||
volume: 66.6, | ||
price: 2000000 | ||
}, | ||
{ | ||
avatar: './../../../../src/assets/yula_g.jpg', | ||
username: 'Юлия Geraldina', | ||
gravity: 1.00, | ||
profit: '+2.85', | ||
volume: 8, | ||
price: 2000000 | ||
}, | ||
{ | ||
avatar: './../../../../src/assets/veronika.jpg', | ||
username: 'Veronika Alex', | ||
gravity: 1.00, | ||
profit: '+2.49', | ||
volume: 7, | ||
price: 2000000 | ||
}, | ||
{ | ||
avatar: './../../../../src/assets/theclash.jpg', | ||
username: 'Pavel | theclash', | ||
gravity: 1.00, | ||
profit: '+2.46', | ||
volume: 6.9, | ||
price: 2000000 | ||
}, | ||
{ | ||
avatar: './../../../../src/assets/rost.jpg', | ||
username: 'Rost G.', | ||
gravity: 1.00, | ||
profit: '+1.71', | ||
volume: 4.8, | ||
price: 2000000 | ||
}, | ||
{ | ||
avatar: './../../../../src/assets/pep.png', | ||
username: 'fOgTgc', | ||
gravity: 1.00, | ||
profit: '+1.68', | ||
volume: 4.7, | ||
price: 2000000 | ||
} | ||
]; | ||
|
||
function HoldersList() { | ||
let overallVolume = 0; | ||
for (let i = 0; i < holdersData.length; i++) { // OVERALL VOLUME | ||
overallVolume = overallVolume + holdersData[i].volume; | ||
} | ||
console.log("overallVolume: ", overallVolume); | ||
for (let i = 0; i < holdersData.length; i++) { // GRAVITY | ||
holdersData[i].gravity = parseFloat((holdersData[i].volume / overallVolume * 100).toFixed(2)); | ||
console.log("gravity: ", holdersData[i].gravity); | ||
} | ||
return ( | ||
<div className="holders-list-container"> | ||
<h2>Holders</h2> | ||
<div className="holders-list"> | ||
{holdersData.map((holdersMap, index) => ( | ||
<Holders key={index} {...holdersMap} /> | ||
))} | ||
</div> | ||
</div> | ||
); | ||
} | ||
|
||
export default HoldersList; |
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