From bbbbb19d26fccb1004eee2621581918773263eec Mon Sep 17 00:00:00 2001 From: Max Leiter Date: Sat, 12 Mar 2022 15:51:31 -0800 Subject: [PATCH] client: move images to assets/, improve new post on mobile --- README.md | 2 +- client/components/new-post/post.module.css | 7 +++++++ client/pages/_app.tsx | 9 ++++----- .../public/{ => assets}/android-chrome-192x192.png | Bin .../public/{ => assets}/android-chrome-512x512.png | Bin client/public/{ => assets}/apple-touch-icon.png | Bin client/public/{ => assets}/browserconfig.xml | 0 client/public/{ => assets}/favicon-16x16.png | Bin client/public/{ => assets}/favicon-32x32.png | Bin client/public/{ => assets}/favicon.ico | Bin client/public/{ => assets}/favicon.png | Bin client/public/{ => assets}/favicon.svg | 0 client/public/{ => assets}/mstile-144x144.png | Bin client/public/{ => assets}/mstile-150x150.png | Bin client/public/{ => assets}/mstile-310x150.png | Bin client/public/{ => assets}/mstile-310x310.png | Bin client/public/{ => assets}/mstile-70x70.png | Bin client/public/{ => assets}/safari-pinned-tab.svg | 0 18 files changed, 12 insertions(+), 6 deletions(-) rename client/public/{ => assets}/android-chrome-192x192.png (100%) rename client/public/{ => assets}/android-chrome-512x512.png (100%) rename client/public/{ => assets}/apple-touch-icon.png (100%) rename client/public/{ => assets}/browserconfig.xml (100%) rename client/public/{ => assets}/favicon-16x16.png (100%) rename client/public/{ => assets}/favicon-32x32.png (100%) rename client/public/{ => assets}/favicon.ico (100%) rename client/public/{ => assets}/favicon.png (100%) rename client/public/{ => assets}/favicon.svg (100%) rename client/public/{ => assets}/mstile-144x144.png (100%) rename client/public/{ => assets}/mstile-150x150.png (100%) rename client/public/{ => assets}/mstile-310x150.png (100%) rename client/public/{ => assets}/mstile-310x310.png (100%) rename client/public/{ => assets}/mstile-70x70.png (100%) rename client/public/{ => assets}/safari-pinned-tab.svg (100%) diff --git a/README.md b/README.md index e1335cf..26ef244 100644 --- a/README.md +++ b/README.md @@ -42,4 +42,4 @@ Drit is a major work in progress. Below is a (rough) list of completed and envis - [ ] user settings - [ ] works enough with JavaScript disabled - [ ] documentation -- [ ] customizable homepage, so the demo can exist as-is but other instances can be built from the same source. Environment variable for the file contents? +- [x] customizable homepage, so the demo can exist as-is but other instances can be built from the same source. Environment variable for the file contents? diff --git a/client/components/new-post/post.module.css b/client/components/new-post/post.module.css index 959bb33..9925298 100644 --- a/client/components/new-post/post.module.css +++ b/client/components/new-post/post.module.css @@ -18,4 +18,11 @@ align-items: flex-start; flex-direction: column; } + + .buttons { + flex-direction: column; + margin: 0; + justify-content: space-between; + min-height: 95px; + } } diff --git a/client/pages/_app.tsx b/client/pages/_app.tsx index 3bd66d8..79c75b6 100644 --- a/client/pages/_app.tsx +++ b/client/pages/_app.tsx @@ -49,12 +49,11 @@ function MyApp({ Component, pageProps }: AppProps) { - - - - + + + - + diff --git a/client/public/android-chrome-192x192.png b/client/public/assets/android-chrome-192x192.png similarity index 100% rename from client/public/android-chrome-192x192.png rename to client/public/assets/android-chrome-192x192.png diff --git a/client/public/android-chrome-512x512.png b/client/public/assets/android-chrome-512x512.png similarity index 100% rename from client/public/android-chrome-512x512.png rename to client/public/assets/android-chrome-512x512.png diff --git a/client/public/apple-touch-icon.png b/client/public/assets/apple-touch-icon.png similarity index 100% rename from client/public/apple-touch-icon.png rename to client/public/assets/apple-touch-icon.png diff --git a/client/public/browserconfig.xml b/client/public/assets/browserconfig.xml similarity index 100% rename from client/public/browserconfig.xml rename to client/public/assets/browserconfig.xml diff --git a/client/public/favicon-16x16.png b/client/public/assets/favicon-16x16.png similarity index 100% rename from client/public/favicon-16x16.png rename to client/public/assets/favicon-16x16.png diff --git a/client/public/favicon-32x32.png b/client/public/assets/favicon-32x32.png similarity index 100% rename from client/public/favicon-32x32.png rename to client/public/assets/favicon-32x32.png diff --git a/client/public/favicon.ico b/client/public/assets/favicon.ico similarity index 100% rename from client/public/favicon.ico rename to client/public/assets/favicon.ico diff --git a/client/public/favicon.png b/client/public/assets/favicon.png similarity index 100% rename from client/public/favicon.png rename to client/public/assets/favicon.png diff --git a/client/public/favicon.svg b/client/public/assets/favicon.svg similarity index 100% rename from client/public/favicon.svg rename to client/public/assets/favicon.svg diff --git a/client/public/mstile-144x144.png b/client/public/assets/mstile-144x144.png similarity index 100% rename from client/public/mstile-144x144.png rename to client/public/assets/mstile-144x144.png diff --git a/client/public/mstile-150x150.png b/client/public/assets/mstile-150x150.png similarity index 100% rename from client/public/mstile-150x150.png rename to client/public/assets/mstile-150x150.png diff --git a/client/public/mstile-310x150.png b/client/public/assets/mstile-310x150.png similarity index 100% rename from client/public/mstile-310x150.png rename to client/public/assets/mstile-310x150.png diff --git a/client/public/mstile-310x310.png b/client/public/assets/mstile-310x310.png similarity index 100% rename from client/public/mstile-310x310.png rename to client/public/assets/mstile-310x310.png diff --git a/client/public/mstile-70x70.png b/client/public/assets/mstile-70x70.png similarity index 100% rename from client/public/mstile-70x70.png rename to client/public/assets/mstile-70x70.png diff --git a/client/public/safari-pinned-tab.svg b/client/public/assets/safari-pinned-tab.svg similarity index 100% rename from client/public/safari-pinned-tab.svg rename to client/public/assets/safari-pinned-tab.svg