-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Markup Referral score page + menu changes #221
- Loading branch information
Showing
6 changed files
with
217 additions
and
6 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
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 |
---|---|---|
|
@@ -92,6 +92,7 @@ | |
} | ||
.color{ | ||
color: #FF791F; | ||
cursor: pointer; | ||
} | ||
&:nth-child(1){ | ||
margin-bottom: 28px; | ||
|
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
151 changes: 151 additions & 0 deletions
151
ui/front/src/components/shared/referral-programm/referralProgramm.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,151 @@ | ||
.section{ | ||
max-width: 960px; | ||
width: 100%; | ||
margin: 40px auto 0 auto; | ||
h1{ | ||
font-family: 'PublicSans-Black', serif; | ||
font-style: normal; | ||
font-weight: 900; | ||
font-size: 24px; | ||
line-height: 28px; | ||
color: #000000; | ||
margin-bottom: 40px; | ||
} | ||
.content{ | ||
display: flex; | ||
justify-content: space-between; | ||
align-items: flex-start; | ||
flex-wrap: wrap; | ||
.text{ | ||
display: flex; | ||
justify-content: center; | ||
flex-direction: column; | ||
width: 320px; | ||
margin-top: 15px; | ||
h4{ | ||
font-family: 'PublicSans-ExtraBold', serif; | ||
font-style: normal; | ||
font-weight: 800; | ||
font-size: 18px; | ||
line-height: 20px; | ||
color: #000000; | ||
margin: 0; | ||
} | ||
p{ | ||
font-family: 'PublicSans-Regular', serif; | ||
font-style: normal; | ||
font-weight: 400; | ||
font-size: 14px; | ||
line-height: 25px; | ||
color: #000000; | ||
margin: 24px 0; | ||
} | ||
button{ | ||
width: 320px; | ||
height: 36px; | ||
background: #FF791F; | ||
font-family: 'PublicSans-ExtraBold', serif; | ||
font-style: normal; | ||
font-weight: 800; | ||
font-size: 14px; | ||
line-height: 20px; | ||
text-align: center; | ||
color: #FFFFFF; | ||
padding: 0; | ||
} | ||
} | ||
.table{ | ||
border: 1px solid #DEDEDE; | ||
border-radius: 8px; | ||
width: 600px; | ||
.title{ | ||
height: 48px; | ||
display: flex; | ||
align-items: center; | ||
background: rgba(0, 0, 0, 0.03); | ||
border-bottom: 1px solid rgba(0, 0, 0, 0.1); | ||
h4{ | ||
width: 300px; | ||
font-family: 'PublicSans-Bold', serif; | ||
font-style: normal; | ||
font-weight: 700; | ||
font-size: 14px; | ||
line-height: 16px; | ||
color: #000000; | ||
opacity: 0.5; | ||
margin: 0; | ||
padding-left: 16px; | ||
} | ||
} | ||
.date{ | ||
min-height: 143px; | ||
height: 100%; | ||
padding: 16px; | ||
.empty{ | ||
display: flex; | ||
justify-content: center; | ||
align-items: center; | ||
height: 100%; | ||
p{ | ||
font-family: 'PublicSans-Regular', serif; | ||
font-style: italic; | ||
font-weight: 400; | ||
font-size: 14px; | ||
line-height: 16px; | ||
color: #000000; | ||
opacity: 0.3; | ||
margin-bottom: 0; | ||
} | ||
} | ||
.info{ | ||
display: flex; | ||
align-items: center; | ||
margin-bottom: 24px; | ||
&:nth-last-child(1){ | ||
margin-bottom: 0; | ||
} | ||
p{ | ||
width: 300px; | ||
font-family: 'PublicSans-Regular', serif; | ||
font-style: normal; | ||
font-weight: 400; | ||
font-size: 14px; | ||
line-height: 16px; | ||
color: #000000; | ||
margin: 0; | ||
&:nth-child(2){ | ||
padding-left: 16px; | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
} | ||
@media only screen and (max-width: 920px) { | ||
.table{ | ||
margin-top: 40px; | ||
} | ||
} | ||
@media only screen and (max-width: 768px) { | ||
.table{ | ||
max-width: 600px; | ||
width: 100%; | ||
.title{ | ||
h4{ | ||
max-width: 300px; | ||
width: 100% !important; | ||
} | ||
} | ||
.info{ | ||
p{ | ||
max-width: 300px; | ||
width: 100% !important; | ||
&:nth-child(2){ | ||
padding-left: 22px !important; | ||
} | ||
} | ||
} | ||
} | ||
|
||
} |
54 changes: 54 additions & 0 deletions
54
ui/front/src/components/shared/referral-programm/referralProgramm.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,54 @@ | ||
|
||
import styles from './referralProgramm.module.scss' | ||
import {NavButton} from "@components/shared"; | ||
import React from "react"; | ||
|
||
function ReferralProgramm() { | ||
return ( | ||
<div className={styles.section}> | ||
<h1>Referral program</h1> | ||
<div className={styles.content}> | ||
<div className={styles.text}> | ||
<h4>You have 50 referral points</h4> | ||
<p>Your referral score will entitle you to future benefits and airdrops. Use your SOURC3 referral link to spread the Web3 word.</p> | ||
<NavButton | ||
name="Copy referral link" | ||
/> | ||
</div> | ||
<div className={styles.table}> | ||
<div className={styles.title}> | ||
<h4>Activation date</h4> | ||
<h4>Referral points</h4> | ||
</div> | ||
<div className={styles.date}> | ||
{/*<div className={styles.empty}>*/} | ||
{/* <p>No one have used your referral link so far</p>*/} | ||
{/*</div>*/} | ||
|
||
<div className={styles.info}> | ||
<p>11 Oct 2022, 4:56 PM</p> | ||
<p>10</p> | ||
</div> | ||
<div className={styles.info}> | ||
<p>11 Oct 2022, 4:56 PM</p> | ||
<p>10</p> | ||
</div> | ||
<div className={styles.info}> | ||
<p>11 Oct 2022, 4:56 PM</p> | ||
<p>10</p> | ||
</div> | ||
<div className={styles.info}> | ||
<p>11 Oct 2022, 4:56 PM</p> | ||
<p>10</p> | ||
</div> | ||
<div className={styles.info}> | ||
<p>11 Oct 2022, 4:56 PM</p> | ||
<p>10</p> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
); | ||
} | ||
export default ReferralProgramm; |