Skip to content
This repository has been archived by the owner on Nov 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #743 from mrfelton/feat/connection-type-descriptions
Browse files Browse the repository at this point in the history
feat(onboarding): add connection type descriptions
  • Loading branch information
JimmyMow committed Sep 5, 2018
2 parents 32dfc1f + 746038c commit e6a9ce0
Show file tree
Hide file tree
Showing 2 changed files with 58 additions and 23 deletions.
16 changes: 15 additions & 1 deletion app/components/Onboarding/ConnectionType.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@ const ConnectionType = ({ connectionType, setConnectionType }) => (
>
<div className={`${styles.button}`} onClick={() => setConnectionType('local')}>
{connectionType === 'local' ? <FaCircle /> : <FaCircleThin />}
<span className={styles.label}>Default</span>
<span className={styles.label}>
Default <span className={styles.superscript}>testnet</span>
</span>
</div>
<div className={`${styles.description}`}>
By selecting the defualt mode we will do everything for you. Just click and go!
<br />
(testnet only)
</div>
</section>
<section
Expand All @@ -21,12 +28,19 @@ const ConnectionType = ({ connectionType, setConnectionType }) => (
{connectionType === 'custom' ? <FaCircle /> : <FaCircleThin />}
<span className={styles.label}>Custom</span>
</div>
<div className={`${styles.description}`}>
Connect to your own node. You will need to provide your own connection settings so this is
for advanced users only.
</div>
</section>
<section className={`${styles.option} ${connectionType === 'btcpayserver' && styles.active}`}>
<div className={`${styles.button}`} onClick={() => setConnectionType('btcpayserver')}>
{connectionType === 'btcpayserver' ? <FaCircle /> : <FaCircleThin />}
<span className={styles.label}>BTCPay Server</span>
</div>
<div className={`${styles.description}`}>
Connect to your own BTCPay Server instance to access your BTCPay Server wallet.
</div>
</section>
</div>
)
Expand Down
65 changes: 43 additions & 22 deletions app/components/Onboarding/ConnectionType.scss
Original file line number Diff line number Diff line change
Expand Up @@ -5,36 +5,57 @@

section {
margin: 0;
display: flex;
align-items: center;
font-weight: 200;
line-height: 20px;

&.option {
.button {
width: 150px;
text-align: center;
display: flex;
padding: 20px;
border: 1px solid $white;
border-radius: 5px;
font-weight: 200;
cursor: pointer;
transition: all 0.25s;
margin-bottom: 20px;
}
.description {
width: 80%;
opacity: 0.25;
transition: all 0.25s;
}

&.active {
.button {
color: $gold;
border-color: $gold;
}
}
&:hover .description {
opacity: 0.5;
}

.button {
width: 20%;
text-align: center;
display: flex;
padding: 20px;
border: 1px solid $white;
border-radius: 5px;
cursor: pointer;
transition: all 0.25s;
margin: 15px 20px 10px 0;
}

.button:hover {
&.active {
.button {
color: $gold;
border-color: $gold;
}

.label {
margin-left: 15px;
.description {
opacity: 0.8;
color: $gold;
}
}

.button:hover {
color: $gold;
border-color: $gold;
}

.label {
margin-left: 15px;
}

.superscript {
vertical-align: super;
font-size: 10px;
}
}
}

0 comments on commit e6a9ce0

Please sign in to comment.