diff --git a/src/app/(main)/page.tsx b/src/app/(main)/page.tsx index 31cc2d2..13f9b40 100644 --- a/src/app/(main)/page.tsx +++ b/src/app/(main)/page.tsx @@ -15,6 +15,7 @@ import { Dashboard } from '@/components/Dashboard' import { AppsPreview } from '@/components/Apps' import { FarmerPreview } from '@/components/Farmer' import { TfDashboard } from '@/components/TfDashboard' +import { ProductsPreview } from '@/components/Products' export default function Home() { @@ -26,6 +27,7 @@ export default function Home() { + ) diff --git a/src/components/Products.tsx b/src/components/Products.tsx new file mode 100644 index 0000000..7216f0e --- /dev/null +++ b/src/components/Products.tsx @@ -0,0 +1,105 @@ +"use client"; +import { Button } from "./Button"; +import Image from "next/image"; + +import { CpuChipIcon } from "@heroicons/react/24/solid"; +import { CircleStackIcon } from "@heroicons/react/24/solid"; +import { CurrencyDollarIcon } from "@heroicons/react/24/solid"; + +const posts = [ + { + id: 1, + title: 'Host A Node', + href: '#', + description1: + 'All you need to get started is a modern computer, electricity and network. Once booted with Zero OS, a computer becomes a ThreeFold Node.', + description2: '', + imageUrl: + './images/3nodes.png', + icon: , + }, + { + id: 2, + title: 'Offer Capacity', + href: '#', + description1: 'The capacity of the node gets registered on the ThreeFold Blockchain and is available for users on the TF Marketplace.', + description2: '', + imageUrl: + './images/capacity.png', + icon: , + }, + { + id: 3, + title: 'Earn Rewards', + href: '#', + description1: + 'Farmers earn rewards for their used resources, enabling a fair and transparent peer-to-peer economy.', + description2: '', + imageUrl: + './images/rewards.png', + icon: , + }, +] + + +export function ProductsPreview() { + + return ( +
+ {/* Gradient Blob Component */} +
+
+
+
+ {/* Left Column - Text (1/3 width) */} +
+
+

+ Join the Movement to Build a New Internet +

+

+ There are many ways to be part of our mission to create a more open, autonomous, and interconnected digital world. Farming is just one pillar of our ecosystem. Explore all the products that are driving this transformation. +

+
+
+ {/* Right Column - Stacked Cubes (2/3 width) */} +
+ +
+
+
+ {posts.map((post) => ( +
+
{ + e.currentTarget.style.filter = 'brightness(0.8) drop-shadow(0 0 20px rgba(156, 163, 175, 0.5))'; + }} + onMouseLeave={(e) => { + e.currentTarget.style.filter = 'brightness(1)'; + }} + > +
+
+ {post.icon} + {post.title} +
+ < div className="max-w-2/3"> +

{post.description1}

+

{post.description2}

+
+ + + ))} +
+
+
+ ); +}