Creating asset info component and page #462
Merged
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.
Overview
This pull request introduces the
AssetInfo
page, designed to provide users with a detailed view of financial asset data, including performance charts, key information, and relevant news. The page layout and components are responsive, user-friendly, and align with the project's design standards.Key Features
Asset Information Display:
AssetInfoWidget
component to showcase essential details about the selected asset.symbol
prop (e.g.,NASDAQ:AAPL
).Interactive Chart Integration:
ChartContainer
component below theAssetInfoWidget
to display real-time performance charts using the TradingView widget.News Widget:
NewsWidget
component to display relevant financial news on the asset.Responsive Layout:
AssetInfo.module.css
).Layout Structure
NewsWidget
: Displays the latest financial news and updates.AssetInfoWidget
: Positioned at the top to display asset details.ChartContainer
: Placed below the asset info for performance visualization.Technical Details
Dynamic Symbol Prop:
symbol
prop is utilized across components for scalability and reusability.<AssetInfoWidget symbol="NASDAQ:AAPL" />
and<ChartContainer symbol="NASDAQ:AAPL" />
.CSS Modules:
AssetInfo.module.css
.Responsive Design:
flexbox
and media queries to create a layout that adapts to various screen sizes.NewsWidget
) stacks below the main content on smaller screens.Benefits
User Experience:
Scalability:
AssetInfoWidget
,ChartContainer
,NewsWidget
) are reusable and can be extended to support additional features or assets.Performance:
Future Enhancements
Dynamic Asset Selection:
Real-Time News Integration:
NewsWidget
with live updates from financial news APIs.