diff --git a/src/pages/Index.tsx b/src/pages/Index.tsx index 92425e6..4f09000 100644 --- a/src/pages/Index.tsx +++ b/src/pages/Index.tsx @@ -1,21 +1,220 @@ import { useSeoMeta } from '@unhead/react'; +import { useState } from 'react'; +import { Button } from '@/components/ui/button'; +import { Card, CardContent } from '@/components/ui/card'; +import { CheckCircle2, Copy, Server, Zap, Shield, Globe } from 'lucide-react'; +import { useToast } from '@/hooks/useToast'; const Index = () => { + const [copied, setCopied] = useState(false); + const { toast } = useToast(); + const relayUrl = 'wss://relay.layer.systems'; + useSeoMeta({ - title: 'Welcome to Your Blank App', - description: 'A modern Nostr client application built with React, TailwindCSS, and Nostrify.', + title: 'LAYER.systems - Public Nostr Relay', + description: 'A fast, reliable, and open Nostr relay serving the decentralized social network.', }); + const copyToClipboard = async () => { + try { + await navigator.clipboard.writeText(relayUrl); + setCopied(true); + toast({ + title: 'Copied!', + description: 'Relay URL copied to clipboard', + }); + setTimeout(() => setCopied(false), 2000); + } catch { + toast({ + title: 'Failed to copy', + description: 'Please copy the URL manually', + variant: 'destructive', + }); + } + }; + + const features = [ + { + icon: Zap, + title: 'Lightning Fast', + description: 'Optimized for speed with low-latency connections', + }, + { + icon: Shield, + title: 'Reliable & Secure', + description: 'Always online with enterprise-grade security', + }, + { + icon: Globe, + title: 'Global Network', + description: 'Part of the decentralized Nostr ecosystem', + }, + { + icon: Server, + title: 'Open Access', + description: 'Free to use for all Nostr clients', + }, + ]; + return ( -
- Start building your amazing project here! -
++ Your gateway to the decentralized social network +
++ A fast, reliable, and open Nostr relay connecting you to the future of social media +
+Relay URL
+
+ {relayUrl}
+
+ + Add this URL to your Nostr client to connect to LAYER.systems +
+{feature.description}
++ Pick a Nostr client like Damus, Amethyst, Snort, or any other compatible application +
+
+ In your client settings, add {relayUrl} to your relay list
+
+ You're all set! Start posting, following, and connecting with the Nostr network +
+