Adding in functionality for Wordpress Menus, and logic to switch to Sheet when menu is too big

This commit is contained in:
Frank
2023-10-11 21:18:35 -06:00
parent 3cd63722d5
commit 8a724baf22
8 changed files with 67 additions and 24 deletions

View File

@@ -33,10 +33,14 @@ export const getStaticProps = wrapper.getStaticProps(
);
const Page = ({ page }: any) => {
console.log(page);
return (
<Internal>
<div className="container my-32">
{parser(page.content.rendered, { trim: true })}
<div className="container my-24 md:my-36 page-content">
<h1 className="text-4xl md:text-[64px] text-primary md:mb-6 font-sans font-bold">
{page.title.rendered}
</h1>
<div className="">{parser(page.content.rendered, { trim: true })}</div>
</div>
</Internal>
);

View File

@@ -4,7 +4,6 @@ import { getPost, getPosts, getRunningQueriesThunk } from "@/services/posts";
import { wrapper, reduxStore } from "@/lib/redux";
import Internal from "@/components/common/Internal";
import ScrollDown from "@/components/common/scrollDown";
import { revalidatePath } from "next/cache";
export const getStaticPaths = async () => {
const store = reduxStore();