ソースを参照

reviews, code clean-up, responsivness

tags/v1.0.0
Uvis Grinfelds 9年前
コミット
6fc6a2f40b
14個のファイルの変更220行の追加108行の削除
  1. バイナリ
     
  2. バイナリ
     
  3. +79
    -61
      transfersh-web/index.html
  4. +10
    -1
      transfersh-web/scripts/main.js
  5. +1
    -1
      transfersh-web/styles/bootstrap.less
  6. +0
    -0
      transfersh-web/styles/includes/contact.less
  7. +1
    -1
      transfersh-web/styles/includes/global.less
  8. +10
    -5
      transfersh-web/styles/includes/home.less
  9. +0
    -0
      transfersh-web/styles/includes/pages.less
  10. +43
    -0
      transfersh-web/styles/includes/reviews.less
  11. +0
    -0
      transfersh-web/styles/includes/transfersh-icons.less
  12. +68
    -18
      transfersh-web/styles/main.css
  13. +1
    -1
      transfersh-web/styles/main.css.map
  14. +7
    -20
      transfersh-web/styles/main.less

バイナリ
ファイルの表示


バイナリ
ファイルの表示


+ 79
- 61
transfersh-web/index.html ファイルの表示

@@ -60,13 +60,13 @@
</h2>

<div class="row">
<div id="from-terminal" class="box">
<div id="from-terminal" class="box col-md-6 col-xs-12" >
<h3>Easy sharing from the command-line</h3>
<div id="terminal">
<p style='white-space:pre'></p>
</div>
</div>
<div id="from-web" class="">
<div id="from-web" class="col-md-6 col-xs-12">
<h3>From web</h3>

<div id="web">
@@ -93,74 +93,39 @@
</section>

<section id="features">
<div class="wrapper">
<div class="wrapper container">
<div class="row">
<div class="col-md-3 col-xs-3">
<i class="icon-terminal"></i>
<h3>Made for use with shell</h3>
</div>
<div class="col-md-3 col-xs-3">
<div class="col-md-3 col-xs-6">
<i class="icon-link"></i>
<h3>Share files with a URL</h3>
</div>
<div class="col-md-3 col-xs-3">
<div class="col-md-3 col-xs-6">
<i class="icon-database"></i>
<h3>Upload up to 5 GB</h3>
</div>
<div class="col-md-3 col-xs-3">
<div class="col-md-3 col-xs-6">
<i class="icon-clock"></i>
<h3>Files stored for 14 days</h3>
</div>
</div>
<div class="row">
<div class="col-md-offset-3 col-md-3 col-xs-3">
<div class="col-md-offset-3 col-md-3 col-xs-6">
<i class="icon-tag"></i>
<h3>For free</h3>
</div>
<div class="col-md-3 col-xs-3">
<div class="col-md-3 col-xs-6">
<i class="icon-lock"></i>
<h3>Encrypt your files</h3>
</div>

</div>
</div>
</section>

<section id="reviews">
<div class="wrapper">
<div class="row">
<div class="col-md-6 col-xs-6">

<meta name="twitter:widgets:link-color" content="#cc0000">
<blockquote class="twitter-tweet" lang="en">
<p><a href="https://twitter.com/dutchcoders">@dutchcoders</a> Thanks for transfer.sh. Just used it for a production purpose for a customer. So great, so easy, so https. :)</p>&mdash; Dave Sims (@FloifyDave) <a href="https://twitter.com/FloifyDave/status/517383101425516544">October 1, 2014</a>
</blockquote>
<script async src="http://platform.twitter.com/widgets.js" charset="utf-8"></script>
</div>
<div class="col-md-6 col-xs-6">
<blockquote class="twitter-tweet" lang="en">
<p><a href="https://twitter.com/dutchcoders">@dutchcoders</a> love transfer.sh! any change we can *pay* for a self-hosted version?</p>&mdash; Kareem Kouddous (@kareemk) <a href="https://twitter.com/kareemk/status/517029789191118849">September 30, 2014</a>
</blockquote>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
</div>
</div>
<div class="row">
<div class="col-md-6 col-xs-6">
<blockquote class="twitter-tweet" lang="en">
<p><a href="http://t.co/JomAmqWYEB">http://t.co/JomAmqWYEB</a> by <a href="https://twitter.com/dutchcoders">@dutchcoders</a> is pure awesomeness! any chance of source on github? :-)</p>&mdash; PJ Spagnolatti (@drakpz) <a href="https://twitter.com/drakpz/status/517008058841829376">September 30, 2014</a>
</blockquote>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
</div>
<div class="col-md-6 col-xs-6">
<blockquote class="twitter-tweet" lang="en">
<p>Love transfer.sh! Will be using it from now on! Thanks for the amazing service we can use from the CLI <a href="https://twitter.com/dutchcoders">@dutchcoders</a>
</p>&mdash; Jacob Lindgren (@jacoblindgren11) <a href="https://twitter.com/jacoblindgren11/status/516975006501203968">September 30, 2014</a>
</blockquote>
<script async src="//platform.twitter.com/widgets.js" charset="utf-8"></script>
</div>
</div>
</div>
</section>

<section id="samples">
<div class="wrapper">
@@ -168,14 +133,14 @@
Sample use cases
</h2>
<div class="row">
<div class="col-md-6">
<div class="col-md-6 ">
<h3>Uploading</h3>
<h4>Uploading is easy using curl.</h4>
<code>$ curl --upload-file ./hello.txt https://transfer.sh/hello.txt</code>
<h4>Download the file.</h4>
<code>$ curl --upload-file ./hello.txt https://transfer.sh/hello.txt</code>
</div>
<div class="col-md-6">
<div class="col-md-6 ">
<h3>Make an alias</h3>

<h4>Create an alias, and add it to .bashrc for faster use</h4>
@@ -187,29 +152,80 @@

</div>
</div>


<a class="btn-cta" data-target="#coll" data-toggle="collapse">More examples</a>
<div class="collapse " id="coll">

<div class="row">
<div class="col-md-6">
<h3>Transfer multiple files</h3>
<h4>Upload multiple files at once

</h4>
<code>$ curl -i -F filedata=@/tmp/hello.txt -F filedata=@/tmp/hello2.txt https://transfer.sh/</code>

<h4>Combining downloads as zip or tar archive</h4>
<code>$ curl https://transfer.sh/(15HKz/hello.txt,15HKz/hello.txt).tar.gz</code>
<br>

<code>$ curl https://transfer.sh/(15HKz/hello.txt,15HKz/hello.txt).zip</code>


</div>
<div class="col-md-6">
<h3>Encrypt your files before the transfer</h3>
<h4>You can encrypt files using gpg. The following command will encrypt the data before it leaves your server using the password you enter and upload it to transfer.sh.</h4>
<h4></h4>
<code>$ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" https://transfer.sh/test.txt</code>
<h4>Encrypt and upload</h4>
<code>$ curl https://transfer.sh/1lDau/test.txt|gpg -o- > /tmp/hello.txt</code>
</div>
</div>

</div>
</div>
</section>

<section id="reviews">
<div class="wrapper">
<div class="row">
<div class="col-md-6">
<h3>Transfer multiple files</h3>
<h4>Upload multiple files at once

</h4>
<code>$ curl -i -F filedata=@/tmp/hello.txt -F filedata=@/tmp/hello2.txt https://transfer.sh/</code>
<div class="col-md-6 col-xs-12">

<blockquote class="twitter-tweet" lang="en">
<img class="twitter-profile" src="https://pbs.twimg.com/profile_images/2456827599/eun7gkvkmq2g7ymuliue_reasonably_small.jpeg" alt="">
<p><a href="https://twitter.com/dutchcoders">@dutchcoders</a> love transfer.sh! any change we can *pay* for a self-hosted version?</p><a href="https://twitter.com/kareemk/status/517029789191118849">&mdash; Kareem Kouddous (@kareemk) September 30, 2014</a>
</blockquote>

<h4>Combining downloads as zip or tar archive</h4>
<code>$ curl https://transfer.sh/(15HKz/hello.txt,15HKz/hello.txt).tar.gz</code>
<br>
</div>
<div class="col-md-6 col-xs-12">
<blockquote class="twitter-tweet" lang="en">
<img class="twitter-profile" src="https://pbs.twimg.com/profile_images/2456827599/eun7gkvkmq2g7ymuliue_reasonably_small.jpeg" alt="">
<p><a href="http://t.co/JomAmqWYEB">http://t.co/JomAmqWYEB</a> by <a href="https://twitter.com/dutchcoders">@dutchcoders</a> is pure awesomeness! any chance of source on github? :-)</p><a href="https://twitter.com/drakpz/status/517008058841829376">&mdash; PJ Spagnolatti (@drakpz) September 30, 2014</a>
</blockquote>

<code>$ curl https://transfer.sh/(15HKz/hello.txt,15HKz/hello.txt).zip</code>
</div>
</div>

<div class="row">

<div class="col-md-6 col-xs-12">
<blockquote class="twitter-tweet" lang="en">
<img class="twitter-profile" src="https://pbs.twimg.com/profile_images/2456827599/eun7gkvkmq2g7ymuliue_reasonably_small.jpeg" alt="">
<p>Love transfer.sh! Will be using it from now on! Thanks for the amazing service we can use from the CLI <a href="https://twitter.com/dutchcoders">@dutchcoders</a>
</p><a href="https://twitter.com/jacoblindgren11/status/516975006501203968">&mdash; Jacob Lindgren (@jacoblindgren11) September 30, 2014</a>
</blockquote>

</div>
<div class="col-md-6">
<h3>Encrypt your files before the transfer</h3>
<h4>You can encrypt files using gpg. The following command will encrypt the data before it leaves your server using the password you enter and upload it to transfer.sh.</h4>
<h4></h4>
<code>$ cat /tmp/hello.txt|gpg -ac -o-|curl -X PUT --upload-file "-" https://transfer.sh/test.txt</code>
<h4>Encrypt and upload</h4>
<code>$ curl https://transfer.sh/1lDau/test.txt|gpg -o- > /tmp/hello.txt</code>
<div class="col-md-6 col-xs-12">
<blockquote class="twitter-tweet" lang="en">
<img class="twitter-profile" src="https://pbs.twimg.com/profile_images/2456827599/eun7gkvkmq2g7ymuliue_reasonably_small.jpeg" alt="">
<p><a href="https://twitter.com/dutchcoders">@dutchcoders</a> Thanks for transfer.sh. Just used it for a production purpose for a customer. So great, so easy, so https. :)</p>
<a href="https://twitter.com/FloifyDave/status/517383101425516544">
&mdash; Dave Sims (@FloifyDave)October 1, 2014</a>
</blockquote>

</div>
</div>
</div>
@@ -296,6 +312,8 @@
<script src="bower_components/jquery/dist/jquery.js"></script>
<script src="bower_components/typed.js/js/typed.js"></script>
<script src="bower_components/uri.js/src/URI.min.js"></script>
<script src="bower_components/bootstrap/js/transition.js"></script>
<script src="bower_components/bootstrap/js/collapse.js"></script>
<script src="scripts/main.js"></script>
<!-- endbuild -->
</body>


+ 10
- 1
transfersh-web/scripts/main.js ファイルの表示

@@ -28,6 +28,14 @@ $(document).ready(function () {
}
});


// function resizePages() {
// var h = $(window).height();
// var height = h < 600 ? 600 : h;
/* $('section').css('height',height);
$('#home').css('height',height*0.98);
}
resizePages();*/
});

(function () {
@@ -35,6 +43,7 @@ $(document).ready(function () {

function upload(file) {
var li = $('<li style="clear:both;"/>');

li.append($('<div><div class="progress active upload-progress" style="margin-bottom: 0;"><div class="progress-bar bar" style="width: 0%;"></div></div><p>Uploading... ' + file.name + '</p></div>'));
$(li).appendTo($('.queue'));

@@ -49,7 +58,7 @@ $(document).ready(function () {
xhr.onreadystatechange = function (e) {
if (xhr.readyState == 4) {
$('.upload-progress', $(li)).hide();
$('#web').addClass('uploading');
// progress.className = (xhr.status == 200 ? "success" : "failure");
if (xhr.status == 200) {
$(li).html('<a target="_blank" href="' + xhr.responseText + '">' + xhr.responseText + '</a>');


+ 1
- 1
transfersh-web/styles/bootstrap.less ファイルの表示

@@ -16,7 +16,7 @@
//@import "../bower_components/bootstrap/less/buttons.less";

// Components
//@import "../bower_components/bootstrap/less/component-animations.less";
@import "../bower_components/bootstrap/less/component-animations.less";
//@import "../bower_components/bootstrap/less/glyphicons.less";
//@import "../bower_components/bootstrap/less/dropdowns.less";
//@import "../bower_components/bootstrap/less/button-groups.less";


transfersh-web/styles/contact.less → transfersh-web/styles/includes/contact.less ファイルの表示


transfersh-web/styles/global.less → transfersh-web/styles/includes/global.less ファイルの表示

@@ -52,7 +52,7 @@ h2 {
}

section {
padding: 50px 0
// padding: 50px 0
}

img {

transfersh-web/styles/home.less → transfersh-web/styles/includes/home.less ファイルの表示

@@ -4,12 +4,17 @@
margin: 30px 0;
}
h2 {
font-size: 65px;
margin-top: -10px;
margin-bottom: 45px;
font-size: 20px;
}

@media (min-width: @screen-sm-min) {
padding: 50px
h2 {
font-size: 65px;
margin-top: -10px;
margin-bottom: 45px;
}
}
padding: 50px;
}

#from-terminal,

transfersh-web/styles/pages.less → transfersh-web/styles/includes/pages.less ファイルの表示


+ 43
- 0
transfersh-web/styles/includes/reviews.less ファイルの表示

@@ -0,0 +1,43 @@
#reviews {
background: @light-gray;
padding: 130px 0;
.twitter-profile {
float: left;
display: block;
height: 100px;
margin-right: 20px;
border-radius: 10px;
}
}


blockquote.twitter-tweet {
display: inline-block;
font-size: 15px;
line-height: 20px;
margin: 10px 5px;
padding: 0 16px 16px 16px;
color: #000;
text-align: right;
border: 0;

}
blockquote.twitter-tweet p {
font-size: 17px;
font-weight: normal;
line-height: 20px;
text-align: left;
}
blockquote.twitter-tweet a {
color: inherit;
font-weight: normal;
text-decoration: none;
outline: 0 none;
}
blockquote.twitter-tweet a:hover,
blockquote.twitter-tweet a:focus {
text-decoration: underline;
}

transfersh-web/styles/transfersh-icons.less → transfersh-web/styles/includes/transfersh-icons.less ファイルの表示


+ 68
- 18
transfersh-web/styles/main.css ファイルの表示

@@ -1315,6 +1315,27 @@ address {
margin-left: 0%;
}
}
.fade {
opacity: 0;
-webkit-transition: opacity 0.15s linear;
transition: opacity 0.15s linear;
}
.fade.in {
opacity: 1;
}
.collapse {
display: none;
}
.collapse.in {
display: block;
}
.collapsing {
position: relative;
height: 0;
overflow: hidden;
-webkit-transition: height 0.35s ease;
transition: height 0.35s ease;
}
/* @import "../bower_components/bootstrap/less/navs.less";
@import "../bower_components/bootstrap/less/navbar.less"; */
@-webkit-keyframes progress-bar-stripes {
@@ -1995,9 +2016,6 @@ h2 {
width: 1216px;
}
}
section {
padding: 50px 0;
}
img {
max-width: 100%;
margin: 0 auto;
@@ -2008,15 +2026,19 @@ a:hover {
}
#home {
text-align: center;
padding: 50px;
}
#home .btn-cta {
margin: 30px 0;
}
#home h2 {
font-size: 65px;
margin-top: -10px;
margin-bottom: 45px;
font-size: 20px;
}
@media (min-width: 768px) {
#home h2 {
font-size: 65px;
margin-top: -10px;
margin-bottom: 45px;
}
}
#from-terminal,
#from-web {
@@ -2152,6 +2174,43 @@ footer img {
margin-top: -50px;
margin-bottom: 40px;
}
#reviews {
background: #f6f8f8;
padding: 130px 0;
}
#reviews .twitter-profile {
float: left;
display: block;
height: 100px;
margin-right: 20px;
border-radius: 10px;
}
blockquote.twitter-tweet {
display: inline-block;
font-size: 15px;
line-height: 20px;
margin: 10px 5px;
padding: 0 16px 16px 16px;
color: #000;
text-align: right;
border: 0;
}
blockquote.twitter-tweet p {
font-size: 17px;
font-weight: normal;
line-height: 20px;
text-align: left;
}
blockquote.twitter-tweet a {
color: inherit;
font-weight: normal;
text-decoration: none;
outline: 0 none;
}
blockquote.twitter-tweet a:hover,
blockquote.twitter-tweet a:focus {
text-decoration: underline;
}
@font-face {
font-family: "transfersh";
src: url("../fonts/transfersh.eot");
@@ -2228,16 +2287,7 @@ footer img {
.icon-gplus:before {
content: "p";
}
.follow-button {
display: none!important;
opacity: 0;
}
.twitter-tweet {
height: 205px;
background: #fff;
}
#reviews {
background: #36535a;
padding: 130px 0;
.uploading {
background: red;
}
/*# sourceMappingURL=/styles/main.css.map */

+ 1
- 1
transfersh-web/styles/main.css.map
ファイル差分が大きすぎるため省略します
ファイルの表示


+ 7
- 20
transfersh-web/styles/main.less ファイルの表示

@@ -5,27 +5,14 @@

@octicons-font-path: "../bower_components/octicons/octicons/";*/
@import "config";
@import "global";
@import "home";
@import "pages";
@import "includes/global";
@import "includes/home";
@import "includes/pages";
@import "includes/reviews";
@import "includes/transfersh-icons";

@import "transfersh-icons";


// Hide twitter follow button

.follow-button {
display:none!important;
opacity: 0;
}

.twitter-tweet {
height: 205px;
background: #fff;
}

#reviews {
background: @dark-blue;
padding: 130px 0
.uploading {
background: red;
}


読み込み中…
キャンセル
保存