import React, { useState } from 'react'; import { Copy, Check, ChevronDown, ChevronRight, ExternalLink, AlertCircle } from 'lucide-react'; const CodeBlock = ({ children, language = 'bash' }) => { const [copied, setCopied] = useState(false); const copyToClipboard = () => { navigator.clipboard.writeText(children); setCopied(true); setTimeout(() => setCopied(false), 2000); }; return (
{children}
Complete Integration Guide for shadcn/ui Projects
This guide provides comprehensive instructions for integrating the Pharos Chain NFT Platform component into your shadcn/ui project. The component features scroll-based media expansion, Web3 wallet connectivity, NFT minting functionality, and a gallery display system.
First, verify that your project has the correct shadcn/ui structure. Your project should have a /components/ui directory.
If you don't have shadcn/ui set up in your project, follow these commands to initialize it:
The Pharos NFT Platform component requires framer-motion for animations. Install it using npm or yarn:
Create the PharosNFTPlatform component in your /components/ui directory:
Connect your wallet to access the NFT platform
{isConnected ? (Connected
{address}
Create your unique digital asset
Explore the Pharos Chain collection
Pharos Chain Collection
Join thousands of creators and collectors on Pharos Chain
/components/ui directory for proper shadcn integration.
Import and use the PharosNFTPlatform component in your application:
Provides scroll-based animations and media expansion effects using framer-motion. This component creates immersive scroll-triggered animations that scale and fade content based on scroll position.
Creates interactive cards with mouse-following glare effects. The component tracks mouse position and creates a radial gradient that follows the cursor for enhanced visual appeal.
Handles Web3 wallet connectivity and user authentication. This component provides a clean interface for users to connect their cryptocurrency wallets to the platform.
Provides NFT minting functionality with quantity selection and minting status feedback. Users can specify how many NFTs to mint and track the minting process.
Displays a grid of NFTs from the Pharos Chain collection. The gallery showcases available NFTs with hover effects and collection information.
Make sure you've installed framer-motion as shown in Step 3.
Ensure your tsconfig.json includes the proper path mapping for @/ imports:
Verify that Tailwind CSS is properly configured and that your CSS file includes the Tailwind directives.
If you encounter any issues during integration, check our documentation or reach out to our support team.