diff options
author | Thedro Neely <thedroneely@gmail.com> | 2022-07-19 11:59:45 -0400 |
---|---|---|
committer | Thedro Neely <thedroneely@gmail.com> | 2022-07-19 11:59:45 -0400 |
commit | ea54421b15c9705f86a8d25a6caaa40791d66e18 (patch) | |
tree | 546ec8892c2140a48129fd521189dc68b567c95b /app/views/upload.view.php | |
parent | f888991f298e59933250c8d56080c1805068f5e0 (diff) | |
download | thedroneely.com-ea54421b15c9705f86a8d25a6caaa40791d66e18.tar.gz thedroneely.com-ea54421b15c9705f86a8d25a6caaa40791d66e18.tar.bz2 thedroneely.com-ea54421b15c9705f86a8d25a6caaa40791d66e18.zip |
app: Refactor and CSS rewrite
Diffstat (limited to 'app/views/upload.view.php')
-rw-r--r-- | app/views/upload.view.php | 39 |
1 files changed, 20 insertions, 19 deletions
diff --git a/app/views/upload.view.php b/app/views/upload.view.php index 93ab171..f504d5b 100644 --- a/app/views/upload.view.php +++ b/app/views/upload.view.php @@ -2,31 +2,32 @@ <?php require __DIR__ . '/partials/header.php';?> - <body> +<body> <?php require __DIR__ . '/partials/navigator.php';?> - <section class="section"> - <div class="container"> + <main> + <article> + <upload-page> + <h1>Upload Files</h1> + <div id="file-upload-area"></div> + </upload-page> + </article> + </main> - <h1 class="title has-text-centered">Upload Files</h1> - <div id="file-upload-area"></div> + <link href="/css/uppy.min.css" rel="stylesheet"> - </div> - </section> + <script src="/js/uppy.min.js"></script> - <link href="/css/uppy.min.css" rel="stylesheet"> - <script src="/js/uppy.min.js"></script> + <script> + var uppy = Uppy.Core() + .use(Uppy.Url, { companionUrl: 'https://www.thedroneely.com/' }) + .use(Uppy.Webcam, {}) + .use(Uppy.Dashboard, { inline: true, target: '#file-upload-area', plugins: ['Url', 'Webcam'] }) + .use(Uppy.XHRUpload, {endpoint: '/upload/', formdata: true, fieldName: 'upload' }) + </script> - <script> - var uppy = Uppy.Core() - .use(Uppy.Url, { companionUrl: 'https://www.thedroneely.com/' }) - .use(Uppy.Webcam, {}) - .use(Uppy.Dashboard, { inline: true, target: '#file-upload-area', plugins: ['Url', 'Webcam'] }) - .use(Uppy.XHRUpload, {endpoint: '/upload/', formdata: true, fieldName: 'upload' }) - </script> +<?php require __DIR__ . '/partials/footer.php';?> - <?php require __DIR__ . '/partials/footer.php';?> - - </body> +</body> </html> |