How sanchiitvijay/portfolio_sanchit_vijay works
Main Components
• Entry/Bootstrapping: Start with the index.html and main.jsx, which serve as the entry points of the application.
• Application Layer: Represent the App.jsx component, which is the central container for the webpage.
• UI & Visual Components: Break down the UI into Main Pages (under src/components/Pages) like HomeMobile.jsx, LandingPageMd.jsx, and LandingPageMobile.jsx.
• Common Components: Include reusable components found under src/components/common (e.g., Certificates, LogoMarquee, MyButton, MyCard) that provide standardized styles and functions.
• Special UI Elements (MagicUI): Include a separate grouping for components under src/components/magicui that provide animated and dynamic effects (e.g., animated-shiny-text, marquee, number-ticker, sparkles-text, word-rotate).
• Modals: Add a block for modal components (e.g., CertificatesModal, ContactModal, EducationModal, etc.) that are used to display supplementary or detailed information.
• Assets & Resources: Represent the assets folder (Pics, fonts) that contains visual resources. Also include the lib folder (with constants.js and utils.js) which provides helper functions and configuration constants.
Architectural Patterns & Design Principles
• Component-Based Design: Emphasize that each UI piece is modular and reusable, which is a central aspect of React.
• Separation of Presentation & Logic: Distinguish between simple presentational components (common and magicui) and more complex or interactive components (core, modals).
• Directory & Layer Organization: The layout of directories illustrates separation by function (assets, components, lib, configurations) and by type of UI element (Pages, common, core, modals, magicui).