diff --git a/src/app/bot/[botId]/page.tsx b/src/app/bot/[botId]/page.tsx new file mode 100644 index 0000000..8ebcf27 --- /dev/null +++ b/src/app/bot/[botId]/page.tsx @@ -0,0 +1,230 @@ +"use client"; + +import { ThemeProvider } from "@/providers/themeProvider/ThemeProvider"; +import NavbarStyleFullscreen from "@/components/navbar/NavbarStyleFullscreen/NavbarStyleFullscreen"; +import FooterLogoEmphasis from "@/components/sections/footer/FooterLogoEmphasis"; +import { useParams } from "next/navigation"; +import { ExternalLink, MessageCircle, Star, Users } from "lucide-react"; + +export default function BotDetailPage() { + const params = useParams(); + const botId = params.botId as string; + + const navItems = [ + { name: "Home", id: "/" }, + { name: "Directory", id: "/directory" }, + { name: "Categories", id: "categories" }, + { name: "Submit Bot", id: "/submit" }, + { name: "Contact", id: "contact" }, + ]; + + const footerColumns = [ + { + items: [ + { label: "Home", href: "/" }, + { label: "Directory", href: "/directory" }, + { label: "Categories", href: "categories" }, + ], + }, + { + items: [ + { label: "Submit Bot", href: "/submit" }, + { label: "Contact", href: "contact" }, + { label: "FAQ", href: "#faq" }, + ], + }, + { + items: [ + { label: "Privacy Policy", href: "#privacy" }, + { label: "Terms of Service", href: "#terms" }, + { label: "Cookie Policy", href: "#cookies" }, + ], + }, + { + items: [ + { label: "Twitter", href: "https://twitter.com" }, + { label: "Discord", href: "https://discord.com" }, + { label: "GitHub", href: "https://github.com" }, + ], + }, + ]; + + // Mock bot data - in a real app, this would come from a database + const botData: Record = { + "ai-chat-master": { + name: "AI Chat Master", username: "@aichatmaster", category: "AI", rating: 4.8, + reviews: 1250, + users: "50K+", description: "Advanced AI-powered chatbot with natural language processing. Get instant answers to your questions, have meaningful conversations, and explore endless possibilities with cutting-edge AI technology.", features: [ + "Natural language processing", "Multi-language support", "Instant responses", "Learning capabilities", "Context awareness", "24/7 availability"], + imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnzLyhtB5RymsHsflern7ouDVJ/a-telegram-bot-interface-screenshot-show-1773243153207-c6149c84.png"}, + "music-playlist-manager": { + name: "Music Playlist Manager", username: "@musicplaylistmanager", category: "Music", rating: 4.6, + reviews: 980, + users: "35K+", description: "Control your Spotify and music streaming with ease. Create, manage, and share playlists directly from Telegram. Discover new music and enjoy seamless integration with your favorite streaming services.", features: [ + "Spotify integration", "Playlist management", "Music discovery", "Queue management", "Sharing capabilities", "Real-time sync"], + imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnzLyhtB5RymsHsflern7ouDVJ/a-music-telegram-bot-interface-showing-p-1773243148514-249cc2c5.png"}, + "file-download-pro": { + name: "File Download Pro", username: "@filedownloadpro", category: "Download", rating: 4.5, + reviews: 756, + users: "28K+", description: "Download and manage files from various sources effortlessly. Support for multiple formats, batch downloads, and cloud storage integration. Keep your files organized and accessible.", features: [ + "Multi-source downloads", "Batch processing", "Cloud storage support", "File organization", "Speed optimization", "Resume capability"], + imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnzLyhtB5RymsHsflern7ouDVJ/a-download-utility-telegram-bot-showing--1773243148459-d9376052.png"}, + }; + + const bot = botData[botId] || { + name: "Bot Name", username: "@botusername", category: "Utility", rating: 4.5, + reviews: 500, + users: "10K+", description: "This is a sample bot. Check the bot directory for more details.", features: ["Feature 1", "Feature 2", "Feature 3"], + imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/users/user_3AnzLyhtB5RymsHsflern7ouDVJ/an-education-telegram-bot-showing-course-1773243147669-88bfb7ee.png"}; + + const handleOpenInTelegram = () => { + // Open bot in Telegram - uses the Telegram deep link protocol + window.open(`https://t.me/${bot.username.replace("@", "")}`, "_blank"); + }; + + return ( + + + +
+
+ {/* Bot Header */} +
+ {/* Bot Image */} +
+ {bot.name} +
+ + {/* Bot Info */} +
+

{bot.name}

+

{bot.username}

+
+ + {bot.category} + +
+ + {/* Stats */} +
+
+
+ + {bot.rating} +
+

{bot.reviews} reviews

+
+
+
+ + {bot.users} +
+

Active users

+
+
+ +
+
+ + {/* Description */} +

{bot.description}

+ + {/* Open in Telegram Button */} + +
+
+ + {/* Features */} +
+

Features

+
+ {bot.features.map((feature: string, index: number) => ( +
+
+ + + +
+ {feature} +
+ ))} +
+
+ + {/* How to Use */} +
+

How to Use

+
    +
  1. + 1. Click "Open in Telegram" - This will take you directly to the bot's chat +
  2. +
  3. + 2. Start the Bot - Click the START button or type /start +
  4. +
  5. + 3. Follow Instructions - The bot will guide you through setup and usage +
  6. +
  7. + 4. Explore Features - Type /help to see all available commands +
  8. +
+
+
+
+ + +
+ ); +} \ No newline at end of file