Merge version_1 into main
Merge version_1 into main
This commit was merged in pull request #1.
This commit is contained in:
@@ -17,6 +17,15 @@ export default function BlogPage() {
|
|||||||
// Preserved posts fetching logic
|
// Preserved posts fetching logic
|
||||||
const { posts, isLoading } = useBlogPosts();
|
const { posts, isLoading } = useBlogPosts();
|
||||||
|
|
||||||
|
const navItems = [
|
||||||
|
{ name: "Home", id: "/" },
|
||||||
|
{ name: "About", id: "/#about" },
|
||||||
|
{ name: "Shop", id: "/shop" },
|
||||||
|
{ name: "Blog", id: "/blog" },
|
||||||
|
{ name: "Testimonials", id: "/#testimonials" },
|
||||||
|
{ name: "Contact", id: "/#contact" },
|
||||||
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ThemeProvider
|
<ThemeProvider
|
||||||
defaultButtonVariant="expand-hover"
|
defaultButtonVariant="expand-hover"
|
||||||
@@ -31,17 +40,12 @@ export default function BlogPage() {
|
|||||||
headingFontWeight="light"
|
headingFontWeight="light"
|
||||||
>
|
>
|
||||||
<ReactLenis root>
|
<ReactLenis root>
|
||||||
{/* Navbar from NAVBAR_INFO */}
|
<div id="nav" data-section="nav">
|
||||||
<NavbarStyleApple
|
<NavbarStyleApple
|
||||||
brandName="Olla"
|
brandName="Olla"
|
||||||
navItems={[
|
navItems={navItems}
|
||||||
{ name: "Home", id: "/" },
|
|
||||||
{ name: "About", id: "about" },
|
|
||||||
{ name: "Shop", id: "shop" },
|
|
||||||
{ name: "Testimonials", id: "testimonials" },
|
|
||||||
{ name: "Contact", id: "contact" },
|
|
||||||
]}
|
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
{/* Preserved loading state and posts logic */}
|
{/* Preserved loading state and posts logic */}
|
||||||
{isLoading ? (
|
{isLoading ? (
|
||||||
@@ -90,7 +94,6 @@ export default function BlogPage() {
|
|||||||
]}
|
]}
|
||||||
logoText="Olla"
|
logoText="Olla"
|
||||||
copyrightText="© 2024 Olla Flowers Studio. All rights reserved."
|
copyrightText="© 2024 Olla Flowers Studio. All rights reserved."
|
||||||
useInvertedBackground={false}
|
|
||||||
ariaLabel="Site footer"
|
ariaLabel="Site footer"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -11,6 +11,15 @@ import ContactCTA from '@/components/sections/contact/ContactCTA';
|
|||||||
import FooterBase from '@/components/sections/footer/FooterBase';
|
import FooterBase from '@/components/sections/footer/FooterBase';
|
||||||
|
|
||||||
export default function SitePage() {
|
export default function SitePage() {
|
||||||
|
const navItems = [
|
||||||
|
{ name: "Home", id: "/" },
|
||||||
|
{ name: "About", id: "/#about" },
|
||||||
|
{ name: "Shop", id: "/shop" },
|
||||||
|
{ name: "Blog", id: "/blog" },
|
||||||
|
{ name: "Testimonials", id: "/#testimonials" },
|
||||||
|
{ name: "Contact", id: "/#contact" },
|
||||||
|
];
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<ThemeProvider
|
<ThemeProvider
|
||||||
defaultButtonVariant="expand-hover"
|
defaultButtonVariant="expand-hover"
|
||||||
@@ -28,13 +37,7 @@ export default function SitePage() {
|
|||||||
<div id="nav" data-section="nav">
|
<div id="nav" data-section="nav">
|
||||||
<NavbarStyleApple
|
<NavbarStyleApple
|
||||||
brandName="Olla"
|
brandName="Olla"
|
||||||
navItems={[
|
navItems={navItems}
|
||||||
{ name: "Home", id: "hero" },
|
|
||||||
{ name: "About", id: "about" },
|
|
||||||
{ name: "Shop", id: "shop" },
|
|
||||||
{ name: "Testimonials", id: "testimonials" },
|
|
||||||
{ name: "Contact", id: "contact" },
|
|
||||||
]}
|
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div id="hero" data-section="hero">
|
<div id="hero" data-section="hero">
|
||||||
@@ -43,8 +46,8 @@ export default function SitePage() {
|
|||||||
description="Crafting exquisite floral arrangements for every occasion. Discover the beauty of nature, artfully designed."
|
description="Crafting exquisite floral arrangements for every occasion. Discover the beauty of nature, artfully designed."
|
||||||
tag="Welcome to Olla"
|
tag="Welcome to Olla"
|
||||||
buttons={[
|
buttons={[
|
||||||
{ text: "Shop Now", href: "shop" },
|
{ text: "Shop Now", href: "/shop" },
|
||||||
{ text: "Learn More", href: "about" },
|
{ text: "Learn More", href: "/#about" },
|
||||||
]}
|
]}
|
||||||
imageSrc="http://img.b2bpic.net/free-photo/woman-holds-festive-flower-arrangement-with-bright-chrysanthemum-flowers_169016-51483.jpg"
|
imageSrc="http://img.b2bpic.net/free-photo/woman-holds-festive-flower-arrangement-with-bright-chrysanthemum-flowers_169016-51483.jpg"
|
||||||
imageAlt="Elegant floral arrangement for Olla Flowers Studio"
|
imageAlt="Elegant floral arrangement for Olla Flowers Studio"
|
||||||
|
|||||||
@@ -74,6 +74,15 @@ function ProductPageContent({ params }: ProductPageProps) {
|
|||||||
await checkout(getCheckoutItems(), { successUrl: currentUrl.toString() });
|
await checkout(getCheckoutItems(), { successUrl: currentUrl.toString() });
|
||||||
}, [cartItems, checkout, getCheckoutItems]);
|
}, [cartItems, checkout, getCheckoutItems]);
|
||||||
|
|
||||||
|
const navItems = [
|
||||||
|
{ name: "Home", id: "/" },
|
||||||
|
{ name: "About", id: "/#about" },
|
||||||
|
{ name: "Shop", id: "/shop" },
|
||||||
|
{ name: "Blog", id: "/blog" },
|
||||||
|
{ name: "Testimonials", id: "/#testimonials" },
|
||||||
|
{ name: "Contact", id: "/#contact" },
|
||||||
|
];
|
||||||
|
|
||||||
if (isLoading) {
|
if (isLoading) {
|
||||||
return (
|
return (
|
||||||
<ThemeProvider
|
<ThemeProvider
|
||||||
@@ -89,10 +98,10 @@ function ProductPageContent({ params }: ProductPageProps) {
|
|||||||
headingFontWeight="light"
|
headingFontWeight="light"
|
||||||
>
|
>
|
||||||
<ReactLenis root>
|
<ReactLenis root>
|
||||||
<div id="navbar" data-section="navbar">
|
<div id="nav" data-section="nav">
|
||||||
<NavbarStyleApple
|
<NavbarStyleApple
|
||||||
brandName="Olla"
|
brandName="Olla"
|
||||||
navItems={[{ name: "Home", id: "/" }, { name: "Shop", id: "/shop" }, { name: "Contact", id: "/contact" }]}
|
navItems={navItems}
|
||||||
button={{ text: "Cart", onClick: () => setCartOpen(true) }}
|
button={{ text: "Cart", onClick: () => setCartOpen(true) }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -108,7 +117,6 @@ function ProductPageContent({ params }: ProductPageProps) {
|
|||||||
]}
|
]}
|
||||||
logoText="Olla"
|
logoText="Olla"
|
||||||
copyrightText="© 2024 Olla Flowers Studio. All rights reserved."
|
copyrightText="© 2024 Olla Flowers Studio. All rights reserved."
|
||||||
useInvertedBackground={false}
|
|
||||||
ariaLabel="Site footer"
|
ariaLabel="Site footer"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -132,10 +140,10 @@ function ProductPageContent({ params }: ProductPageProps) {
|
|||||||
headingFontWeight="light"
|
headingFontWeight="light"
|
||||||
>
|
>
|
||||||
<ReactLenis root>
|
<ReactLenis root>
|
||||||
<div id="navbar" data-section="navbar">
|
<div id="nav" data-section="nav">
|
||||||
<NavbarStyleApple
|
<NavbarStyleApple
|
||||||
brandName="Olla"
|
brandName="Olla"
|
||||||
navItems={[{ name: "Home", id: "/" }, { name: "Shop", id: "/shop" }, { name: "Contact", id: "/contact" }]}
|
navItems={navItems}
|
||||||
button={{ text: "Cart", onClick: () => setCartOpen(true) }}
|
button={{ text: "Cart", onClick: () => setCartOpen(true) }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -159,7 +167,6 @@ function ProductPageContent({ params }: ProductPageProps) {
|
|||||||
]}
|
]}
|
||||||
logoText="Olla"
|
logoText="Olla"
|
||||||
copyrightText="© 2024 Olla Flowers Studio. All rights reserved."
|
copyrightText="© 2024 Olla Flowers Studio. All rights reserved."
|
||||||
useInvertedBackground={false}
|
|
||||||
ariaLabel="Site footer"
|
ariaLabel="Site footer"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -182,10 +189,10 @@ function ProductPageContent({ params }: ProductPageProps) {
|
|||||||
headingFontWeight="light"
|
headingFontWeight="light"
|
||||||
>
|
>
|
||||||
<ReactLenis root>
|
<ReactLenis root>
|
||||||
<div id="navbar" data-section="navbar">
|
<div id="nav" data-section="nav">
|
||||||
<NavbarStyleApple
|
<NavbarStyleApple
|
||||||
brandName="Olla"
|
brandName="Olla"
|
||||||
navItems={[{ name: "Home", id: "/" }, { name: "Shop", id: "/shop" }, { name: "Contact", id: "/contact" }]}
|
navItems={navItems}
|
||||||
button={{ text: "Cart", onClick: () => setCartOpen(true) }}
|
button={{ text: "Cart", onClick: () => setCartOpen(true) }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -234,7 +241,6 @@ function ProductPageContent({ params }: ProductPageProps) {
|
|||||||
]}
|
]}
|
||||||
logoText="Olla"
|
logoText="Olla"
|
||||||
copyrightText="© 2024 Olla Flowers Studio. All rights reserved."
|
copyrightText="© 2024 Olla Flowers Studio. All rights reserved."
|
||||||
useInvertedBackground={false}
|
|
||||||
ariaLabel="Site footer"
|
ariaLabel="Site footer"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -17,6 +17,15 @@ function ShopPageContent() {
|
|||||||
filters,
|
filters,
|
||||||
} = useProductCatalog({ basePath: "/shop" });
|
} = useProductCatalog({ basePath: "/shop" });
|
||||||
|
|
||||||
|
const navItems = [
|
||||||
|
{ name: "Home", id: "/" },
|
||||||
|
{ name: "About", id: "/#about" },
|
||||||
|
{ name: "Shop", id: "/shop" },
|
||||||
|
{ name: "Blog", id: "/blog" },
|
||||||
|
{ name: "Testimonials", id: "/#testimonials" },
|
||||||
|
{ name: "Contact", id: "/#contact" },
|
||||||
|
];
|
||||||
|
|
||||||
if (isLoading) {
|
if (isLoading) {
|
||||||
return (
|
return (
|
||||||
<ThemeProvider
|
<ThemeProvider
|
||||||
@@ -32,10 +41,10 @@ function ShopPageContent() {
|
|||||||
headingFontWeight="light"
|
headingFontWeight="light"
|
||||||
>
|
>
|
||||||
<ReactLenis root>
|
<ReactLenis root>
|
||||||
<div id="navbar" data-section="navbar">
|
<div id="nav" data-section="nav">
|
||||||
<NavbarStyleApple
|
<NavbarStyleApple
|
||||||
brandName="Olla"
|
brandName="Olla"
|
||||||
navItems={[{ name: "Home", id: "/" }, { name: "Shop", id: "/shop" }, { name: "Contact", id: "/contact" }]}
|
navItems={navItems}
|
||||||
button={{ text: "Cart", onClick: () => {} }}
|
button={{ text: "Cart", onClick: () => {} }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -51,7 +60,6 @@ function ShopPageContent() {
|
|||||||
]}
|
]}
|
||||||
logoText="Olla"
|
logoText="Olla"
|
||||||
copyrightText="© 2024 Olla Flowers Studio. All rights reserved."
|
copyrightText="© 2024 Olla Flowers Studio. All rights reserved."
|
||||||
useInvertedBackground={false}
|
|
||||||
ariaLabel="Site footer"
|
ariaLabel="Site footer"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -74,10 +82,10 @@ function ShopPageContent() {
|
|||||||
headingFontWeight="light"
|
headingFontWeight="light"
|
||||||
>
|
>
|
||||||
<ReactLenis root>
|
<ReactLenis root>
|
||||||
<div id="navbar" data-section="navbar">
|
<div id="nav" data-section="nav">
|
||||||
<NavbarStyleApple
|
<NavbarStyleApple
|
||||||
brandName="Olla"
|
brandName="Olla"
|
||||||
navItems={[{ name: "Home", id: "/" }, { name: "Shop", id: "/shop" }, { name: "Contact", id: "/contact" }]}
|
navItems={navItems}
|
||||||
button={{ text: "Cart", onClick: () => {} }}
|
button={{ text: "Cart", onClick: () => {} }}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
@@ -101,7 +109,6 @@ function ShopPageContent() {
|
|||||||
]}
|
]}
|
||||||
logoText="Olla"
|
logoText="Olla"
|
||||||
copyrightText="© 2024 Olla Flowers Studio. All rights reserved."
|
copyrightText="© 2024 Olla Flowers Studio. All rights reserved."
|
||||||
useInvertedBackground={false}
|
|
||||||
ariaLabel="Site footer"
|
ariaLabel="Site footer"
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user