From ea4669b29081b3c6a9809cda310d0e0e107e8c9e Mon Sep 17 00:00:00 2001 From: bill bittner Date: Fri, 9 Jun 2017 20:39:07 -0700 Subject: [PATCH] added drag and drop file selection --- public/assets/css/style.css | 11 ++++ views/index.handlebars | 85 +++++++++++++++++++++++-------- views/partials/publish.handlebars | 44 +++++++++------- 3 files changed, 99 insertions(+), 41 deletions(-) diff --git a/public/assets/css/style.css b/public/assets/css/style.css index 88ef37b6..dcf255b5 100644 --- a/public/assets/css/style.css +++ b/public/assets/css/style.css @@ -1,3 +1,14 @@ +#drop-zone { + border: 1px dashed lightgrey; + padding: 1em; + height: 200px; + width: 300px; +} + .all-claims-img { height: 200px; +} + +#image-preview { + display: none; } \ No newline at end of file diff --git a/views/index.handlebars b/views/index.handlebars index 3d829ea5..2f7fd6c4 100644 --- a/views/index.handlebars +++ b/views/index.handlebars @@ -5,16 +5,20 @@ {{> publish}} {{> links}} {{> documentation}} -{{> bugs}} {{> contribute}} +{{> bugs}} diff --git a/views/partials/publish.handlebars b/views/partials/publish.handlebars index d7385282..bd20d227 100644 --- a/views/partials/publish.handlebars +++ b/views/partials/publish.handlebars @@ -1,22 +1,28 @@

Publish Your Own

-
- -
- Image preview... -
- Name: -
- License: -
- NSFW: -

By clicking 'Publish' I attest that I have read and agree to the LBRY terms of service.

- -
+
+
+
+

Drag and drop your file here, or choose your file below.

+ + +
+ Image preview... +
+ Name: +
+ License: +
+ NSFW: +

By clicking 'Publish' I attest that I have read and agree to the LBRY terms of service.

+ + +
+
\ No newline at end of file