This commit is contained in:
James Wyndham 2024-02-26 14:22:43 +08:00
parent 14579acd90
commit 4b2761b0d6
5 changed files with 11 additions and 37 deletions

View File

@ -31,7 +31,7 @@ export default async function BlogsPage() {
</>
}
/>
<div className="max-w-6xl mx-auto mb-24 h-full w-full py-12 px-8">
<div className="max-w-6xl mx-auto mb-auto pb-24 h-full w-full py-12 px-8">
<div className="w-full flex items-start justify-center flex-row flex-wrap gap-x-8 gap-y-8 md:gap-8 text-base-content ">
{postPreviews}
</div>

View File

@ -6,6 +6,7 @@ import Newsletter from "@/sections/Newsletter/Newsletter";
import Background from "@/components/Utilities/Background";
import Footer from "@/components/Footer";
import Payment from "@/sections/Payment";
import Spacer from "@/components/Utilities/Spacer";
export default function PricingPage() {
return (
@ -28,6 +29,7 @@ export default function PricingPage() {
}
/>
<Payment type="one_time" />
<Spacer className="mt-auto" />
<Newsletter />
<Footer />
</Background>

View File

@ -9,6 +9,7 @@ import { cookies } from "next/headers";
import { isAuthenticated } from "@/lib/auth";
import { GTagProvider, PHProvider, ThemeProvider } from "./providers";
import PrelineScript from "@/components/Utilities/PrelineScript";
import pb from "@/lib/pocketbase";
const raleway = Raleway({
variable: "--heading-font",

View File

@ -1,18 +1,11 @@
"use client";
import HeroHome from "@/sections/HeroHome";
import FeaturesBlocks from "@/sections/FeaturesBlocks";
import FeaturesZigZag from "@/sections/FeaturesZigzag";
import Newsletter from "@/sections/Newsletter/Newsletter";
import Aos from "aos";
import "aos/dist/aos.css";
import { useEffect } from "react";
import React from "react";
import {
CenterAllignedWithVideoHero,
WaitingListWithImageHero,
} from "@/sections/Hero";
import { WaitingListWithImageHero } from "@/sections/Hero";
import PageWrapper from "@/components/Utilities/PageWrapper";
import Footer from "@/components/Footer";
import pb from "@/lib/pocketbase";
export default function Home() {
useEffect(() => {
@ -26,27 +19,9 @@ export default function Home() {
return (
<>
{/* Page sections */}
{/* <HeroHome /> */}
{/* <Spacer className="pt-32" /> */}
{/* <CenterAllignedWithVideoHero /> */}
{/* <SquaredBackgroundHero />
<FeaturesBlocks />
<FeaturesZigZag />
<FrequentlyAsked />
<Testimonial />
<Newsletter /> */}
{/* <LandingPage /> */}
<PageWrapper>
{/* ========== END HEADER ========== */}
{/* ========== MAIN CONTENT ========== */}
{/* <WaitingListWithImageHero /> */}
<WaitingListWithImageHero />
{/* ========== END MAIN CONTENT ========== */}
{/* ========== FOOTER ========== */}
{/* ========== END FOOTER ========== */}
</PageWrapper>
{/* <LandingPageWaitingList /> */}
</>
);
}

View File

@ -1,7 +1,3 @@
import { PostMetadata } from "@/types";
import fs from "fs";
import matter from "gray-matter";
import path from 'path'
import pb from '@/lib/pocketbase';
const getPostMetadata = async () => {
@ -22,11 +18,11 @@ const getPostMetadata = async () => {
// image: matterResult.data.image,
// };
// });
return (await (pb.collection("blog").getList(1, 50))).items;
try {
return (await (pb.collection("blog").getList(1, 50))).items
} catch (error) {
return []
}
};
export default getPostMetadata;