-
Notifications
You must be signed in to change notification settings - Fork 25
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
12 changed files
with
419 additions
and
13 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
10 changes: 7 additions & 3 deletions
10
...tainers/main/ShellOfSecrets/SoSMainModal/sections/SoSMainContent/segments/Drops/Drops.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,6 +1,10 @@ | ||
/* eslint-disable i18next/no-literal-string */ | ||
import { Wrapper } from './styles'; | ||
import { Box, Wrapper } from './styles'; | ||
|
||
export default function Drops() { | ||
return <Wrapper>Drops</Wrapper>; | ||
return ( | ||
<Wrapper> | ||
<Box /> | ||
<Box /> | ||
</Wrapper> | ||
); | ||
} |
13 changes: 12 additions & 1 deletion
13
...tainers/main/ShellOfSecrets/SoSMainModal/sections/SoSMainContent/segments/Drops/styles.ts
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,3 +1,14 @@ | ||
import styled from 'styled-components'; | ||
|
||
export const Wrapper = styled('div')``; | ||
export const Wrapper = styled('div')` | ||
display: grid; | ||
grid-template-columns: 1fr 1fr; | ||
gap: 30px; | ||
`; | ||
|
||
export const Box = styled('div')` | ||
height: 155px; | ||
width: 100%; | ||
background-color: #171d16; | ||
`; |
11 changes: 9 additions & 2 deletions
11
...sections/SoSMainContent/segments/Leaderboard/segments/LeaderboardList/LeaderboardList.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,6 +1,13 @@ | ||
/* eslint-disable i18next/no-literal-string */ | ||
import { Wrapper } from './styles'; | ||
import LeaserboardEntry from './LeaserboardEntry/LeaserboardEntry'; | ||
import { data } from './data'; | ||
|
||
export default function LeaderboardList() { | ||
return <Wrapper>Leaderboard List</Wrapper>; | ||
return ( | ||
<Wrapper> | ||
{data.entries.map((entry, index) => ( | ||
<LeaserboardEntry key={index} entry={entry} $current={index === 2} /> | ||
))} | ||
</Wrapper> | ||
); | ||
} |
29 changes: 29 additions & 0 deletions
29
...ntent/segments/Leaderboard/segments/LeaderboardList/LeaserboardEntry/LeaserboardEntry.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,29 @@ | ||
/* eslint-disable i18next/no-literal-string */ | ||
import { Wrapper, Avatar, Handle, Status, LeftSide, RightSide, Rank, Dot, Duration } from './styles'; | ||
|
||
export default function LeaserboardEntry({ entry, $current }) { | ||
return ( | ||
<Wrapper $current={$current}> | ||
<LeftSide> | ||
<Avatar $image={entry.image} $current={$current}> | ||
<Rank $current={$current}>{entry.rank}</Rank> | ||
</Avatar> | ||
<Handle $current={$current}>{entry.handle}</Handle> | ||
</LeftSide> | ||
<RightSide> | ||
{entry.status === 'mining' && ( | ||
<Status> | ||
<Dot /> Mining now | ||
</Status> | ||
)} | ||
{entry.status === 'idle' && ( | ||
<Status $isRed={'red'}> | ||
<Dot $isRed={'red'} /> Last mined 52m ago | ||
</Status> | ||
)} | ||
|
||
<Duration>{entry.duration}</Duration> | ||
</RightSide> | ||
</Wrapper> | ||
); | ||
} |
151 changes: 151 additions & 0 deletions
151
...s/SoSMainContent/segments/Leaderboard/segments/LeaderboardList/LeaserboardEntry/styles.ts
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,151 @@ | ||
import styled, { css } from 'styled-components'; | ||
|
||
export const Wrapper = styled('div')<{ $current?: boolean }>` | ||
display: flex; | ||
align-items: center; | ||
padding: 13px; | ||
border-radius: 9px; | ||
border: 2px solid #2d2d2d; | ||
background: rgba(255, 255, 255, 0.05); | ||
box-shadow: 0px 3.625px 12.686px 0px rgba(0, 0, 0, 0.1); | ||
${({ $current }) => | ||
$current && | ||
css` | ||
border: 2px solid #85892a; | ||
background: #364031; | ||
box-shadow: 0px 3.698px 40.677px 0px rgba(0, 0, 0, 0.5); | ||
`} | ||
`; | ||
|
||
export const Avatar = styled('div')<{ $image: string; $current?: boolean }>` | ||
width: 27px; | ||
height: 27px; | ||
border-radius: 100%; | ||
background-color: rgba(255, 255, 255, 0.2); | ||
background-image: url(${(props) => props.$image}); | ||
background-size: cover; | ||
background-position: center; | ||
background-repeat: no-repeat; | ||
position: relative; | ||
${({ $current }) => | ||
$current && | ||
css` | ||
width: 45px; | ||
height: 45px; | ||
`} | ||
`; | ||
|
||
export const Rank = styled('div')<{ $current?: boolean }>` | ||
width: 15px; | ||
height: 15px; | ||
background-color: #e6ff47; | ||
border-radius: 100%; | ||
position: absolute; | ||
top: -4px; | ||
left: -4px; | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
color: #000; | ||
font-family: 'Poppins', sans-serif; | ||
font-size: 8px; | ||
font-style: normal; | ||
font-weight: 600; | ||
line-height: 100%; | ||
letter-spacing: 0.254px; | ||
${({ $current }) => | ||
$current && | ||
css` | ||
width: 26px; | ||
height: 26px; | ||
font-size: 13px; | ||
top: -6px; | ||
left: -8px; | ||
`} | ||
`; | ||
|
||
export const Handle = styled('span')<{ $current?: boolean }>` | ||
color: #fff; | ||
font-family: 'Poppins', sans-serif; | ||
font-size: 13px; | ||
font-style: normal; | ||
font-weight: 600; | ||
line-height: 100%; | ||
letter-spacing: 0.254px; | ||
${({ $current }) => | ||
$current && | ||
css` | ||
font-size: 21.179px; | ||
`} | ||
`; | ||
|
||
export const LeftSide = styled('div')` | ||
display: flex; | ||
align-items: center; | ||
flex-grow: 1; | ||
gap: 10px; | ||
`; | ||
|
||
export const RightSide = styled('div')` | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
gap: 30px; | ||
`; | ||
|
||
export const Dot = styled('div')<{ $isRed?: string }>` | ||
width: 9px; | ||
height: 9px; | ||
border-radius: 100%; | ||
background-color: #e6ff47; | ||
${({ $isRed }) => | ||
$isRed && | ||
css` | ||
background-color: #e2855d; | ||
`} | ||
`; | ||
|
||
export const Status = styled('div')<{ $isRed?: string }>` | ||
color: #e6ff47; | ||
font-size: 13px; | ||
font-style: normal; | ||
font-weight: 700; | ||
line-height: 139.451%; | ||
letter-spacing: -0.924px; | ||
text-transform: uppercase; | ||
display: flex; | ||
align-items: center; | ||
gap: 5px; | ||
${({ $isRed }) => | ||
$isRed && | ||
css` | ||
color: #e2855d; | ||
`} | ||
`; | ||
|
||
export const Duration = styled('div')` | ||
color: #e6ff47; | ||
text-align: center; | ||
font-size: 10px; | ||
font-style: normal; | ||
font-weight: 600; | ||
line-height: 100%; | ||
letter-spacing: 0.203px; | ||
padding: 6px 9px; | ||
background: #000; | ||
`; |
Oops, something went wrong.