Compare commits
4 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c219f55f1d | |||
| 5ca2ee122e | |||
| 54bb7c56d1 | |||
| 8c3fefe3f1 |
@@ -36,8 +36,10 @@ export default function LandingPage() {
|
||||
{ name: "Courses", id: "courses" },
|
||||
{ name: "About", id: "about" },
|
||||
{ name: "Team", id: "team" },
|
||||
{ name: "Contact", id: "contact" }
|
||||
]}
|
||||
{ name: "Contact", id: "contact" },
|
||||
|
||||
{ name: "Blog", id: "/blog" },
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ import { Plus } from "lucide-react";
|
||||
import { NavbarProps } from "@/types/navigation";
|
||||
import { useScrollState } from "./useScrollState";
|
||||
import { cls } from "@/lib/utils";
|
||||
import Link from "next/link";
|
||||
|
||||
const SCROLL_THRESHOLD = 50;
|
||||
|
||||
@@ -74,6 +75,10 @@ const NavbarStyleApple = ({
|
||||
aria-hidden="true"
|
||||
/>
|
||||
</button>
|
||||
|
||||
<Link href="/menu" className="hidden md:flex items-center gap-6">
|
||||
<ButtonTextUnderline text="Menu" href="/menu" className="!text-base" />
|
||||
</Link>
|
||||
</div>
|
||||
|
||||
<MobileMenu
|
||||
|
||||
@@ -246,4 +246,42 @@ const BlogCardOne = ({
|
||||
|
||||
BlogCardOne.displayName = "BlogCardOne";
|
||||
|
||||
export default BlogCardOne;
|
||||
export default function Page() {
|
||||
return (
|
||||
<div>
|
||||
<BlogCardOne
|
||||
title="Blog Posts"
|
||||
description="Explore our latest blog posts."
|
||||
tag="Blog"
|
||||
tagIcon="Tag"
|
||||
buttons={[
|
||||
{ label: "Read More", href: "/blog" },
|
||||
]}
|
||||
textboxLayout="vertical"
|
||||
useInvertedBackground="inverted"
|
||||
ariaLabel="Blog section"
|
||||
className="w-content-width mx-auto"
|
||||
containerClassName="w-content-width mx-auto"
|
||||
cardClassName="w-full"
|
||||
imageWrapperClassName="w-full"
|
||||
imageClassName="w-full"
|
||||
categoryClassName="text-sm"
|
||||
cardTitleClassName="text-2xl font-medium"
|
||||
excerptClassName="text-base"
|
||||
authorContainerClassName="flex items-center gap-3"
|
||||
authorAvatarClassName="h-9 w-auto aspect-square rounded-theme object-cover"
|
||||
authorNameClassName="text-sm font-medium"
|
||||
dateClassName="text-xs"
|
||||
textBoxTitleClassName="text-2xl font-medium"
|
||||
textBoxTitleImageWrapperClassName="w-full"
|
||||
textBoxTitleImageClassName="w-full"
|
||||
textBoxDescriptionClassName="text-base"
|
||||
textBoxTagClassName="text-sm"
|
||||
textBoxButtonContainerClassName="flex items-center gap-3"
|
||||
textBoxButtonClassName="text-sm font-medium"
|
||||
textBoxButtonTextClassName="text-sm font-medium"
|
||||
/>
|
||||
{/* FAQ section */}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -243,4 +243,32 @@ const BlogCardTwo = ({
|
||||
|
||||
BlogCardTwo.displayName = "BlogCardTwo";
|
||||
|
||||
export default BlogCardTwo;
|
||||
export default function Page() {
|
||||
const { posts: fetchedPosts, isLoading } = useBlogPosts();
|
||||
const blogs = fetchedPosts;
|
||||
|
||||
return (
|
||||
<div>
|
||||
<BlogCardTwo
|
||||
blogs={blogs}
|
||||
title="Blog Posts"
|
||||
description="Explore our latest blog posts."
|
||||
textboxLayout="vertical"
|
||||
useInvertedBackground="light"
|
||||
/>
|
||||
{/* New section 'blog-card-two' */}
|
||||
<BlogCardTwo
|
||||
blogs={blogs}
|
||||
title="More Blog Posts"
|
||||
description="Discover more blog posts here."
|
||||
textboxLayout="vertical"
|
||||
useInvertedBackground="light"
|
||||
/>
|
||||
{/* FAQ section */}
|
||||
<div>
|
||||
<h2>FAQ</h2>
|
||||
<p>Answers to frequently asked questions.</p>
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user