Merge version_1 into main
Merge version_1 into main
This commit was merged in pull request #5.
This commit is contained in:
@@ -1,10 +1,9 @@
|
||||
"use client";
|
||||
|
||||
import ReactLenis from "lenis/react";
|
||||
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
||||
import { useBlogPosts } from "@/hooks/useBlogPosts";
|
||||
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
|
||||
import BlogCardTwo from '@/components/sections/blog/BlogCardTwo';
|
||||
import FeatureCardTwentyFour from '@/components/sections/feature/FeatureCardTwentyFour';
|
||||
|
||||
export default function BlogPage() {
|
||||
const { posts, isLoading } = useBlogPosts();
|
||||
@@ -22,7 +21,6 @@ export default function BlogPage() {
|
||||
secondaryButtonStyle="layered"
|
||||
headingFontWeight="light"
|
||||
>
|
||||
<ReactLenis root>
|
||||
<div id="nav" data-section="nav">
|
||||
<NavbarStyleCentered
|
||||
navItems={[
|
||||
@@ -41,19 +39,24 @@ export default function BlogPage() {
|
||||
</div>
|
||||
) : (
|
||||
<div id="blog" data-section="blog">
|
||||
<BlogCardTwo
|
||||
posts={posts}
|
||||
<FeatureCardTwentyFour
|
||||
features={posts.map(post => ({
|
||||
id: post.id,
|
||||
title: post.title,
|
||||
author: post.author || 'Dring Together',
|
||||
description: post.excerpt,
|
||||
tags: post.tags || [],
|
||||
imageSrc: post.image,
|
||||
imageAlt: post.title,
|
||||
}))}
|
||||
title="Latest Articles"
|
||||
description="Insights and updates from our team"
|
||||
animationType="slide-up"
|
||||
textboxLayout="default"
|
||||
useInvertedBackground={false}
|
||||
carouselMode="buttons"
|
||||
/>
|
||||
</div>
|
||||
)}
|
||||
|
||||
</ReactLenis>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -68,9 +68,9 @@ export default function SitePage() {
|
||||
buttonAnimation="slide-up"
|
||||
dashboard={{
|
||||
title: "Featured Collection", stats: [
|
||||
{ title: "Sustainable Materials", values: [95, 98, 100], valueSuffix: "%", description: "Sustainably sourced materials." },
|
||||
{ title: "Customer Satisfaction", values: [94, 96, 98], valueSuffix: "%", description: "Based on 500+ reviews." },
|
||||
{ title: "Global Shipping", values: [180, 190, 200], valueSuffix: "+ Countries", description: "Available worldwide." },
|
||||
{ title: "Sustainable Materials", values: [100], valueSuffix: "%", description: "Sustainably sourced materials." },
|
||||
{ title: "Customer Satisfaction", values: [98], valueSuffix: "%", description: "Based on 500+ reviews." },
|
||||
{ title: "Global Shipping", values: [200], valueSuffix: "+ Countries", description: "Available worldwide." },
|
||||
],
|
||||
logoIcon: Coffee,
|
||||
sidebarItems: [
|
||||
@@ -99,8 +99,6 @@ export default function SitePage() {
|
||||
descriptionClassName="text-lg text-gray-600 max-w-2xl mb-8"
|
||||
tagClassName="inline-flex items-center px-3 py-1 rounded-full text-sm font-medium bg-purple-100 text-purple-800 mb-6"
|
||||
buttonContainerClassName="flex flex-col sm:flex-row gap-4"
|
||||
buttonClassName="px-6 py-3 rounded-lg font-medium transition-all duration-300 hover:shadow-lg"
|
||||
buttonTextClassName="flex items-center gap-2"
|
||||
dashboardClassName="mt-12"
|
||||
/>
|
||||
</div>
|
||||
@@ -257,7 +255,6 @@ export default function SitePage() {
|
||||
titleClassName="text-3xl font-bold text-gray-900 mb-4"
|
||||
descriptionClassName="text-lg text-gray-600 mb-8"
|
||||
buttonClassName="bg-purple-600 hover:bg-purple-700 text-white font-semibold py-3 px-6 rounded-lg transition duration-300 ease-in-out transform hover:-translate-y-0.5"
|
||||
buttonTextClassName="flex items-center justify-center"
|
||||
mediaWrapperClassName="relative rounded-2xl overflow-hidden shadow-xl"
|
||||
mediaClassName="w-full h-full object-cover"
|
||||
/>
|
||||
|
||||
@@ -2,7 +2,6 @@
|
||||
|
||||
import { Suspense, use, useCallback } from "react";
|
||||
import { useRouter } from "next/navigation";
|
||||
import ReactLenis from "lenis/react";
|
||||
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
||||
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
|
||||
import ProductDetailCard from "@/components/ecommerce/productDetail/ProductDetailCard";
|
||||
@@ -101,14 +100,12 @@ function ProductPageContent({ params }: ProductPageProps) {
|
||||
secondaryButtonStyle="layered"
|
||||
headingFontWeight="light"
|
||||
>
|
||||
<ReactLenis root>
|
||||
<div id="navbar" data-section="navbar">
|
||||
<div id="nav" data-section="nav">
|
||||
{navbar}
|
||||
</div>
|
||||
<main className="min-h-screen flex items-center justify-center pt-20">
|
||||
<p className="text-foreground">Loading product...</p>
|
||||
</main>
|
||||
</ReactLenis>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
@@ -127,8 +124,7 @@ function ProductPageContent({ params }: ProductPageProps) {
|
||||
secondaryButtonStyle="layered"
|
||||
headingFontWeight="light"
|
||||
>
|
||||
<ReactLenis root>
|
||||
<div id="navbar" data-section="navbar">
|
||||
<div id="nav" data-section="nav">
|
||||
{navbar}
|
||||
</div>
|
||||
<main className="min-h-screen flex items-center justify-center pt-20">
|
||||
@@ -142,7 +138,6 @@ function ProductPageContent({ params }: ProductPageProps) {
|
||||
</button>
|
||||
</div>
|
||||
</main>
|
||||
</ReactLenis>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
@@ -160,8 +155,7 @@ function ProductPageContent({ params }: ProductPageProps) {
|
||||
secondaryButtonStyle="layered"
|
||||
headingFontWeight="light"
|
||||
>
|
||||
<ReactLenis root>
|
||||
<div id="navbar" data-section="navbar">
|
||||
<div id="nav" data-section="nav">
|
||||
{navbar}
|
||||
</div>
|
||||
<div id="product-detail-card" data-section="product-detail-card">
|
||||
@@ -200,7 +194,6 @@ function ProductPageContent({ params }: ProductPageProps) {
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
</ReactLenis>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
|
||||
@@ -1,7 +1,6 @@
|
||||
"use client";
|
||||
|
||||
import { Suspense, useCallback } from "react";
|
||||
import ReactLenis from "lenis/react";
|
||||
import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider";
|
||||
import NavbarStyleCentered from '@/components/navbar/NavbarStyleCentered/NavbarStyleCentered';
|
||||
import ProductCatalog from "@/components/ecommerce/productCatalog/ProductCatalog";
|
||||
@@ -68,14 +67,12 @@ function ShopPageContent() {
|
||||
secondaryButtonStyle="layered"
|
||||
headingFontWeight="light"
|
||||
>
|
||||
<ReactLenis root>
|
||||
<div id="navbar" data-section="navbar">
|
||||
<div id="nav" data-section="nav">
|
||||
{navbar}
|
||||
</div>
|
||||
<main className="min-h-screen flex items-center justify-center pt-20">
|
||||
<p className="text-foreground">Loading products...</p>
|
||||
</main>
|
||||
</ReactLenis>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
@@ -93,8 +90,7 @@ function ShopPageContent() {
|
||||
secondaryButtonStyle="layered"
|
||||
headingFontWeight="light"
|
||||
>
|
||||
<ReactLenis root>
|
||||
<div id="navbar" data-section="navbar">
|
||||
<div id="nav" data-section="nav">
|
||||
{navbar}
|
||||
</div>
|
||||
<div id="product-catalog" data-section="product-catalog">
|
||||
@@ -123,7 +119,6 @@ function ShopPageContent() {
|
||||
]}
|
||||
/>
|
||||
</div>
|
||||
</ReactLenis>
|
||||
</ThemeProvider>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user