Update styling

pull/106/head
Alex Kern 6 years ago
parent 2a38c0f283
commit 563ef9a74a

@ -16,19 +16,22 @@ export default class Tempalink extends React.Component {
var shortUrl = window.location.origin + '/download/' + this.props.shortToken var shortUrl = window.location.origin + '/download/' + this.props.shortToken
return <div className="tempalink"> return <div className="tempalink">
<div className="long-url"> <div className="qr">
<input <QRCode text={url} />
onClick={this.onClick}
readOnly
type="text"
value={url} />
</div> </div>
<div className="urls">
<div className="long-url">
<input
onClick={this.onClick}
readOnly
type="text"
value={url} />
</div>
<div className="short-url"> <div className="short-url">
or, for short: <span>{shortUrl}</span> or, for short: <span>{shortUrl}</span>
</div>
</div> </div>
<QRCode text={url} />
</div> </div>
} }

@ -50,7 +50,7 @@ export default class UploadPage extends React.Component {
<h1>FilePizza</h1> <h1>FilePizza</h1>
<p>Free peer-to-peer file transfers in your browser.</p> <p>Free peer-to-peer file transfers in your browser.</p>
<p>We never store anything. Files only served fresh.</p> <small className="notice">We never store anything. Files only served fresh.</small>
<p> <p>
<label className="select-file-label"> <label className="select-file-label">
<input type="file" onChange={this.handleSelectedFile} required/> <input type="file" onChange={this.handleSelectedFile} required/>
@ -79,7 +79,7 @@ export default class UploadPage extends React.Component {
size={this.state.fileSize} /> size={this.state.fileSize} />
<p>Send someone this link to download.</p> <p>Send someone this link to download.</p>
<p>This link will work as long as this page is open.</p> <small className="notice">This link will work as long as this page is open.</small>
<p>Peers: {this.state.peers} &middot; Up: {formatSize(this.state.speedUp)}</p> <p>Peers: {this.state.peers} &middot; Up: {formatSize(this.state.speedUp)}</p>
<Tempalink token={this.state.token} shortToken={this.state.shortToken} /> <Tempalink token={this.state.token} shortToken={this.state.shortToken} />

@ -47,6 +47,17 @@ p {
} }
} }
small {
color: gray;
font: 12px/22px "Quicksand", sans-serif;
text-align: center;
margin: 0;
&.notice {
margin: 0 0 10px;
}
}
.footer { .footer {
width: 100% width: 100%
text-align: center text-align: center
@ -163,39 +174,51 @@ p {
.tempalink { .tempalink {
display: flex display: flex
flex-direction: column width: calc(100vw - 40px)
max-width: 1024px
margin 20px auto
.long-url input { .long-url input {
background: beige background: beige
color: dark-gray color: dark-gray
border: 0 border: 0
margin: 20px 0 0 margin: 0
font: 18px/1 monospace font: 18px/1 monospace
height: 60px height: 60px
padding: 20px padding: 20px
text-align: center text-align: center
width: 100% width: 100%
border-radius: 4px 4px 0 0
} }
.short-url { .short-url {
background: light-gray background: light-gray
color: dark-gray color: dark-gray
border: 0
margin: 0 0 20px
height: 40px height: 40px
padding: 10px 20px padding: 10px 20px
text-align: center text-align: center
width: 100% width: 100%
font: 14px/1 "Quicksand", sans-serif; font: 14px/1 "Quicksand", sans-serif;
border-radius: 0 0 4px 4px
span { span {
font: 14px/1 monospace font: 14px/1 monospace
} }
} }
.qr {
flex: none
padding-right: 40px
}
.urls {
flex: auto
}
img { img {
margin: auto height: 100px
padding-bottom: 60px width: 100px
display: block
} }
} }

Loading…
Cancel
Save