From a5d89d3ed88f05b785bbb38a19098050c1f2b90a Mon Sep 17 00:00:00 2001 From: trobonox <57040351+trobonox@users.noreply.github.com> Date: Sat, 12 Aug 2023 19:16:14 +0300 Subject: [PATCH] styles: adjust visuals of upload process --- src/routes/(home).tsx | 102 +++++++++++++++++++++++------------------- 1 file changed, 55 insertions(+), 47 deletions(-) diff --git a/src/routes/(home).tsx b/src/routes/(home).tsx index bd59b35..4f8c075 100644 --- a/src/routes/(home).tsx +++ b/src/routes/(home).tsx @@ -8,6 +8,7 @@ import { For, } from "solid-js"; import { createStore } from "solid-js/store"; +import { A, useNavigate } from "solid-start"; import Header from "@/components/landing/Header"; import { @@ -36,6 +37,8 @@ const Page: Component = () => { uploads: UploadedFile[]; } + const navigate = useNavigate(); + const [filesToUpload, setFilesToUpload] = createSignal< FileList | Array >([]); @@ -103,7 +106,7 @@ const Page: Component = () => { > -
+
{" "} - or a{" "} - - . + {" "}yourself.
@@ -153,7 +149,7 @@ const Page: Component = () => {
{ event.preventDefault(); const uploads = await makeFileUpload(filesToUpload(), { @@ -163,25 +159,25 @@ const Page: Component = () => { setState({ view: "uploaded", uploads }); }} > -

+

Do you want to upload{" "} {filesToUpload().length === 1 - ? "this file" - : `those ${filesToUpload().length} files`}{" "} + ? `the file "${filesToUpload()[0].name}"` + : `the ${filesToUpload().length} selected files`} ?

- Since you're not logged in, the uploads will be always - public. +

+ Since you're not logged in, the uploads will be + public. We recommend you to log in to have full control over your uploads.

} > -
-
-

Your files are ready!

-

Our cats uploaded those files just for you!

+

We did it! ⋆ ˚。⋆୨୧˚

+

Our cats uploaded those files just for you! ପ(๑•ᴗ•๑)ଓ They are now ready to be accessed by you or other users.

- - {(upload) => ( -
-

{upload.name}

-

Is public? {upload.private ? "No" : "Yes"}

-

{upload.id}

+

Here's an overview of all uploaded files:

+
+ + {(upload) => ( +
+
+

{upload.name}

+

{upload.private ? "Private" : "Public"}

+
- - - -
- )} -
+ + + +
+ )} + +
+