diff --git a/src/Pages/Auth/auth.css b/src/Pages/Auth/auth.css
index 1030d2fc..6601b322 100644
--- a/src/Pages/Auth/auth.css
+++ b/src/Pages/Auth/auth.css
@@ -28,6 +28,10 @@
font-size: 3em;
}
+.brand {
+ max-width: 100%;
+}
+
#password {
padding-left: 25px;
/* */
diff --git a/src/Pages/GameStore/NavBar.module.css b/src/Pages/GameStore/NavBar.module.css
index 9c83cbca..b5afd635 100644
--- a/src/Pages/GameStore/NavBar.module.css
+++ b/src/Pages/GameStore/NavBar.module.css
@@ -11,10 +11,10 @@
z-index: 12;
}
-form {
+/* form {
display: flex;
align-items: center;
-}
+} */
form button {
background: transparent;
diff --git a/src/Pages/Home/Home.jsx b/src/Pages/Home/Home.jsx
index e8793819..ad56a3b3 100755
--- a/src/Pages/Home/Home.jsx
+++ b/src/Pages/Home/Home.jsx
@@ -10,6 +10,7 @@ import Hero from "../../Components/Hero/hero";
import { StyledHr } from "../../Layout/Hr/styledHr";
import { AncorButton } from "../../Components/Button/AncorButton";
import { GlobalState } from "../../GlobalState";
+import { truncate } from "../../Utils/helperFunctions";
// import PrivateHome from "../../Components/Cards/privateHome";
import { HeroText } from "../../Layout/Hero/styledHero";
import moment from "moment-timezone";
@@ -18,19 +19,18 @@ const Home = () => {
const state = useContext(GlobalState);
const [isLoggedIn] = state.userAPI.isLoggedIn;
const [articles] = state.articlesAPI.articles;
- const [user] = state.userAPI.user;
- const mainPosts = articles.sort(
- (a, b) => new Date(b.createdAt) - new Date(a.createdAt)
- );
useEffect(() => {
console.log({ articles });
}, [articles]);
if (!articles && isLoggedIn) return <>loading...>;
-
+ const mainPosts = articles.sort(
+ (a, b) => new Date(b.createdAt) - new Date(a.createdAt)
+ );
const loggedInHome = () => {
return (
<>
+
{truncate(article.description)}
+ Categories: + {article.categories.length >= 1 ? ( + article.categories.map((category) => { + return ( + + {category} + + ); + }) + ) : ( + None + )} +