# feat: Add Reusable Modal Component & Complete Layout System#331
Open
DevMuhdishaq wants to merge 4 commits into
Open
# feat: Add Reusable Modal Component & Complete Layout System#331DevMuhdishaq wants to merge 4 commits into
DevMuhdishaq wants to merge 4 commits into
Conversation
…esolve TypeScript error
…! The files have been added to your project: The modal component has been successfully created and is ready to use! The files have been added to your project:
|
@DevMuhdishaq Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Closes #308
Summary
This PR implements two major features for the StellarAid application:
Changes Made
New Files Created
app/components/common/Modal.tsx- Reusable modal component with accessibility featuresapp/components/layout/Navbar.tsx- Sticky, responsive navigation barapp/components/layout/Footer.tsx- Comprehensive footer with links and social iconsapp/components/layout/MainLayout.tsx- Wrapper component combining Navbar and Footerapp/components/layout/index.ts- Export file for all layout componentsFiles Modified
app/components/common/index.ts- Added Modal component exportapp/page.tsx- Updated to use MainLayout for consistent page structureFeature Details
🎯 Reusable Modal Component
File:
app/components/common/Modal.tsxProps Supported
isOpen: boolean - Controls modal visibilityonClose: () => void - Callback to close the modaltitle?: string- Optional modal titlechildren: ReactNode- Modal contentsize?: 'sm' | 'md' | 'lg'- Modal size variants (defaults to 'md')Key Features
🎯 Layout System
Files:
Navbar.tsx,Footer.tsx,MainLayout.tsxNavbar Features
Footer Features
MainLayout Features
isLoggedInanduserfor conditional renderingTechnical Improvements
next/imageinstead of native<img>Testing
Screenshots (if applicable)
Checklist
Closes #309