aboutsummaryrefslogtreecommitdiff
path: root/app/views/upload.view.php
diff options
context:
space:
mode:
authorThedro Neely <thedroneely@gmail.com>2022-07-19 11:59:45 -0400
committerThedro Neely <thedroneely@gmail.com>2022-07-19 11:59:45 -0400
commitea54421b15c9705f86a8d25a6caaa40791d66e18 (patch)
tree546ec8892c2140a48129fd521189dc68b567c95b /app/views/upload.view.php
parentf888991f298e59933250c8d56080c1805068f5e0 (diff)
downloadthedroneely.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.php39
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>