From 6f604b9768c004100fabe351c9d5e26a4f306a2d Mon Sep 17 00:00:00 2001 From: Aaron William Po Date: Mon, 20 Feb 2023 22:57:00 -0500 Subject: [PATCH] Change font, add meta title/desc to 404 page --- components/BeerById/CommentCard.tsx | 48 +++++++++++++++++++---------- components/Login/LoginForm.tsx | 2 +- components/ui/Navbar.tsx | 4 +-- components/ui/alerts/ErrorAlert.tsx | 2 +- pages/404.tsx | 5 +++ pages/beers/[id].tsx | 2 +- pages/login/index.tsx | 18 ++++++++--- styles/globals.css | 8 +++++ tailwind.config.js | 7 +++-- 9 files changed, 68 insertions(+), 28 deletions(-) diff --git a/components/BeerById/CommentCard.tsx b/components/BeerById/CommentCard.tsx index 7d5712b..bd2cd4c 100644 --- a/components/BeerById/CommentCard.tsx +++ b/components/BeerById/CommentCard.tsx @@ -1,5 +1,6 @@ import { BeerCommentQueryResultT } from '@/services/BeerComment/schema/BeerCommentQueryResult'; -import { formatDistanceStrict } from 'date-fns'; +import { format, formatDistanceStrict } from 'date-fns'; +import Link from 'next/link'; import { useEffect, useState } from 'react'; import { Rating } from 'react-daisyui'; @@ -13,23 +14,38 @@ const CommentCard: React.FC<{ }, [comment.createdAt]); return ( -
-
+
+
-

{comment.postedBy.username}

-

posted {timeDistance} ago

+

+ + {comment.postedBy.username} + +

+

+ posted{' '} + {' '} + ago +

+
+
+ + {Array.from({ length: 5 }).map((val, index) => ( + + ))} +
- - {Array.from({ length: 5 }).map((val, index) => ( - - ))} -

{comment.content}

diff --git a/components/Login/LoginForm.tsx b/components/Login/LoginForm.tsx index 722bc35..ca9ec9d 100644 --- a/components/Login/LoginForm.tsx +++ b/components/Login/LoginForm.tsx @@ -74,7 +74,7 @@ const LoginForm = () => { {responseError && }
-
diff --git a/components/ui/Navbar.tsx b/components/ui/Navbar.tsx index a329b6b..0e69453 100644 --- a/components/ui/Navbar.tsx +++ b/components/ui/Navbar.tsx @@ -44,7 +44,7 @@ const Navbar = () => { return (
-