From 8bdb1fa1af9261f0ae66937ae6ac3bf37e66fd3c Mon Sep 17 00:00:00 2001 From: reiyua Date: Tue, 2 Jan 2024 08:22:48 +0000 Subject: [PATCH] Make exsting entry boxes move depending on existing entry amount --- src/App.js | 100 ++++++++++++++++--------------- src/components/DisplayEntries.js | 4 +- 2 files changed, 54 insertions(+), 50 deletions(-) diff --git a/src/App.js b/src/App.js index 084f693..269b14a 100644 --- a/src/App.js +++ b/src/App.js @@ -88,56 +88,60 @@ export function MyForm(props) { // Create form for user to input data return ( -
-
- - Ray's Unbased Takes -

Submit any unbased takes Ray has about various food's, drinks or other ungodly, unbased opinions

- - - Enter submitter name: - setSubmitter(e.target.value)} - /> - What date did Ray admit this cursed, unbased opinion? (dd-mm-yyyy): - setDate(e.target.value)} - /> - Enter context and item for this unbased take of Ray: - setContext(e.target.value)} - /> - - Optionally upload evidence: -

The storage bucket I get is limited to 1GB in total with the free tier Google provides but can upgrade if it get's used alot by us.

- { - e.stopPropagation(); - setFileupload(e.target.files[0]); +
+
+ + + Ray's Unbased Takes +

Submit any unbased takes Ray has about various food's, drinks or other ungodly, unbased opinions

+ + + Enter submitter name: + setSubmitter(e.target.value)} + /> + What date did Ray admit this cursed, unbased opinion? (dd-mm-yyyy): + setDate(e.target.value)} + /> + Enter context and item for this unbased take of Ray: + setContext(e.target.value)} + /> + + Optionally upload evidence: +

The storage bucket I get is limited to 1GB in total with the free tier Google provides but can upgrade if it get's used alot by us.

+ { + e.stopPropagation(); + setFileupload(e.target.files[0]); }} - /> + /> - - -
- -

Existing Unbased Takes

- + + + + +
+
+

Existing Unbased Takes

+ +
); } diff --git a/src/components/DisplayEntries.js b/src/components/DisplayEntries.js index b5bee07..6feb8ae 100644 --- a/src/components/DisplayEntries.js +++ b/src/components/DisplayEntries.js @@ -23,9 +23,9 @@ export function DisplayEntries() { }, []); return ( -
+
{entries.map((entry) => ( - + {entry.submitter} {entry.date}