From 40d1d5ed24a7be125ca82d93841c429f13e4430b Mon Sep 17 00:00:00 2001 From: sasha-astiadi Date: Fri, 5 Sep 2025 15:44:26 +0200 Subject: [PATCH] add --- src/components/Products.tsx | 128 +++++++++++++++++++----------------- 1 file changed, 66 insertions(+), 62 deletions(-) diff --git a/src/components/Products.tsx b/src/components/Products.tsx index 7216f0e..9aa47d0 100644 --- a/src/components/Products.tsx +++ b/src/components/Products.tsx @@ -2,45 +2,58 @@ 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 = [ +const products = [ { 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: , - }, - { + colSpan: "lg:col-span-3", + rounded: "rounded-[calc(var(--radius-lg)+1px)] max-lg:rounded-t-[calc(2rem+1px)] lg:rounded-tl-[calc(2rem+1px)]", + img: "https://tailwindcss.com/plus-assets/img/component-images/dark-bento-01-performance.png", + title: "3Nodes", + desc: "The backbone of storage and infrastructure, providing compute and data resources.", + color: "indigo-400", + bgRounded: "max-lg:rounded-t-4xl lg:rounded-tl-4xl" + }, + { 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: , - }, - { + colSpan: "lg:col-span-3", + rounded: "rounded-[calc(var(--radius-lg)+1px)] lg:rounded-tr-[calc(2rem+1px)]", + img: "https://tailwindcss.com/plus-assets/img/component-images/dark-bento-01-releases.png", + title: "`Mycelium`", + desc: "Curabitur auctor, ex quis auctor venenatis, eros arcu rhoncus massa, laoreet dapibus ex elit vitae odio.", + color: "indigo-400", + bgRounded: "lg:rounded-tr-4xl" + }, + { 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: , - }, -] - + colSpan: "lg:col-span-2", + rounded: "rounded-[calc(var(--radius-lg)+1px)] lg:rounded-bl-[calc(2rem+1px)]", + img: "https://tailwindcss.com/plus-assets/img/component-images/dark-bento-01-speed.png", + title: "AiBox", + desc: "Sed congue eros non finibus molestie. Vestibulum euismod augue.", + color: "indigo-400", + bgRounded: "lg:rounded-bl-4xl" + }, + { + id: 4, + colSpan: "lg:col-span-2", + rounded: "rounded-[calc(var(--radius-lg)+1px)]", + img: "https://tailwindcss.com/plus-assets/img/component-images/dark-bento-01-integrations.png", + title: "3Phone", + desc: "Maecenas at augue sed elit dictum vulputate, in nisi aliquam maximus arcu.", + color: "indigo-400", + bgRounded: "" + }, + { + id: 5, + colSpan: "lg:col-span-2", + rounded: "rounded-[calc(var(--radius-lg)+1px)] max-lg:rounded-b-[calc(2rem+1px)] lg:rounded-br-[calc(2rem+1px)]", + img: "https://tailwindcss.com/plus-assets/img/component-images/dark-bento-01-network.png", + title: "3Router", + desc: "Aenean vulputate justo commodo auctor vehicula in malesuada semper.", + color: "indigo-400", + bgRounded: "max-lg:rounded-b-4xl lg:rounded-br-4xl" + } +]; export function ProductsPreview() { @@ -69,34 +82,25 @@ export function ProductsPreview() { -
- {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)'; - }} - > +
+ {products.map(product => ( +
+
+
+ {`${product.title} +
+

{product.title}

+

+ {product.desc} +

-
- {post.icon} - {post.title} -
- < div className="max-w-2/3"> -

{post.description1}

-

{post.description2}

-
- -
+
+
+
))}