Tweak wording and formatting on Wallet page
This commit is contained in:
parent
629ba32d3a
commit
a2856052dc
2 changed files with 93 additions and 30 deletions
|
@ -13,11 +13,11 @@ var NewAddressSection = React.createClass({
|
||||||
},
|
},
|
||||||
render: function() {
|
render: function() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<section>
|
||||||
<h1>Generate New Address:</h1>
|
<h1>Generate New Address</h1>
|
||||||
<input type="text" size="60" value={this.state.address}></input><br /><br />
|
<section><input type="text" size="60" value={this.state.address}></input></section>
|
||||||
<Link button="primary" label="Generate" onClick={this.generateAddress} />
|
<Link button="primary" label="Generate" onClick={this.generateAddress} />
|
||||||
</div>
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -80,15 +80,19 @@ var SendToAddressSection = React.createClass({
|
||||||
},
|
},
|
||||||
render: function() {
|
render: function() {
|
||||||
return (
|
return (
|
||||||
<div>
|
<section>
|
||||||
<h1>Send Amount To Address:</h1>
|
<h1>Send Credits</h1>
|
||||||
<label for="balance">Balance: {this.state.balance}</label><br /><br />
|
<section>
|
||||||
<label for="amount">Amount:</label> <input id="amount" type="text" size="10" onChange={this.setAmount}></input><br /><br />
|
<section><label for="balance">Balance {this.state.balance}</label></section>
|
||||||
<label for="address">Address:</label> <input id="address" type="text" size="60" onChange={this.setAddress}></input><br /><br />
|
<label for="amount">Amount <input id="amount" type="text" size="10" onChange={this.setAmount}></input></label>
|
||||||
<Link button="primary" label="Send" onClick={this.sendToAddress} disabled={!(parseFloat(this.state.amount) > 0.0) || this.state.address == ""} /><br /><br />
|
<label for="address">Recipient address <input id="address" type="text" size="60" onChange={this.setAddress}></input></label>
|
||||||
<h4>Results:</h4>
|
<Link button="primary" label="Send" onClick={this.sendToAddress} disabled={!(parseFloat(this.state.amount) > 0.0) || this.state.address == ""} />
|
||||||
<span>{this.state.results}</span><br />
|
</section>
|
||||||
</div>
|
<section className={!this.state.results ? 'hidden' : ''}>
|
||||||
|
<h4>Results:</h4>
|
||||||
|
{this.state.results}
|
||||||
|
</section>
|
||||||
|
</section>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -98,8 +102,8 @@ var WalletPage = React.createClass({
|
||||||
return (
|
return (
|
||||||
<main className="page">
|
<main className="page">
|
||||||
<SubPageLogo />
|
<SubPageLogo />
|
||||||
<NewAddressSection /><br />
|
<NewAddressSection />
|
||||||
<SendToAddressSection /><br />
|
<SendToAddressSection />
|
||||||
<section>
|
<section>
|
||||||
<Link href="/" label="<< Return" />
|
<Link href="/" label="<< Return" />
|
||||||
</section>
|
</section>
|
||||||
|
|
|
@ -7,7 +7,7 @@ html
|
||||||
}
|
}
|
||||||
body
|
body
|
||||||
{
|
{
|
||||||
font-family: 'Raleway', sans-serif;
|
font-family: 'Source Sans Pro', sans-serif;
|
||||||
line-height: 1.3333;
|
line-height: 1.3333;
|
||||||
min-height: 100%;
|
min-height: 100%;
|
||||||
position: relative;
|
position: relative;
|
||||||
|
@ -17,6 +17,7 @@ body
|
||||||
margin-left: auto;
|
margin-left: auto;
|
||||||
margin-right: auto;
|
margin-right: auto;
|
||||||
width: 800px;
|
width: 800px;
|
||||||
|
padding-bottom: $spacing-vertical*3;
|
||||||
|
|
||||||
&.full-screen {
|
&.full-screen {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
@ -33,16 +34,43 @@ body
|
||||||
section
|
section
|
||||||
{
|
{
|
||||||
margin-bottom: $spacing-vertical;
|
margin-bottom: $spacing-vertical;
|
||||||
|
section {
|
||||||
|
/* Smaller padding around inner sections */
|
||||||
|
margin-bottom: $spacing-vertical / 4;
|
||||||
|
}
|
||||||
&:last-child
|
&:last-child
|
||||||
{
|
{
|
||||||
margin-bottom: 0;
|
margin-bottom: 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
h1 { font-size: 2.0em; margin-bottom: $spacing-vertical / 2; margin-top: $spacing-vertical; }
|
.section-block {
|
||||||
h2 { font-size: 1.75em; }
|
background-color: rgba(0,0,0,.05);
|
||||||
|
padding: $spacing-vertical;
|
||||||
|
border-radius: 2px;
|
||||||
|
margin-bottom: $spacing-vertical;
|
||||||
|
}
|
||||||
|
|
||||||
|
h1 {
|
||||||
|
font-size: 2.0em;
|
||||||
|
margin-bottom: $spacing-vertical;
|
||||||
|
margin-top: $spacing-vertical*2;
|
||||||
|
font-family: 'Raleway', sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
h2 {
|
||||||
|
font-size: 1.75em;
|
||||||
|
}
|
||||||
|
|
||||||
h3 { font-size: 1.4em; }
|
h3 { font-size: 1.4em; }
|
||||||
h4 { font-size: 1.2em; }
|
|
||||||
|
h4 {
|
||||||
|
font-weight: 600;
|
||||||
|
font-size: 1.2em;
|
||||||
|
margin: 0;
|
||||||
|
margin-bottom: $spacing-vertical/2;
|
||||||
|
}
|
||||||
|
|
||||||
h5 { font-size: 1.1em; }
|
h5 { font-size: 1.1em; }
|
||||||
sup, sub {
|
sup, sub {
|
||||||
vertical-align: baseline;
|
vertical-align: baseline;
|
||||||
|
@ -50,7 +78,11 @@ sup, sub {
|
||||||
}
|
}
|
||||||
sup { top: -0.4em; }
|
sup { top: -0.4em; }
|
||||||
sub { top: 0.4em; }
|
sub { top: 0.4em; }
|
||||||
label { cursor: pointer; }
|
|
||||||
|
label {
|
||||||
|
cursor: default;
|
||||||
|
display: block;
|
||||||
|
}
|
||||||
|
|
||||||
header
|
header
|
||||||
{
|
{
|
||||||
|
@ -62,6 +94,9 @@ p
|
||||||
margin-bottom: 0.8em;
|
margin-bottom: 0.8em;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
textarea {
|
||||||
|
height: 190px;
|
||||||
|
}
|
||||||
|
|
||||||
.hidden {
|
.hidden {
|
||||||
display: none;
|
display: none;
|
||||||
|
@ -75,10 +110,25 @@ p
|
||||||
input[type="search"]
|
input[type="search"]
|
||||||
{
|
{
|
||||||
border: 0 none;
|
border: 0 none;
|
||||||
border: 1px solid rgba(160,160,160,.5);
|
border: 2px solid rgba(160,160,160,.5);
|
||||||
padding-left: 5px;
|
padding-left: 5px;
|
||||||
padding-right: 5px;
|
padding-right: 5px;
|
||||||
height: $spacing-vertical * 1.5;
|
line-height: $spacing-vertical * 1.5;
|
||||||
|
margin-bottom: $spacing-vertical/2;
|
||||||
|
}
|
||||||
|
|
||||||
|
input[type="text"], textarea
|
||||||
|
{
|
||||||
|
border: 0 none;
|
||||||
|
border: 2px solid rgba(160,160,160,.5);
|
||||||
|
padding-left: 5px;
|
||||||
|
padding-right: 5px;
|
||||||
|
line-height: $spacing-vertical;
|
||||||
|
margin-bottom: $spacing-vertical/2;
|
||||||
|
}
|
||||||
|
|
||||||
|
select {
|
||||||
|
margin-bottom: $spacing-vertical/2;
|
||||||
}
|
}
|
||||||
|
|
||||||
.busy-indicator
|
.busy-indicator
|
||||||
|
@ -106,10 +156,13 @@ input[type="search"]
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
height: $spacing-vertical * 1.5;
|
height: $spacing-vertical * 1.5;
|
||||||
line-height: $spacing-vertical * 1.5;
|
line-height: $spacing-vertical * 1.5;
|
||||||
padding: 0 15px;
|
padding: 0 30px;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
border: 0 none;
|
border: 0 none;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
|
border-radius: 2px;
|
||||||
|
box-shadow: 0 2px 2px 0 rgba(0,0,0,.14),0 3px 1px -2px rgba(0,0,0,.2),0 1px 5px 0 rgba(0,0,0,.12);
|
||||||
|
text-transform: uppercase;
|
||||||
+ .button-block
|
+ .button-block
|
||||||
{
|
{
|
||||||
margin-left: 20px;
|
margin-left: 20px;
|
||||||
|
@ -131,15 +184,12 @@ input[type="search"]
|
||||||
.button-primary
|
.button-primary
|
||||||
{
|
{
|
||||||
color: white;
|
color: white;
|
||||||
@include linear-gradient(lighten($color-primary, 5), darken($color-primary, 5));
|
|
||||||
background-color: $color-primary;
|
background-color: $color-primary;
|
||||||
border: 1px solid black;
|
|
||||||
}
|
}
|
||||||
.button-alt
|
.button-alt
|
||||||
{
|
{
|
||||||
@include linear-gradient(lighten($color-light-alt, 5), darken($color-light-alt, 5));
|
background-color: rgba(0,0,0,.15);
|
||||||
color: hsl(hue($color-primary), 85, 15);
|
|
||||||
border: 1px solid darken($color-primary, 10);
|
|
||||||
}
|
}
|
||||||
.button-text
|
.button-text
|
||||||
{
|
{
|
||||||
|
@ -171,6 +221,11 @@ input[type="search"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.footer-buttons {
|
||||||
|
display: flex;
|
||||||
|
justify-content: center;
|
||||||
|
}
|
||||||
|
|
||||||
.icon:only-child {
|
.icon:only-child {
|
||||||
position: relative;
|
position: relative;
|
||||||
top: 0.16em;
|
top: 0.16em;
|
||||||
|
@ -183,7 +238,11 @@ input[type="search"]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.help
|
.help {
|
||||||
{
|
font-size: .85em;
|
||||||
color: $color-help;
|
color: $color-help;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.spacer-bottom--sm {
|
||||||
|
margin-bottom: $spacing-vertical/2;
|
||||||
|
}
|
Loading…
Add table
Reference in a new issue