Styling changes and refactor

Switch google fonts to use Next.js font optimization, animate comment fade in, and refactor beer like handler and comment submit handler.
This commit is contained in:
Aaron William Po
2023-04-04 20:50:00 -04:00
parent a4362a531c
commit 796a5fce3f
15 changed files with 148 additions and 77 deletions

View File

@@ -1,5 +1,5 @@
import Link from 'next/link';
import { FaArrowLeft, FaArrowRight } from 'react-icons/fa';
import { FC } from 'react';
interface PaginationProps {
@@ -15,7 +15,7 @@ const BeerIndexPaginationBar: FC<PaginationProps> = ({ pageCount, pageNum }) =>
href={{ pathname: '/beers', query: { page_num: pageNum - 1 } }}
scroll={false}
>
«
<FaArrowLeft />
</Link>
<button className="btn">Page {pageNum}</button>
<Link
@@ -23,7 +23,7 @@ const BeerIndexPaginationBar: FC<PaginationProps> = ({ pageCount, pageNum }) =>
href={{ pathname: '/beers', query: { page_num: pageNum + 1 } }}
scroll={false}
>
»
<FaArrowRight />
</Link>
</div>
);