From d313c5a69cccde912ab05c25469249c2cf9cefec Mon Sep 17 00:00:00 2001 From: 1010varun Date: Thu, 23 Feb 2023 12:18:14 +0530 Subject: [PATCH 1/4] updated new post modal --- src/App.jsx | 12 ++++++++++-- src/components/ImgUpload.jsx | 29 ++++++++++++++++------------- 2 files changed, 26 insertions(+), 15 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index ece9b4572..a67e1bef4 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -294,8 +294,15 @@ function App() { )} - setOpenNewUpload(false)}> - New Upload + setOpenNewUpload(false)}> +
+
instagram +

New Post

{!loadingPosts && (user ? ( @@ -307,6 +314,7 @@ function App() {

Sorry you need to login to upload posts

))}
+
setOpenSignUp(false)}> diff --git a/src/components/ImgUpload.jsx b/src/components/ImgUpload.jsx index 7c4907747..653ed6d45 100644 --- a/src/components/ImgUpload.jsx +++ b/src/components/ImgUpload.jsx @@ -144,30 +144,33 @@ function ImgUpload(props) { )} {(!uploadingPost || (uploadingPost && image)) && ( <> - - Allowed Types: jpg, jpeg, png +
+ + +
)} {imagePreviews && (
{imagePreviews.map((img, i) => { return ( - {`image-${i}`} + /> ); })}
From 10629fbb912c217bb86386e3e31fca88ac64267c Mon Sep 17 00:00:00 2001 From: 1010varun Date: Fri, 24 Feb 2023 00:07:03 +0530 Subject: [PATCH 2/4] make suggested changes --- src/App.jsx | 8 ++++---- src/index.css | 4 +--- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index a67e1bef4..a7d031cb6 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -294,15 +294,15 @@ function App() { )} - setOpenNewUpload(false)}> -
-
setOpenNewUpload(false)}> +
+ instagram -

New Post

+

New Post

{!loadingPosts && (user ? ( diff --git a/src/index.css b/src/index.css index 2049e7b0b..e7e24c0ba 100644 --- a/src/index.css +++ b/src/index.css @@ -180,8 +180,6 @@ margin-right: auto; margin-top: 10px; margin-bottom: 10px; - /* border: 1px solid #ccc; */ - background-color: rgb(157, 237, 226); } .imageUpload-progress { @@ -262,7 +260,7 @@ div#picker { display: flex; align-items: center; justify-content: center; - color: #cf0db5; + color: #ffffff; font-weight: bold; cursor: pointer; transition: transform 0.2s ease-out; From 37e093503e7c9eff6438bf949cc4bea9dcde5deb Mon Sep 17 00:00:00 2001 From: 1010varun Date: Fri, 24 Feb 2023 12:57:22 +0530 Subject: [PATCH 3/4] removed center tag --- src/App.jsx | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/src/App.jsx b/src/App.jsx index 6cf95c63c..2bfb93a83 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -29,6 +29,7 @@ function getModalStyle() { transform: `translate(-${top}%, -${left}%)`, padding: `${padding}%`, borderRadius: `${radius}%`, + textAlign: "center" }; } @@ -319,12 +320,11 @@ function App() { setOpenSignUp(false)}>
-
instagram
{address ? ( @@ -390,19 +391,17 @@ function App() { > Sign Up -
setOpenSignIn(false)}>
-
dummygram Sign In -
-
) : ( -
+
{posts.map(({ id, post }) => ( ))}
)} -
+
Date: Sat, 25 Feb 2023 00:03:37 +0530 Subject: [PATCH 4/4] added flex --- src/App.jsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/App.jsx b/src/App.jsx index 2bfb93a83..2a1796ae1 100644 --- a/src/App.jsx +++ b/src/App.jsx @@ -430,6 +430,7 @@ function App() {
+
) : ( -
+
{posts.map(({ id, post }) => ( ))}
)}
+
+ ); }