page.tsx 7.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171
  1. // src/app/dashboard/showcase/page.tsx
  2. 'use client'
  3. import {
  4. Sparkles,
  5. ShoppingBag,
  6. Globe,
  7. Share2,
  8. ArrowRight
  9. } from 'lucide-react'
  10. import { useTheme } from '@/contexts/themecontext'
  11. const integrations = [
  12. {
  13. id: 1,
  14. name: "Shopify",
  15. description: "Connect your Shopify store to automate product promotion and track sales from social posts",
  16. icon: "https://img.icons8.com/color/512/shopify.png", // Replace with actual Shopify icon
  17. features: [
  18. "Automatic product sync",
  19. "Sales tracking",
  20. "Inventory management",
  21. "Direct checkout"
  22. ],
  23. status: "Popular",
  24. category: "E-commerce"
  25. },
  26. {
  27. id: 2,
  28. name: "WooCommerce",
  29. description: "Integrate with WordPress-based stores to streamline your social media marketing",
  30. icon: "https://uxwing.com/wp-content/themes/uxwing/download/brands-and-social-media/woocommerce-icon.png", // Replace with actual WooCommerce icon
  31. features: [
  32. "WordPress integration",
  33. "Product catalog sync",
  34. "Order tracking",
  35. "Custom fields support"
  36. ],
  37. status: "New",
  38. category: "E-commerce"
  39. },
  40. {
  41. id: 3,
  42. name: "Meta Business",
  43. description: "Connect with Facebook and Instagram shops for seamless social selling",
  44. icon: "https://cdn-icons-png.flaticon.com/512/6033/6033716.png", // Replace with actual Meta icon
  45. features: [
  46. "Facebook Shop integration",
  47. "Instagram Shopping",
  48. "Automated tagging",
  49. "Cross-platform insights"
  50. ],
  51. status: "Popular",
  52. category: "Social Commerce"
  53. },
  54. {
  55. id: 4,
  56. name: "Square",
  57. description: "Connect your Square POS system to track in-store and online sales",
  58. icon: "https://icons.veryicon.com/png/o/object/material-design-icons-1/square-inc.png", // Replace with actual Square icon
  59. features: [
  60. "POS integration",
  61. "Payment processing",
  62. "Unified inventory",
  63. "Sales analytics"
  64. ],
  65. status: "New",
  66. category: "Payments"
  67. }
  68. ]
  69. export default function ShowcasePage() {
  70. const { theme } = useTheme()
  71. return (
  72. <div className="p-6">
  73. {/* Header */}
  74. <div className="mb-8">
  75. <h1 className={`text-4xl font-bold ${theme === 'dark' ? 'text-white' : 'text-gray-900'} mb-2 flex items-center`}>
  76. <Sparkles className="w-8 h-8 mr-3 text-yellow-500" />
  77. Integrations
  78. </h1>
  79. <p className={`${theme === 'dark' ? 'text-gray-400' : 'text-gray-600'} text-lg`}>Connect your store and expand your reach</p>
  80. </div>
  81. {/* Quick Stats */}
  82. <div className="grid grid-cols-1 md:grid-cols-3 gap-6 mb-8">
  83. <div className={`${theme === 'dark' ? 'bg-gray-800' : 'bg-white'} rounded-lg p-6 shadow-lg`}>
  84. <ShoppingBag className="w-8 h-8 text-blue-500 mb-4" />
  85. <h3 className={`${theme === 'dark' ? 'text-white' : 'text-gray-900'} text-lg font-semibold mb-1`}>E-commerce</h3>
  86. <p className={`${theme === 'dark' ? 'text-gray-400' : 'text-gray-600'}`}>Connect your online store</p>
  87. </div>
  88. <div className={`${theme === 'dark' ? 'bg-gray-800' : 'bg-white'} rounded-lg p-6 shadow-lg`}>
  89. <Globe className="w-8 h-8 text-purple-500 mb-4" />
  90. <h3 className={`${theme === 'dark' ? 'text-white' : 'text-gray-900'} text-lg font-semibold mb-1`}>Multi-platform</h3>
  91. <p className={`${theme === 'dark' ? 'text-gray-400' : 'text-gray-600'}`}>Sell across channels</p>
  92. </div>
  93. <div className={`${theme === 'dark' ? 'bg-gray-800' : 'bg-white'} rounded-lg p-6 shadow-lg`}>
  94. <Share2 className="w-8 h-8 text-green-500 mb-4" />
  95. <h3 className={`${theme === 'dark' ? 'text-white' : 'text-gray-900'} text-lg font-semibold mb-1`}>Analytics</h3>
  96. <p className={`${theme === 'dark' ? 'text-gray-400' : 'text-gray-600'}`}>Track performance</p>
  97. </div>
  98. </div>
  99. {/* Integrations Grid */}
  100. <div className="grid grid-cols-1 md:grid-cols-2 gap-6">
  101. {integrations.map((integration) => (
  102. <div key={integration.id} className={`${theme === 'dark' ? 'bg-gray-800' : 'bg-white'} rounded-lg p-6 hover:ring-2 hover:ring-blue-500/50 transition-all shadow-lg`}>
  103. {/* Header */}
  104. <div className="flex items-start justify-between mb-4">
  105. <div className="flex items-center">
  106. <div className={`w-12 h-12 ${theme === 'dark' ? 'bg-gray-700' : 'bg-gray-100'} rounded-lg mr-4 overflow-hidden`}>
  107. <img
  108. src={integration.icon}
  109. alt={integration.name}
  110. className="w-full h-full object-cover"
  111. />
  112. </div>
  113. <div>
  114. <div className="flex items-center">
  115. <h3 className={`text-lg font-semibold ${theme === 'dark' ? 'text-white' : 'text-gray-900'}`}>{integration.name}</h3>
  116. {integration.status && (
  117. <span className={`ml-2 px-2 py-0.5 rounded-full text-xs ${
  118. integration.status === 'Popular'
  119. ? 'bg-green-500/10 text-green-500'
  120. : 'bg-blue-500/10 text-blue-400'
  121. }`}>
  122. {integration.status}
  123. </span>
  124. )}
  125. </div>
  126. <span className={`text-sm ${theme === 'dark' ? 'text-gray-400' : 'text-gray-600'}`}>{integration.category}</span>
  127. </div>
  128. </div>
  129. </div>
  130. {/* Description */}
  131. <p className={`${theme === 'dark' ? 'text-gray-300' : 'text-gray-600'} mb-4`}>{integration.description}</p>
  132. {/* Features */}
  133. <div className="mb-6">
  134. <h4 className={`text-sm font-semibold ${theme === 'dark' ? 'text-gray-400' : 'text-gray-500'} mb-2`}>Key Features</h4>
  135. <ul className="grid grid-cols-2 gap-2">
  136. {integration.features.map((feature, index) => (
  137. <li key={index} className={`flex items-center text-sm ${theme === 'dark' ? 'text-gray-300' : 'text-gray-600'}`}>
  138. <div className="w-1.5 h-1.5 rounded-full bg-blue-500 mr-2"></div>
  139. {feature}
  140. </li>
  141. ))}
  142. </ul>
  143. </div>
  144. {/* Action Button */}
  145. <button className={`w-full ${theme === 'dark' ? 'bg-gray-700 hover:bg-gray-600' : 'bg-gray-100 hover:bg-gray-200'} text-${theme === 'dark' ? 'white' : 'gray-900'} rounded-lg px-4 py-2 flex items-center justify-center space-x-2 transition-colors`}>
  146. <span>Learn More</span>
  147. <ArrowRight className="w-4 h-4" />
  148. </button>
  149. </div>
  150. ))}
  151. </div>
  152. {/* Coming Soon Section */}
  153. <div className={`mt-8 bg-gradient-to-r ${theme === 'dark' ? 'from-blue-500/10 to-purple-500/10' : 'from-blue-100 to-purple-100'} rounded-lg p-6`}>
  154. <h2 className={`text-lg font-semibold ${theme === 'dark' ? 'text-white' : 'text-gray-900'} mb-2`}>More Integrations Coming Soon</h2>
  155. <p className={`${theme === 'dark' ? 'text-gray-400' : 'text-gray-600'}`}>We are constantly adding new integrations. Request the ones you need!</p>
  156. <button className="mt-4 bg-blue-500 hover:bg-blue-600 text-white px-4 py-2 rounded-lg transition-colors">
  157. Request Integration
  158. </button>
  159. </div>
  160. </div>
  161. )
  162. }