How aemre23/portfolio-website works
Main Components
• Frontend Application: Since the project is a single-page application (SPA) built with React, the entire user-facing interface is managed in the src folder.
• Pages and Views: Under the src/pages directory, there are several key pages such as Home (Welcome.jsx), Hero, About, Contact, and Projects. Each of these pages represents a distinct section of the portfolio.
• Components: The src/components directory and nested components (e.g., AboutSkills.jsx, goTop.jsx) contain reusable UI components shared across pages.
• Data and Functions: The src/data and src/functions directories hold business logic, utility functions (e.g., calculateRelativeDate.js, mobileChecker.js), and configuration or structured data (e.g., contactObject.jsx, skillsObject.jsx).
• Localization: The presence of public/locales with language-specific JSON files (e.g., en/translation.json, tr/translation.json) indicates support for internationalization.
• Assets, Utilities, and Styling: The src/assets folder includes media or other resources, and styling/integration is managed via TailwindCSS configuration files (tailwind.config.cjs) and a main CSS file (src/input.css).
Out Relationships and Interactions
• Data Flow: Show how data is imported from files under src/data and transformed or rendered within components. Utility functions such as those in src/functions (e.g., getProjectInfos.jsx) might be illustrated as supporting logic that feeds data into components.
• Localization: Include a distinct component block for the i18n initialization (src/i18n.js) that feeds language translations from public/locales into the React components at runtime.
• Build/Deployment: Include external tools such as Vite (configured in vite.config.js) that are responsible for bundling the React application and post-processing assets (as indicated by the postcss.config.cjs file).
Architectural Patterns and Technologies
• Single-Page Application (SPA): The overall structure of routing between major views (Welcome, Hero, About, Contact, Projects) demonstrates an SPA characteristic.
• Internationalization (i18n): Highlight the integration with react-i18next, shown both in the public/locales directory and configuration in src/i18n.js.
• Animation Integration: Mention that Framer Motion is used to enhance UI animations, which may be directly integrated within React components (although no specific file names show this, it is a key part of the tech stack).