diff --git a/Frontend/app/(admin)/blogs/[slug]/page.tsx b/Frontend/app/(admin)/blogs/[slug]/page.tsx index 18705e1..69f83bc 100644 --- a/Frontend/app/(admin)/blogs/[slug]/page.tsx +++ b/Frontend/app/(admin)/blogs/[slug]/page.tsx @@ -4,6 +4,8 @@ import { headers } from "next/headers"; import React from "react"; import Spacer from "@/components/Utilities/Spacer"; import pb from "@/lib/pocketbase"; +import Footer from "@/components/Footer"; +import Background from "@/components/Utilities/Background"; export async function generateMetadata({ params, @@ -43,10 +45,19 @@ const PostPage = async (props: any) => { requestKey: "post", }); return ( -
- - -
+
+ +
+ + +
+
); }; diff --git a/Frontend/app/(admin)/blogs/page.tsx b/Frontend/app/(admin)/blogs/page.tsx index 6550940..916e894 100644 --- a/Frontend/app/(admin)/blogs/page.tsx +++ b/Frontend/app/(admin)/blogs/page.tsx @@ -3,6 +3,7 @@ import BlogCard from "@/components/BlogCard"; import getPostMetadata from "@/utils/getPostMetaData"; import React from "react"; import Background from "@/components/Utilities/Background"; +import Footer from "@/components/Footer"; export default async function BlogsPage() { const postMetadata = await getPostMetadata(); @@ -14,7 +15,7 @@ export default async function BlogsPage() {
{/* Page sections */} @@ -23,7 +24,7 @@ export default async function BlogsPage() { subtitle={ <> {" "} -

+

Join us for the journey as we make great food. Learn and grow together

@@ -31,10 +32,11 @@ export default async function BlogsPage() { } />
-
+
{postPreviews}
+
); diff --git a/Frontend/app/(admin)/contact/page.tsx b/Frontend/app/(admin)/contact/page.tsx index 3e3aafd..a21f685 100644 --- a/Frontend/app/(admin)/contact/page.tsx +++ b/Frontend/app/(admin)/contact/page.tsx @@ -6,12 +6,12 @@ import React from "react"; const page = () => { return ( -
+
+
-
); diff --git a/Frontend/app/(admin)/pricing/page.tsx b/Frontend/app/(admin)/pricing/page.tsx index 74cf3e4..8305c07 100644 --- a/Frontend/app/(admin)/pricing/page.tsx +++ b/Frontend/app/(admin)/pricing/page.tsx @@ -11,18 +11,22 @@ import { createCheckoutSession, isAuthenticated } from "@/app/(auth)/actions"; import { toast } from "react-toastify"; import { useRouter } from "next/navigation"; import Background from "@/components/Utilities/Background"; +import Footer from "@/components/Footer"; export default function PricingPage() { const [isAnnual, setIsAnnual] = useState(false); const [products, setProducts] = useState([]); + const [isLoading, setIsLoading] = useState(true); const handleToggle = () => { setIsAnnual((prev) => !prev); }; useEffect(() => { + setIsLoading(true); (async () => { const resposeProducts: Product[] = await apiPrices(); setProducts(resposeProducts); + setIsLoading(false); })(); }, []); @@ -30,7 +34,7 @@ export default function PricingPage() {
{" "} -

+

Are you ready for fresh South West produce to be delivered to your door?

@@ -52,12 +56,21 @@ export default function PricingPage() {
- {products.map((x, i) => ( - - ))} + {isLoading ? ( + <> + + + + + ) : ( + products.map((x, i) => ( + + )) + )}
+