|
| 1 | +import React from 'react'; |
| 2 | + |
| 3 | +const tools = [ |
| 4 | + { |
| 5 | + id: 'scam', |
| 6 | + name: 'Scam Analyzer', |
| 7 | + description: 'Heuristic-based detection for phishing and fraudulent messages.', |
| 8 | + icon: '🛡️' |
| 9 | + }, |
| 10 | + { |
| 11 | + id: 'fake-news', |
| 12 | + name: 'Fake News Detector', |
| 13 | + description: 'Analyze news articles for sensationalism and misinformation patterns.', |
| 14 | + icon: '📰' |
| 15 | + }, |
| 16 | + { |
| 17 | + id: 'ai-content', |
| 18 | + name: 'AI Content Detector', |
| 19 | + description: 'Identify text generated by large language models.', |
| 20 | + icon: '🤖' |
| 21 | + }, |
| 22 | + { |
| 23 | + id: 'fake-content', |
| 24 | + name: 'Fake Content Verifier', |
| 25 | + description: 'Verify the authenticity of digital media and profiles.', |
| 26 | + icon: '🔍' |
| 27 | + }, |
| 28 | + { |
| 29 | + id: 'fbi-game', |
| 30 | + name: 'FBI AR Game', |
| 31 | + description: 'Immersive training for identifying security threats in AR.', |
| 32 | + icon: '🕶️' |
| 33 | + }, |
| 34 | + { |
| 35 | + id: 'supply-chain', |
| 36 | + name: 'Logistics Digital Twin', |
| 37 | + description: '3D warehouse simulation and blockchain-backed logistics tracking.', |
| 38 | + icon: '📦' |
| 39 | + } |
| 40 | +]; |
| 41 | + |
| 42 | +export default function Marketplace({ setView }) { |
| 43 | + return ( |
| 44 | + <div className="marketplace-container"> |
| 45 | + <section className="hero"> |
| 46 | + <h1>Global Security Marketplace</h1> |
| 47 | + <p className="official-domain">Official Domain: <strong>global-security-platform.com</strong></p> |
| 48 | + <p>The centralized hub for your digital protection needs. Secure your communication, verify your data, and optimize your logistics with our AI-powered suite.</p> |
| 49 | + </section> |
| 50 | + |
| 51 | + <div className="tool-grid"> |
| 52 | + {tools.map((tool) => ( |
| 53 | + <div key={tool.id} className="tool-card" onClick={() => setView(tool.id)}> |
| 54 | + <div className="tool-icon">{tool.icon}</div> |
| 55 | + <h3>{tool.name}</h3> |
| 56 | + <p>{tool.description}</p> |
| 57 | + <button className="open-btn">Launch App</button> |
| 58 | + </div> |
| 59 | + ))} |
| 60 | + </div> |
| 61 | + |
| 62 | + <style jsx>{` |
| 63 | + .marketplace-container { |
| 64 | + padding: 40px 20px; |
| 65 | + max-width: 1200px; |
| 66 | + margin: 0 auto; |
| 67 | + } |
| 68 | + .hero { |
| 69 | + text-align: center; |
| 70 | + margin-bottom: 50px; |
| 71 | + padding: 40px; |
| 72 | + background: rgba(255, 255, 255, 0.05); |
| 73 | + border-radius: 15px; |
| 74 | + } |
| 75 | + .official-domain { |
| 76 | + font-size: 1.2rem; |
| 77 | + color: #61dafb; |
| 78 | + margin: 10px 0; |
| 79 | + } |
| 80 | + .tool-grid { |
| 81 | + display: grid; |
| 82 | + grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); |
| 83 | + gap: 25px; |
| 84 | + } |
| 85 | + .tool-card { |
| 86 | + background: #282c34; |
| 87 | + border: 1px solid #444; |
| 88 | + border-radius: 12px; |
| 89 | + padding: 25px; |
| 90 | + text-align: left; |
| 91 | + transition: transform 0.2s, box-shadow 0.2s; |
| 92 | + cursor: pointer; |
| 93 | + display: flex; |
| 94 | + flex-direction: column; |
| 95 | + } |
| 96 | + .tool-card:hover { |
| 97 | + transform: translateY(-5px); |
| 98 | + box-shadow: 0 10px 20px rgba(0,0,0,0.3); |
| 99 | + border-color: #61dafb; |
| 100 | + } |
| 101 | + .tool-icon { |
| 102 | + font-size: 3rem; |
| 103 | + margin-bottom: 15px; |
| 104 | + } |
| 105 | + .tool-card h3 { |
| 106 | + margin: 0 0 10px 0; |
| 107 | + color: #61dafb; |
| 108 | + } |
| 109 | + .tool-card p { |
| 110 | + color: #ccc; |
| 111 | + font-size: 0.95rem; |
| 112 | + line-height: 1.5; |
| 113 | + flex-grow: 1; |
| 114 | + margin-bottom: 20px; |
| 115 | + } |
| 116 | + .open-btn { |
| 117 | + background: #61dafb; |
| 118 | + color: #282c34; |
| 119 | + border: none; |
| 120 | + padding: 10px; |
| 121 | + border-radius: 6px; |
| 122 | + font-weight: bold; |
| 123 | + cursor: pointer; |
| 124 | + } |
| 125 | + `}</style> |
| 126 | + </div> |
| 127 | + ); |
| 128 | +} |
0 commit comments