# george-sergeev/portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/george-sergeev/portfolio
- Repository: https://github.com/george-sergeev/portfolio

## Overview

1. **What this repo is**
   - A **single-page portfolio site** built with **Vite + React + JavaScript**.
   - The app is primarily a **static front-end**: it presents personal profile content, projects, skills, and contact links, with no visible backend or API layer in the repository.

2. **Application entry and build boundary**
   - `index.html`, `src/main.jsx`, and `src/App.jsx` form the application bootstrap path.
   - `vite.config.js` defines the build/dev-tooling boundary, so the architecture is centered on client-side rendering and static deployment.

3. **Page-level structure**
   - The `src/pages` folder contains the top-level views: **HomePage, AboutPage, ContactPage, ProjectPage**.
   - This suggests a navigation model where the app is organized into distinct page routes or page states, rather than one monolithic landing page.

4. **Reusable UI component layer**
   - Most UI is decomposed into reusable components under `src/components`.
   - Core layout and section primitives include **Header, Footer, Logo, SectionTitle, PageTitle, PageSubtitle**.
   - Feature sections include **Hero, About, Skills, Projects, Contacts**, each with its own presentation and supporting subcomponents.

5. **Data-driven content**
   - `src/data/projects.json` and `src/data/skills.json` are the main content sources.
   - The UI reads from these local JSON files to render project cards, technology lists, and skill blocks, which makes the site content-driven rather than hardcoded throughout the UI tree.

6. **Projects subsystem**
   - The projects area is split into **Projects**, **ProjectPage**, and card-level components like **ProjectsCard** and **ProjectsCardTechnology**.
   - There are also **BigProjects** and **SmallProjects** components, indicating a presentation split by project type or prominence.
   - Project images live in `public/images/projects`, so the project section combines local metadata with static assets.

7. **Skills and profile sections**
   - The **Skills** area uses `Skills.jsx`, `SkillsBlock.jsx`, and `SkillsIllustrations.jsx` to present capabilities and visual accents.
   - The **About** and **Hero** sections also have dedicated illustration components, showing a pattern of separating text content from decorative/branding visuals.

8. **Navigation, actions, and responsiveness**
   - The header includes a **burger menu** and responsive variants (`HeaderMedia`, `BurgerMenuMedia`), so navigation adapts for smaller screens.
   - Button components like **ButtonGitHub**, **ButtonLive**, and **ButtonHero** represent the main call-to-action paths: source code, live demo, and primary hero actions.
   - `ScrollToTop` indicates route/page transitions are expected to reset scroll position.

9. **Icons and contact surfaces**
   - Icon components in `src/icons` include **EmailIcon, GitHubIcon, TelegramIcon, RaccoonIcon**.
   - These are used by the **Contacts** section and likely the header/footer branding, forming the main outbound interaction layer to external profiles and communication channels.

10. **Styling architecture**
   - Styling is **colocated per component** with separate `.css` files for each UI piece.
   - Shared styling lives in `src/styles` via **reset, globals, variables, fonts**, while `src/index.css` and `src/App.css` provide root-level application styles.
   - This creates a clear boundary between global design tokens/base rules and local component styling.

11. **Static/public assets and SEO**
   - `public/robots.txt`, `public/sitemap.xml`, `public/sitemap.xsl`, and `public/yandex_*.html` show that the site is set up for **indexing and search verification**.
   - `public/images` and `src/assets/fonts` hold static media and typography resources for the visual identity of the portfolio.

12. **Overall architecture for diagramming**
   - A good diagram would show: **browser loads Vite-built React app → App/Main render page shells → page components compose reusable sections → sections consume local JSON data and static assets → buttons/icons link out to external destinations**.
   - There is no evidence of a server-side business layer; the key architectural boundaries are **client UI**, **local content/data**, and **static asset/SEO delivery**.

Main entry points: [`src/App.jsx`](https://github.com/george-sergeev/portfolio/blob/main/src/App.jsx) (App), [`src/pages/HomePage/HomePage.jsx`](https://github.com/george-sergeev/portfolio/blob/main/src/pages/HomePage/HomePage.jsx) (Home Page), [`src/components/Projects/Projects.jsx`](https://github.com/george-sergeev/portfolio/blob/main/src/components/Projects/Projects.jsx) (Projects), [`src/components/Skills/Skills.jsx`](https://github.com/george-sergeev/portfolio/blob/main/src/components/Skills/Skills.jsx) (Skills)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["App Shell"]
  node_index_html["index.html<br/>entry file<br/>[index.html]"]
  node_main_jsx["main.jsx<br/>bootstrap<br/>[main.jsx]"]
  node_app_jsx["App<br/>root component<br/>[App.jsx]"]
end

subgraph group_pages["Pages"]
  node_home_page["Home Page<br/>[HomePage.jsx]"]
  node_about_page["About Page<br/>[AboutPage.jsx]"]
  node_contact_page["Contact Page<br/>[ContactPage.jsx]"]
  node_project_page["Project Page<br/>[ProjectPage.jsx]"]
end

subgraph group_ui["UI Components"]
  node_header["Header<br/>navigation<br/>[Header.jsx]"]
  node_footer["Footer<br/>layout<br/>[Footer.jsx]"]
  node_hero["Hero<br/>section<br/>[Hero.jsx]"]
  node_about["About<br/>section<br/>[About.jsx]"]
  node_skills["Skills<br/>section<br/>[Skills.jsx]"]
  node_projects["Projects<br/>section<br/>[Projects.jsx]"]
  node_contacts["Contacts<br/>section<br/>[Contacts.jsx]"]
  node_scroll_top(("Scroll To Top<br/>behavior<br/>[ScrollToTop.jsx]"))
  node_projects_card["Project Card<br/>[ProjectsCard.jsx]"]
  node_projects_tech["Tech Tags<br/>subcomponent"]
  node_skills_block["Skill Block<br/>subcomponent<br/>[SkillsBlock.jsx]"]
  node_header_media["Header Media<br/>responsive nav<br/>[HeaderMedia.jsx]"]
  node_hero_illus["Hero Art<br/>illustration"]
  node_about_illus["About Art<br/>illustration"]
  node_skills_illus["Skills Art<br/>illustration"]
end

subgraph group_content["Content & Assets"]
  node_projects_data["projects.json<br/>content data<br/>[projects.json]"]
  node_skills_data["skills.json<br/>content data<br/>[skills.json]"]
  node_project_images[("Project Images<br/>static media")]
  node_fonts[("Fonts<br/>static media")]
end

subgraph group_public["Public SEO"]
  node_robots["robots.txt<br/>seo file<br/>[robots.txt]"]
  node_sitemap["sitemap.xml<br/>seo file<br/>[sitemap.xml]"]
  node_yandex_ver["Yandex Verify<br/>verification file"]
end

subgraph group_styles["Styling"]
  node_styles_globals["Global Styles<br/>style system<br/>[globals.css]"]
end

node_index_html -->|"loads"| node_main_jsx
node_main_jsx -->|"renders"| node_app_jsx
node_app_jsx -->|"composes"| node_header
node_app_jsx -->|"wraps"| node_scroll_top
node_app_jsx -->|"shows"| node_home_page
node_app_jsx -->|"shows"| node_about_page
node_app_jsx -->|"shows"| node_project_page
node_app_jsx -->|"shows"| node_contact_page
node_app_jsx -->|"composes"| node_footer
node_home_page -->|"includes"| node_hero
node_home_page -->|"includes"| node_about
node_home_page -->|"includes"| node_skills
node_home_page -->|"includes"| node_projects
node_home_page -->|"includes"| node_contacts
node_about_page -->|"centers on"| node_about
node_project_page -->|"centers on"| node_projects
node_contact_page -->|"centers on"| node_contacts
node_header -->|"adapts"| node_header_media
node_hero -->|"uses"| node_hero_illus
node_about -->|"uses"| node_about_illus
node_skills -->|"uses"| node_skills_block
node_skills -->|"uses"| node_skills_illus
node_projects -->|"uses"| node_projects_card
node_projects_card -->|"uses"| node_projects_tech
node_projects -->|"reads"| node_projects_data
node_skills -->|"reads"| node_skills_data
node_projects_card -->|"loads"| node_project_images
node_projects -->|"loads"| node_project_images
node_header -->|"inherits"| node_styles_globals
node_projects -->|"inherits"| node_styles_globals
node_robots -->|"supports"| node_sitemap
node_sitemap -->|"coexists"| node_yandex_ver

click node_index_html "https://github.com/george-sergeev/portfolio/blob/main/index.html"
click node_main_jsx "https://github.com/george-sergeev/portfolio/blob/main/src/main.jsx"
click node_app_jsx "https://github.com/george-sergeev/portfolio/blob/main/src/App.jsx"
click node_home_page "https://github.com/george-sergeev/portfolio/blob/main/src/pages/HomePage/HomePage.jsx"
click node_about_page "https://github.com/george-sergeev/portfolio/blob/main/src/pages/AboutPage/AboutPage.jsx"
click node_contact_page "https://github.com/george-sergeev/portfolio/blob/main/src/pages/ContactPage/ContactPage.jsx"
click node_project_page "https://github.com/george-sergeev/portfolio/blob/main/src/pages/ProjectPage/ProjectPage.jsx"
click node_header "https://github.com/george-sergeev/portfolio/blob/main/src/components/Header/Header.jsx"
click node_footer "https://github.com/george-sergeev/portfolio/blob/main/src/components/Footer/Footer.jsx"
click node_hero "https://github.com/george-sergeev/portfolio/blob/main/src/components/Hero/Hero.jsx"
click node_about "https://github.com/george-sergeev/portfolio/blob/main/src/components/About/About.jsx"
click node_skills "https://github.com/george-sergeev/portfolio/blob/main/src/components/Skills/Skills.jsx"
click node_projects "https://github.com/george-sergeev/portfolio/blob/main/src/components/Projects/Projects.jsx"
click node_contacts "https://github.com/george-sergeev/portfolio/blob/main/src/components/Contacts/Contacts.jsx"
click node_scroll_top "https://github.com/george-sergeev/portfolio/blob/main/src/components/ScrollToTop/ScrollToTop.jsx"
click node_projects_card "https://github.com/george-sergeev/portfolio/blob/main/src/components/Projects/ProjectsCard.jsx"
click node_projects_tech "https://github.com/george-sergeev/portfolio/blob/main/src/components/Projects/ProjectsCardTechnology.jsx"
click node_skills_block "https://github.com/george-sergeev/portfolio/blob/main/src/components/Skills/SkillsBlock.jsx"
click node_header_media "https://github.com/george-sergeev/portfolio/blob/main/src/components/Header/HeaderMedia.jsx"
click node_hero_illus "https://github.com/george-sergeev/portfolio/blob/main/src/components/Hero/HeroIllustration.jsx"
click node_about_illus "https://github.com/george-sergeev/portfolio/blob/main/src/components/About/AboutIllustration.jsx"
click node_skills_illus "https://github.com/george-sergeev/portfolio/blob/main/src/components/Skills/SkillsIllustrations.jsx"
click node_projects_data "https://github.com/george-sergeev/portfolio/blob/main/src/data/projects.json"
click node_skills_data "https://github.com/george-sergeev/portfolio/blob/main/src/data/skills.json"
click node_project_images "https://github.com/george-sergeev/portfolio/tree/main/public/images/projects"
click node_fonts "https://github.com/george-sergeev/portfolio/tree/main/src/assets/fonts"
click node_robots "https://github.com/george-sergeev/portfolio/blob/main/public/robots.txt"
click node_sitemap "https://github.com/george-sergeev/portfolio/blob/main/public/sitemap.xml"
click node_yandex_ver "https://github.com/george-sergeev/portfolio/blob/main/public/yandex_2f54cbe83c417a8b.html"
click node_styles_globals "https://github.com/george-sergeev/portfolio/blob/main/src/styles/globals.css"

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_index_html,node_main_jsx,node_app_jsx toneBlue
class node_home_page,node_about_page,node_contact_page,node_project_page toneAmber
class node_header,node_footer,node_hero,node_about,node_skills,node_projects,node_contacts,node_scroll_top,node_projects_card,node_projects_tech,node_skills_block,node_header_media,node_hero_illus,node_about_illus,node_skills_illus toneMint
class node_projects_data,node_skills_data,node_project_images,node_fonts toneRose
class node_robots,node_sitemap,node_yandex_ver toneIndigo
class node_styles_globals toneTeal
```

## Components

### App Shell

Bootstrap and root application boundary

- [index.html](https://github.com/george-sergeev/portfolio/blob/main/index.html): entry file · HTML entry point for the Vite app · `index.html`
- [main.jsx](https://github.com/george-sergeev/portfolio/blob/main/src/main.jsx): bootstrap · Client-side render bootstrap · `src/main.jsx`
- [App](https://github.com/george-sergeev/portfolio/blob/main/src/App.jsx): root component · Root application composition · `src/App.jsx`

### Pages

Top-level page compositions

- [Home Page](https://github.com/george-sergeev/portfolio/blob/main/src/pages/HomePage/HomePage.jsx): page · Primary landing experience · `src/pages/HomePage/HomePage.jsx`
- [About Page](https://github.com/george-sergeev/portfolio/blob/main/src/pages/AboutPage/AboutPage.jsx): page · Dedicated about route or view · `src/pages/AboutPage/AboutPage.jsx`
- [Contact Page](https://github.com/george-sergeev/portfolio/blob/main/src/pages/ContactPage/ContactPage.jsx): page · Dedicated contact route or view · `src/pages/ContactPage/ContactPage.jsx`
- [Project Page](https://github.com/george-sergeev/portfolio/blob/main/src/pages/ProjectPage/ProjectPage.jsx): page · Dedicated projects route or view · `src/pages/ProjectPage/ProjectPage.jsx`

### UI Components

Reusable layout, section, navigation, and feature components

- [Header](https://github.com/george-sergeev/portfolio/blob/main/src/components/Header/Header.jsx): navigation · Top navigation and responsive menu surface · `src/components/Header/Header.jsx`
- [Footer](https://github.com/george-sergeev/portfolio/blob/main/src/components/Footer/Footer.jsx): layout · Bottom page chrome · `src/components/Footer/Footer.jsx`
- [Hero](https://github.com/george-sergeev/portfolio/blob/main/src/components/Hero/Hero.jsx): section · Introductory landing section · `src/components/Hero/Hero.jsx`
- [About](https://github.com/george-sergeev/portfolio/blob/main/src/components/About/About.jsx): section · Profile and bio section · `src/components/About/About.jsx`
- [Skills](https://github.com/george-sergeev/portfolio/blob/main/src/components/Skills/Skills.jsx): section · Capabilities and tools section · `src/components/Skills/Skills.jsx`
- [Projects](https://github.com/george-sergeev/portfolio/blob/main/src/components/Projects/Projects.jsx): section · Projects listing section · `src/components/Projects/Projects.jsx`
- [Contacts](https://github.com/george-sergeev/portfolio/blob/main/src/components/Contacts/Contacts.jsx): section · Contact and social links section · `src/components/Contacts/Contacts.jsx`
- [Scroll To Top](https://github.com/george-sergeev/portfolio/blob/main/src/components/ScrollToTop/ScrollToTop.jsx): behavior · Resets viewport position on navigation · `src/components/ScrollToTop/ScrollToTop.jsx`
- [Project Card](https://github.com/george-sergeev/portfolio/blob/main/src/components/Projects/ProjectsCard.jsx): card · Reusable project presentation unit · `src/components/Projects/ProjectsCard.jsx`
- [Tech Tags](https://github.com/george-sergeev/portfolio/blob/main/src/components/Projects/ProjectsCardTechnology.jsx): subcomponent · Technology badges for project cards · `src/components/Projects/ProjectsCardTechnology.jsx`
- [Skill Block](https://github.com/george-sergeev/portfolio/blob/main/src/components/Skills/SkillsBlock.jsx): subcomponent · Reusable skills content block · `src/components/Skills/SkillsBlock.jsx`
- [Header Media](https://github.com/george-sergeev/portfolio/blob/main/src/components/Header/HeaderMedia.jsx): responsive nav · Responsive header variant for smaller screens · `src/components/Header/HeaderMedia.jsx`
- [Hero Art](https://github.com/george-sergeev/portfolio/blob/main/src/components/Hero/HeroIllustration.jsx): illustration · Decorative hero illustration · `src/components/Hero/HeroIllustration.jsx`
- [About Art](https://github.com/george-sergeev/portfolio/blob/main/src/components/About/AboutIllustration.jsx): illustration · Decorative about illustration · `src/components/About/AboutIllustration.jsx`
- [Skills Art](https://github.com/george-sergeev/portfolio/blob/main/src/components/Skills/SkillsIllustrations.jsx): illustration · Visual accent for skills section · `src/components/Skills/SkillsIllustrations.jsx`

### Content & Assets

Local data files and static media used by the UI

- [projects.json](https://github.com/george-sergeev/portfolio/blob/main/src/data/projects.json): content data · Project metadata source · `src/data/projects.json`
- [skills.json](https://github.com/george-sergeev/portfolio/blob/main/src/data/skills.json): content data · Skill metadata source · `src/data/skills.json`
- [Project Images](https://github.com/george-sergeev/portfolio/tree/main/public/images/projects): static media · Portfolio images for project cards · `public/images/projects`
- [Fonts](https://github.com/george-sergeev/portfolio/tree/main/src/assets/fonts): static media · Typography assets · `src/assets/fonts`

### Public SEO

Static public files for indexing and verification

- [robots.txt](https://github.com/george-sergeev/portfolio/blob/main/public/robots.txt): seo file · Search crawler instructions · `public/robots.txt`
- [sitemap.xml](https://github.com/george-sergeev/portfolio/blob/main/public/sitemap.xml): seo file · Site URL map for indexing · `public/sitemap.xml`
- [Yandex Verify](https://github.com/george-sergeev/portfolio/blob/main/public/yandex_2f54cbe83c417a8b.html): verification file · Search engine verification asset · `public/yandex_2f54cbe83c417a8b.html`

### Styling

Global design tokens and base styles

- [Global Styles](https://github.com/george-sergeev/portfolio/blob/main/src/styles/globals.css): style system · Shared reset, variables, fonts, and base rules · `src/styles/globals.css`

## Connections

- index.html → main.jsx: loads · Browser entry hands off to the React bootstrap
- main.jsx → App: renders · Bootstraps the root app component
- App → Header: composes · App shell includes shared navigation
- App → Scroll To Top: wraps · Applies navigation scroll behavior
- App → Home Page: shows · Primary default page content
- App → About Page: shows · Secondary about view
- App → Project Page: shows · Projects view
- App → Contact Page: shows · Contact view
- App → Footer: composes · App shell includes shared footer
- Home Page → Hero: includes · Landing page starts with hero section
- Home Page → About: includes · Landing page surfaces bio section
- Home Page → Skills: includes · Landing page surfaces skills section
- Home Page → Projects: includes · Landing page surfaces project preview
- Home Page → Contacts: includes · Landing page surfaces contact links
- About Page → About: centers on · About page reuses the about section
- Project Page → Projects: centers on · Project page uses the projects subsystem
- Contact Page → Contacts: centers on · Contact page reuses contact section
- Header → Header Media: adapts · Responsive header variant for smaller screens
- Hero → Hero Art: uses · Hero text is paired with illustration
- About → About Art: uses · About content is paired with illustration
- Skills → Skill Block: uses · Skills section is organized into blocks
- Skills → Skills Art: uses · Skills section includes visual accents
- Projects → Project Card: uses · Projects section renders reusable cards
- Project Card → Tech Tags: uses · Cards render technology badges
- Projects → projects.json: reads · Projects section consumes local project metadata
- Skills → skills.json: reads · Skills section consumes local skills metadata
- Project Card → Project Images: loads · Project cards use static project imagery
- Projects → Project Images: loads · Project listings rely on shared image assets
- Header → Global Styles: inherits · Shared base styles apply to navigation and shell
- Projects → Global Styles: inherits · Feature sections share global styling foundation
- robots.txt → sitemap.xml: supports · Both files serve site discoverability
- sitemap.xml → Yandex Verify: coexists · Public SEO and verification assets share delivery boundary
