97 lines
4.5 KiB
TypeScript
97 lines
4.5 KiB
TypeScript
"use client";
|
|
|
|
import ReactLenis from "lenis/react";
|
|
import BlogCardTwo from '@/components/sections/blog/BlogCardTwo';
|
|
import FooterMedia from '@/components/sections/footer/FooterMedia';
|
|
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
|
import NavbarStyleApple from '@/components/navbar/NavbarStyleApple/NavbarStyleApple';
|
|
import { useBlogPosts } from "@/hooks/useBlogPosts";
|
|
|
|
export default function BlogPage() {
|
|
const { posts, isLoading } = useBlogPosts();
|
|
|
|
return (
|
|
<ThemeProvider
|
|
defaultButtonVariant="shift-hover"
|
|
defaultTextAnimation="reveal-blur"
|
|
borderRadius="soft"
|
|
contentWidth="medium"
|
|
sizing="mediumLarge"
|
|
background="circleGradient"
|
|
cardStyle="layered-gradient"
|
|
primaryButtonStyle="radial-glow"
|
|
secondaryButtonStyle="glass"
|
|
headingFontWeight="normal"
|
|
>
|
|
<ReactLenis root>
|
|
<div id="nav" data-section="nav">
|
|
<NavbarStyleApple
|
|
brandName="Crimson Seoul"
|
|
navItems={[
|
|
{ name: "Home", id: "/" },
|
|
{ name: "About", id: "about" },
|
|
{ name: "Menu", id: "menu" },
|
|
{ name: "Experience", id: "experience" },
|
|
{ name: "Testimonials", id: "testimonials" },
|
|
{ name: "Reserve", id: "contact" }
|
|
]}
|
|
/>
|
|
</div>
|
|
|
|
{isLoading ? (
|
|
<div className="w-content-width mx-auto py-20 text-center">
|
|
<p className="text-foreground">Loading posts...</p>
|
|
</div>
|
|
) : (
|
|
<div id="blog" data-section="blog">
|
|
<BlogCardTwo
|
|
blogs={posts}
|
|
title="Culinary Stories"
|
|
description="Discover the art of Korean fine dining through our chef's insights and seasonal inspirations"
|
|
textboxLayout="default"
|
|
useInvertedBackground="noInvert"
|
|
carouselMode="buttons"
|
|
animationType="slide-up"
|
|
tag="From Our Kitchen"
|
|
/>
|
|
</div>
|
|
)}
|
|
|
|
<div id="footer" data-section="footer">
|
|
<FooterMedia
|
|
imageSrc="https://img.b2bpic.net/free-photo/high-angle-dining-table-with-cutlery_23-2150312257.jpg"
|
|
imageAlt="Crimson Seoul luxury dining atmosphere"
|
|
columns={[
|
|
{
|
|
title: "Dining", items: [
|
|
{ label: "Menu", href: "#menu" },
|
|
{ label: "Reservations", href: "#contact" },
|
|
{ label: "Private Events", href: "#" },
|
|
{ label: "Wine Selection", href: "#" }
|
|
]
|
|
},
|
|
{
|
|
title: "About", items: [
|
|
{ label: "Our Story", href: "#about" },
|
|
{ label: "The Chef", href: "#" },
|
|
{ label: "Sourcing", href: "#" },
|
|
{ label: "Sustainability", href: "#" }
|
|
]
|
|
},
|
|
{
|
|
title: "Contact", items: [
|
|
{ label: "+82 (0)2 1234 5678", href: "tel:+82212345678" },
|
|
{ label: "Gangnam District, Seoul", href: "#" },
|
|
{ label: "hello@crimsoneoul.com", href: "mailto:hello@crimsonseoul.com" },
|
|
{ label: "Open by Reservation", href: "#" }
|
|
]
|
|
}
|
|
]}
|
|
logoText="Crimson Seoul"
|
|
copyrightText="© 2024 Crimson Seoul. All rights reserved."
|
|
/>
|
|
</div>
|
|
</ReactLenis>
|
|
</ThemeProvider>
|
|
);
|
|
} |