generated from github/codespaces-react
-
-
Notifications
You must be signed in to change notification settings - Fork 1
Marketplace Integration and Official Domain Launch #28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
GYFX35
merged 1 commit into
main
from
feat/marketplace-official-domain-4598492268017461849
Mar 16, 2026
Merged
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| global-security-platform.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,128 @@ | ||
| import React from 'react'; | ||
|
|
||
| const tools = [ | ||
| { | ||
| id: 'scam', | ||
| name: 'Scam Analyzer', | ||
| description: 'Heuristic-based detection for phishing and fraudulent messages.', | ||
| icon: '🛡️' | ||
| }, | ||
| { | ||
| id: 'fake-news', | ||
| name: 'Fake News Detector', | ||
| description: 'Analyze news articles for sensationalism and misinformation patterns.', | ||
| icon: '📰' | ||
| }, | ||
| { | ||
| id: 'ai-content', | ||
| name: 'AI Content Detector', | ||
| description: 'Identify text generated by large language models.', | ||
| icon: '🤖' | ||
| }, | ||
| { | ||
| id: 'fake-content', | ||
| name: 'Fake Content Verifier', | ||
| description: 'Verify the authenticity of digital media and profiles.', | ||
| icon: '🔍' | ||
| }, | ||
| { | ||
| id: 'fbi-game', | ||
| name: 'FBI AR Game', | ||
| description: 'Immersive training for identifying security threats in AR.', | ||
| icon: '🕶️' | ||
| }, | ||
| { | ||
| id: 'supply-chain', | ||
| name: 'Logistics Digital Twin', | ||
| description: '3D warehouse simulation and blockchain-backed logistics tracking.', | ||
| icon: '📦' | ||
| } | ||
| ]; | ||
|
|
||
| export default function Marketplace({ setView }) { | ||
| return ( | ||
| <div className="marketplace-container"> | ||
| <section className="hero"> | ||
| <h1>Global Security Marketplace</h1> | ||
| <p className="official-domain">Official Domain: <strong>global-security-platform.com</strong></p> | ||
| <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> | ||
| </section> | ||
|
|
||
| <div className="tool-grid"> | ||
| {tools.map((tool) => ( | ||
| <div key={tool.id} className="tool-card" onClick={() => setView(tool.id)}> | ||
| <div className="tool-icon">{tool.icon}</div> | ||
| <h3>{tool.name}</h3> | ||
| <p>{tool.description}</p> | ||
| <button className="open-btn">Launch App</button> | ||
| </div> | ||
| ))} | ||
| </div> | ||
|
|
||
| <style jsx>{` | ||
| .marketplace-container { | ||
| padding: 40px 20px; | ||
| max-width: 1200px; | ||
| margin: 0 auto; | ||
| } | ||
| .hero { | ||
| text-align: center; | ||
| margin-bottom: 50px; | ||
| padding: 40px; | ||
| background: rgba(255, 255, 255, 0.05); | ||
| border-radius: 15px; | ||
| } | ||
| .official-domain { | ||
| font-size: 1.2rem; | ||
| color: #61dafb; | ||
| margin: 10px 0; | ||
| } | ||
| .tool-grid { | ||
| display: grid; | ||
| grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); | ||
| gap: 25px; | ||
| } | ||
| .tool-card { | ||
| background: #282c34; | ||
| border: 1px solid #444; | ||
| border-radius: 12px; | ||
| padding: 25px; | ||
| text-align: left; | ||
| transition: transform 0.2s, box-shadow 0.2s; | ||
| cursor: pointer; | ||
| display: flex; | ||
| flex-direction: column; | ||
| } | ||
| .tool-card:hover { | ||
| transform: translateY(-5px); | ||
| box-shadow: 0 10px 20px rgba(0,0,0,0.3); | ||
| border-color: #61dafb; | ||
| } | ||
| .tool-icon { | ||
| font-size: 3rem; | ||
| margin-bottom: 15px; | ||
| } | ||
| .tool-card h3 { | ||
| margin: 0 0 10px 0; | ||
| color: #61dafb; | ||
| } | ||
| .tool-card p { | ||
| color: #ccc; | ||
| font-size: 0.95rem; | ||
| line-height: 1.5; | ||
| flex-grow: 1; | ||
| margin-bottom: 20px; | ||
| } | ||
| .open-btn { | ||
| background: #61dafb; | ||
| color: #282c34; | ||
| border: none; | ||
| padding: 10px; | ||
| border-radius: 6px; | ||
| font-weight: bold; | ||
| cursor: pointer; | ||
| } | ||
| `}</style> | ||
| </div> | ||
| ); | ||
| } | ||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: Inline
<style jsx>usage may be misleading and leads to globally scoped styles.In this setup, the
jsxattribute on<style>doesn’t provide scoping—these styles are applied globally. If you want scoped styles forMarketplace, this approach won’t achieve that. Either treat them as global (removejsxand move to a shared stylesheet likeApp.cssor a CSS module) or adopt a consistent scoping solution (e.g., CSS modules, styled-components) across the app.Suggested implementation:
src/Marketplace.css(or use an existing global stylesheet likeApp.css) and move all the styles that were inside<style jsx>{…}</style>into that file, e.g.:src/Marketplace.jsx, import this stylesheet so the styles are applied globally:Marketplace.jsx(e.g.marketplace-container,hero,tool-card,open-btn, etc.) are fully defined inMarketplace.cssso behavior matches the original inline styles.