-
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
8 changed files
with
165 additions
and
16 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
17 changes: 15 additions & 2 deletions
17
.../ShellOfSecrets/SoSMainModal/sections/SoSMainContent/segments/Leaderboard/Leaderboard.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,19 @@ | ||
/* eslint-disable i18next/no-literal-string */ | ||
import { Wrapper } from './styles'; | ||
import LeaderboardList from './segments/LeaderboardList/LeaderboardList'; | ||
import Progress from './segments/Progress/Progress'; | ||
import { Wrapper, TopRow, SectionTitle, Button } from './styles'; | ||
|
||
export default function Leaderboard() { | ||
return <Wrapper>Leaderboard</Wrapper>; | ||
return ( | ||
<Wrapper> | ||
<TopRow> | ||
<SectionTitle>Leaderboard</SectionTitle> | ||
<Button>VIEW full LEADERBOARD</Button> | ||
</TopRow> | ||
|
||
<Progress /> | ||
|
||
<LeaderboardList /> | ||
</Wrapper> | ||
); | ||
} |
6 changes: 6 additions & 0 deletions
6
...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 |
---|---|---|
@@ -0,0 +1,6 @@ | ||
/* eslint-disable i18next/no-literal-string */ | ||
import { Wrapper } from './styles'; | ||
|
||
export default function LeaderboardList() { | ||
return <Wrapper>Leaderboard List</Wrapper>; | ||
} |
3 changes: 3 additions & 0 deletions
3
...MainModal/sections/SoSMainContent/segments/Leaderboard/segments/LeaderboardList/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,3 @@ | ||
import styled from 'styled-components'; | ||
|
||
export const Wrapper = styled('div')``; |
18 changes: 18 additions & 0 deletions
18
.../SoSMainModal/sections/SoSMainContent/segments/Leaderboard/segments/Progress/Progress.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,18 @@ | ||
/* eslint-disable i18next/no-literal-string */ | ||
import { Wrapper, TopLabel, Line, Text, CapLeft, CapRight } from './styles'; | ||
|
||
export default function Progress() { | ||
return ( | ||
<Wrapper> | ||
<TopLabel> | ||
<Line /> | ||
<Text> | ||
You’re <span>15 hours</span> away from the next rank. Keep mining! | ||
</Text> | ||
<Line /> | ||
<CapLeft /> | ||
<CapRight /> | ||
</TopLabel> | ||
</Wrapper> | ||
); | ||
} |
51 changes: 51 additions & 0 deletions
51
...ets/SoSMainModal/sections/SoSMainContent/segments/Leaderboard/segments/Progress/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,51 @@ | ||
import styled from 'styled-components'; | ||
|
||
export const Wrapper = styled('div')``; | ||
|
||
export const TopLabel = styled('div')` | ||
display: flex; | ||
align-items: center; | ||
gap: 40px; | ||
width: 100%; | ||
position: relative; | ||
`; | ||
|
||
export const Line = styled('div')` | ||
width: 100%; | ||
height: 2px; | ||
background-color: #e6ff47; | ||
`; | ||
|
||
export const Text = styled('div')` | ||
color: rgba(255, 255, 255, 0.5); | ||
font-size: 13px; | ||
font-style: normal; | ||
font-weight: 700; | ||
line-height: 129.623%; | ||
text-transform: uppercase; | ||
white-space: nowrap; | ||
span { | ||
color: #e6ff47; | ||
} | ||
`; | ||
|
||
export const CapLeft = styled('div')` | ||
width: 2px; | ||
height: 8px; | ||
background-color: #e6ff47; | ||
position: absolute; | ||
top: 8px; | ||
left: 0; | ||
`; | ||
|
||
export const CapRight = styled('div')` | ||
width: 2px; | ||
height: 8px; | ||
background-color: #e6ff47; | ||
position: absolute; | ||
top: 8px; | ||
right: 0; | ||
`; |
46 changes: 45 additions & 1 deletion
46
...s/main/ShellOfSecrets/SoSMainModal/sections/SoSMainContent/segments/Leaderboard/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,47 @@ | ||
import styled from 'styled-components'; | ||
|
||
export const Wrapper = styled('div')``; | ||
export const Wrapper = styled('div')` | ||
display: flex; | ||
flex-direction: column; | ||
gap: 25px; | ||
`; | ||
|
||
export const TopRow = styled('div')` | ||
display: flex; | ||
align-items: center; | ||
justify-content: space-between; | ||
`; | ||
|
||
export const SectionTitle = styled('div')` | ||
color: #fff; | ||
font-size: 22px; | ||
font-weight: 700; | ||
line-height: 129.623%; | ||
text-transform: uppercase; | ||
`; | ||
|
||
export const Button = styled('div')` | ||
color: #fff; | ||
font-size: 15px; | ||
font-weight: 700; | ||
line-height: normal; | ||
text-transform: uppercase; | ||
border-radius: 9px; | ||
background: rgba(217, 217, 217, 0.1); | ||
height: 35px; | ||
padding: 12px 16px; | ||
display: flex; | ||
align-items: center; | ||
justify-content: center; | ||
cursor: pointer; | ||
transition: background 0.3s ease; | ||
&:hover { | ||
background: rgba(255, 255, 255, 0.2); | ||
} | ||
`; |