From 4e73ad0f6b71691e44168fbf934aa17dc416cb12 Mon Sep 17 00:00:00 2001 From: edwin6666 Date: Tue, 19 Sep 2023 14:19:41 -0400 Subject: [PATCH 1/5] Fix: navigate to home by clicking on the logo --- src/components/Navbar/Navbar.jsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Navbar/Navbar.jsx b/src/components/Navbar/Navbar.jsx index b53a610..f9419b5 100644 --- a/src/components/Navbar/Navbar.jsx +++ b/src/components/Navbar/Navbar.jsx @@ -34,7 +34,7 @@ const Navbar = () => {
TechTalk News From 835786ef0c157631a0dc705e87ecf5b22407c159 Mon Sep 17 00:00:00 2001 From: edwin6666 Date: Tue, 19 Sep 2023 22:31:52 -0400 Subject: [PATCH 2/5] Refactor semantic html in login and navbar --- src/components/Login/Login.jsx | 41 ++++++++++++-------------------- src/components/Navbar/Navbar.jsx | 12 +++++----- 2 files changed, 21 insertions(+), 32 deletions(-) diff --git a/src/components/Login/Login.jsx b/src/components/Login/Login.jsx index eb47b3a..f570819 100644 --- a/src/components/Login/Login.jsx +++ b/src/components/Login/Login.jsx @@ -17,41 +17,35 @@ const Signin = () => { return (
-
+
-
-

TechTalk News

+
+

TechTalk News

Welcome to TechTalk, the go-to social network for technology and news enthusiasts! Here, you can connect with a passionate community that shares your interests and discover the latest trends in the digital world.

-
+
-
+ -
+
); }; + export default Signin; diff --git a/src/components/Navbar/Navbar.jsx b/src/components/Navbar/Navbar.jsx index f9419b5..0df6552 100644 --- a/src/components/Navbar/Navbar.jsx +++ b/src/components/Navbar/Navbar.jsx @@ -29,8 +29,8 @@ const Navbar = () => { }; return ( -
-
+
+
-
-
+ + ); }; From a9dd00f7f5bbcad398bddbcfcb558ed5935e6627 Mon Sep 17 00:00:00 2001 From: edwin6666 Date: Tue, 19 Sep 2023 23:25:57 -0400 Subject: [PATCH 3/5] feat(semantics): Change HTML tags for semantic tags Replaced most non-semantic HTML tags in the code by appropriate semantic tags to improve the structure and content accessibility. --- src/components/PostCard.jsx | 8 +- src/components/PostCardUser.jsx | 20 ++--- src/components/signup/Signup.jsx | 32 ++++---- src/components/signup/SignupForm.js | 121 +++++++++++++--------------- src/pages/Contact.js | 12 +-- src/pages/HomePage.js | 23 +++--- src/pages/NotFoundPage.js | 4 +- src/pages/PostForm.js | 12 +-- 8 files changed, 106 insertions(+), 126 deletions(-) diff --git a/src/components/PostCard.jsx b/src/components/PostCard.jsx index 58e39f6..3121254 100644 --- a/src/components/PostCard.jsx +++ b/src/components/PostCard.jsx @@ -83,8 +83,8 @@ export function PostCard({ post }) { }; return ( -
-
+
+
img Logo
@@ -116,7 +116,7 @@ export function PostCard({ post }) {
-
+
{post.image && insertMedia(post.image.url)} @@ -126,6 +126,6 @@ export function PostCard({ post }) { {post.description}

-
+ ); } diff --git a/src/components/PostCardUser.jsx b/src/components/PostCardUser.jsx index 021a655..ba2a790 100644 --- a/src/components/PostCardUser.jsx +++ b/src/components/PostCardUser.jsx @@ -4,11 +4,10 @@ import logoImg from "../Images/postimg.jpg"; export function PostCardUser({ post }) { const normalDate = moment(post.createdAt).format("DD/MM/YYYY"); + return ( - -
- -
+
+
logo
@@ -16,7 +15,6 @@ export function PostCardUser({ post }) { TechTalk

- {normalDate}

@@ -33,18 +31,20 @@ export function PostCardUser({ post }) { strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" - d="M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z " + d="M12 5v.01M12 12v.01M12 19v.01M12 6a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2zm0 7a1 1 0 110-2 1 1 0 010 2z" />
-
+ + {post.image && insertMedia(post.image.url)}

{post.title}

-

{post.description}

+

+ {post.description} +

-
- + ); } diff --git a/src/components/signup/Signup.jsx b/src/components/signup/Signup.jsx index e9e4e81..56b8074 100644 --- a/src/components/signup/Signup.jsx +++ b/src/components/signup/Signup.jsx @@ -5,16 +5,16 @@ const Signup = () => { const { data, error, handleChange, handleSubmit } = useSignupLogic(); return ( -
-
-
+
+
+
Join us Now -
-
+ +

Enter your credentials to get access account -

+

-
+
-
-
- -
+

+ + ); }; diff --git a/src/components/signup/SignupForm.js b/src/components/signup/SignupForm.js index 238008b..be13c1e 100644 --- a/src/components/signup/SignupForm.js +++ b/src/components/signup/SignupForm.js @@ -38,80 +38,67 @@ const SignupForm = ({ onSuccess }) => { return (
-
- -
-
- -
- + +
+
+
+
-
- -
-
- -
- + + +
+
+
+
-
- -
-
- - - -
- + + +
+
+ + +
+
- {error} + {error}