# keremyldrm61/kerem-yildirim-portfolio architecture

> Architecture diagram of the GitHub repository keremyldrm61/kerem-yildirim-portfolio, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-17). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/keremyldrm61/kerem-yildirim-portfolio
- Repository: https://github.com/keremyldrm61/kerem-yildirim-portfolio

## Overview

#### 1. Purpose and Delivery Model
This repository is a static, single-page developer portfolio built with React 18 and Vite. It presents portfolio content, supports English/Turkish localization and light/dark themes, and submits visitor messages to Web3Forms. The production artifact is a client-side bundle suitable for static hosting such as Vercel.
Paths: `src/main.jsx`, `src/App.jsx`, `vite.config.js`.

#### 2. Application Bootstrap and Composition
`main.jsx` mounts the React application and loads global setup/styles. `App.jsx` is the page-level composition root: it assembles the header, hero, content sections, and footer into one scrollable document rather than routing between pages.
Paths: `src/main.jsx`, `src/App.jsx`, `src/index.css`.

#### 3. Portfolio Section Layer
The primary content is divided into independently maintained visual sections: introduction, biography, skills, projects, certificates, and contact. These components own their displayed portfolio data/layout and are coordinated only by the app shell and header navigation anchors.
Paths: `src/components/Hero/Hero.jsx`, `src/components/About/About.jsx`, `src/components/Skills/Skills.jsx`, `src/components/Projects/Projects.jsx`, `src/components/Certificates/Certificates.jsx`.

#### 4. Navigation and Presentation Shell
The header provides site navigation and hosts global user-facing controls; the footer closes the single-page experience. Reusable decorative components supply hero spotlight and technology-grid visual treatments without acting as application state boundaries.
Paths: `src/components/Header/Header.jsx`, `src/components/Footer/Footer.jsx`, `src/components/Hero/Spotlight/Spotlight.jsx`, `src/components/TechGridPattern/TechGridPattern.jsx`.

#### 5. Localization Flow
The i18next initialization module configures `react-i18next` using separate English and Turkish translation resources. Display components consume translated strings, while the language switcher changes the active locale at runtime; translations are a content boundary separate from component markup.
Paths: `src/i18n.js`, `src/locales/en/translation.json`, `src/locales/tr/translation.json`, `src/components/LanguageSwitcher/LanguageSwitcher.jsx`.

#### 6. Theme and UI Behavior
Theme switching is a client-side concern, exposed through a dedicated control and reflected through global/component styling. Global CSS is the shared styling boundary; Tailwind CSS is identified as the styling system. AOS provides scroll-triggered reveal animations across page sections.
Paths: `src/components/ThemeSwitcher/ThemeSwitcher.jsx`, `src/index.css`, `src/components/Hero/Hero.jsx`.

#### 7. Contact Integration and Runtime Boundaries
The contact section collects and validates user input, includes honeypot spam protection, and sends submissions from the browser to the external Web3Forms REST API. Its access key is injected at Vite build/runtime through `VITE_WEB3FORMS_ACCESS_KEY`; `.env` remains local and `.env.example` defines the required contract. There is no repository-visible backend.
Paths: `src/components/Contact/Contact.jsx`, `.env.example`, `package.json`.

#### 8. Build Infrastructure
Node.js (18+) and npm drive dependency installation and Vite development/build commands. `index.html` is Vite’s browser entry document; Vite bundles React and client assets for deployment. Image assets are intended to live under the app asset tree, while `public/` holds directly served static files.
Paths: `package.json`, `index.html`, `src/assets/images`, `public`.

Main entry points: [`vite.config.js`](https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/vite.config.js) (Vite bundler), [`src/App.jsx`](https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/src/App.jsx) (App shell), [`src/main.jsx`](https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/src/main.jsx) (React bootstrap), [`src/components/Header/Header.jsx`](https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/src/components/Header/Header.jsx) (Header & footer)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_build["Build &amp; delivery"]
  node_npm{{"Node.js &amp; npm<br/>toolchain<br/>[package.json]"}}
  node_vite{{"Vite bundler<br/>build system<br/>[vite.config.js]"}}
  node_html["Browser entry document<br/>HTML entry<br/>[index.html]"]
  node_static["Static hosting bundle<br/>deployment artifact"]
  node_env["Web3Forms key contract<br/>environment contract<br/>[.env.example]"]
  node_public["Direct static files<br/>public asset tree"]
end

subgraph group_client["React single-page app"]
  node_main["React bootstrap<br/>client entry<br/>[main.jsx]"]
  node_app["App shell<br/>composition root<br/>[App.jsx]"]
  node_header["Header &amp; footer<br/>presentation shell<br/>[Header.jsx]"]
  node_hero["Hero presentation<br/>visual section<br/>[Hero.jsx]"]
  node_i18n["i18next setup<br/>localization runtime<br/>[i18n.js]"]
  node_language["Language switcher<br/>UI control"]
  node_theme["Theme switcher<br/>UI control<br/>[ThemeSwitcher.jsx]"]
  node_styles["Global styles<br/>Tailwind/CSS boundary<br/>[index.css]"]
  node_assets["Client image assets<br/>asset tree"]
end

subgraph group_content["Portfolio sections"]
  node_sections["Portfolio content sections<br/>section layer<br/>[About.jsx]"]
  node_contact["Contact form<br/>client integration<br/>[Contact.jsx]"]
  node_translations["English &amp; Turkish content<br/>translation resources<br/>[translation.json]"]
end

subgraph group_external["External services"]
  node_web3forms{{"Web3Forms REST API<br/>external form service"}}
end

node_npm -->|"runs"| node_vite
node_vite -->|"uses entry"| node_html
node_vite -->|"bundles"| node_main
node_vite -->|"processes"| node_assets
node_vite -->|"serves directly"| node_public
node_vite -->|"produces"| node_static
node_html -->|"loads"| node_main
node_main -->|"mounts"| node_app
node_main -->|"initializes"| node_i18n
node_main -->|"loads"| node_styles
node_app -->|"composes"| node_header
node_app -->|"composes"| node_hero
node_app -->|"composes"| node_sections
node_app -->|"composes"| node_contact
node_i18n -->|"loads resources"| node_translations
node_language -->|"changes locale"| node_i18n
node_header -->|"hosts"| node_language
node_header -->|"hosts"| node_theme
node_theme -->|"updates theme"| node_styles
node_contact -.->|"reads build variable"| node_env
node_contact -->|"submits message"| node_web3forms

click node_npm "https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/package.json"
click node_vite "https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/vite.config.js"
click node_html "https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/index.html"
click node_main "https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/src/main.jsx"
click node_app "https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/src/App.jsx"
click node_header "https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/src/components/Header/Header.jsx"
click node_hero "https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/src/components/Hero/Hero.jsx"
click node_sections "https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/src/components/About/About.jsx"
click node_contact "https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/src/components/Contact/Contact.jsx"
click node_i18n "https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/src/i18n.js"
click node_translations "https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/src/locales/en/translation.json"
click node_language "https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/src/components/LanguageSwitcher/LanguageSwitcher.jsx"
click node_theme "https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/src/components/ThemeSwitcher/ThemeSwitcher.jsx"
click node_styles "https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/src/index.css"
click node_env "https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/.env.example"
click node_assets "https://github.com/keremyldrm61/kerem-yildirim-portfolio/tree/main/src/assets/images"
click node_public "https://github.com/keremyldrm61/kerem-yildirim-portfolio/tree/main/public"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_npm,node_vite,node_html,node_static,node_env,node_public toneBlue
class node_main,node_app,node_header,node_hero,node_i18n,node_language,node_theme,node_styles,node_assets toneAmber
class node_sections,node_contact,node_translations toneMint
class node_web3forms toneRose
```

## Components

### Build & delivery

- [Node.js & npm](https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/package.json): toolchain · Installs dependencies and runs Vite commands. · `package.json`
- [Vite bundler](https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/vite.config.js): build system · Builds the static client bundle. · `vite.config.js`
- [Browser entry document](https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/index.html): HTML entry · `index.html`
- **Static hosting bundle**: deployment artifact
- [Web3Forms key contract](https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/.env.example): environment contract · Defines the VITE_WEB3FORMS_ACCESS_KEY requirement. · `.env.example`
- [Direct static files](https://github.com/keremyldrm61/kerem-yildirim-portfolio/tree/main/public): public asset tree · `public`

### React single-page app

- [React bootstrap](https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/src/main.jsx): client entry · Mounts React and global setup. · `src/main.jsx`
- [App shell](https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/src/App.jsx): composition root · Composes one scrollable portfolio page. · `src/App.jsx`
- [Header & footer](https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/src/components/Header/Header.jsx): presentation shell · Navigation anchors and global controls frame the page. · `src/components/Header/Header.jsx`
- [Hero presentation](https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/src/components/Hero/Hero.jsx): visual section · Includes spotlight and scroll-reveal presentation. · `src/components/Hero/Hero.jsx`
- [i18next setup](https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/src/i18n.js): localization runtime · Configures react-i18next resources and active locale. · `src/i18n.js`
- [Language switcher](https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/src/components/LanguageSwitcher/LanguageSwitcher.jsx): UI control · `src/components/LanguageSwitcher/LanguageSwitcher.jsx`
- [Theme switcher](https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/src/components/ThemeSwitcher/ThemeSwitcher.jsx): UI control · `src/components/ThemeSwitcher/ThemeSwitcher.jsx`
- [Global styles](https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/src/index.css): Tailwind/CSS boundary · Shared styling and theme presentation. · `src/index.css`
- [Client image assets](https://github.com/keremyldrm61/kerem-yildirim-portfolio/tree/main/src/assets/images): asset tree · `src/assets/images`

### Portfolio sections

- [Portfolio content sections](https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/src/components/About/About.jsx): section layer · About, skills, projects, and certificates own their content and layout. · `src/components/About/About.jsx`
- [Contact form](https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/src/components/Contact/Contact.jsx): client integration · Validates input and applies honeypot spam protection. · `src/components/Contact/Contact.jsx`
- [English & Turkish content](https://github.com/keremyldrm61/kerem-yildirim-portfolio/blob/main/src/locales/en/translation.json): translation resources · `src/locales/en/translation.json`

### External services

- **Web3Forms REST API**: external form service · Receives browser-submitted visitor messages.

## Connections

- Node.js & npm → Vite bundler: runs
- Vite bundler → Browser entry document: uses entry
- Vite bundler → React bootstrap: bundles
- Vite bundler → Client image assets: processes
- Vite bundler → Direct static files: serves directly
- Vite bundler → Static hosting bundle: produces
- Browser entry document → React bootstrap: loads
- React bootstrap → App shell: mounts
- React bootstrap → i18next setup: initializes
- React bootstrap → Global styles: loads
- App shell → Header & footer: composes
- App shell → Hero presentation: composes
- App shell → Portfolio content sections: composes
- App shell → Contact form: composes
- i18next setup → English & Turkish content: loads resources
- Language switcher → i18next setup: changes locale
- Header & footer → Language switcher: hosts
- Header & footer → Theme switcher: hosts
- Theme switcher → Global styles: updates theme
- Contact form → Web3Forms key contract: reads build variable
- Contact form → Web3Forms REST API: submits message
