@@ -6,6 +6,7 @@ import { motion, useScroll, useTransform } from "framer-motion"
66import { ExternalLink } from "lucide-react"
77import { useRef } from "react"
88import Image from "next/image"
9+ import Link from "next/link"
910
1011const swarmsStack = [
1112 {
@@ -95,7 +96,7 @@ async fn main() -> Result<()> {
9596 subtitle : "On-Chain Payment Settlement for AI Agents" ,
9697 description :
9798 "A Solana-based payment settlement system that automatically parses usage, executes split payments, and encrypts agent responses until payment is confirmed on-chain." ,
98- link : "https://docs.swarms.ai/docs/ atp/overview " ,
99+ link : "/ atp" ,
99100 docsLink : "https://docs.swarms.ai/docs/atp/overview" ,
100101 code : `from fastapi import FastAPI
101102from atp.middleware import ATPSettlementMiddleware
@@ -306,10 +307,17 @@ function ProductSection({ product, index, isEven }: { product: typeof swarmsStac
306307 className = "bg-gradient-to-r from-red-900 via-red-800 to-red-900 text-white hover:from-red-800 hover:via-red-700 hover:to-red-800 font-bold w-full sm:w-auto transition-all duration-300 hover:scale-105 hover:shadow-lg hover:shadow-red-900/50 group border-0 text-xs sm:text-sm md:text-base px-3 sm:px-4 md:px-6 py-4 sm:py-5 md:py-6 flex-shrink-0"
307308 asChild
308309 >
309- < a href = { product . link } target = "_blank" rel = "noopener noreferrer" className = "flex items-center justify-center" >
310- < span > Get Started</ span >
311- < ExternalLink className = "h-3 w-3 sm:h-4 sm:w-4 ml-2 transition-transform duration-300 group-hover:translate-x-1 group-hover:-translate-y-1 flex-shrink-0" />
312- </ a >
310+ { product . link . startsWith ( "/" ) ? (
311+ < Link href = { product . link } className = "flex items-center justify-center" >
312+ < span > Get Started</ span >
313+ < ExternalLink className = "h-3 w-3 sm:h-4 sm:w-4 ml-2 transition-transform duration-300 group-hover:translate-x-1 group-hover:-translate-y-1 flex-shrink-0" />
314+ </ Link >
315+ ) : (
316+ < a href = { product . link } target = "_blank" rel = "noopener noreferrer" className = "flex items-center justify-center" >
317+ < span > Get Started</ span >
318+ < ExternalLink className = "h-3 w-3 sm:h-4 sm:w-4 ml-2 transition-transform duration-300 group-hover:translate-x-1 group-hover:-translate-y-1 flex-shrink-0" />
319+ </ a >
320+ ) }
313321 </ Button >
314322 < Button
315323 variant = "outline"
0 commit comments