# tej-carpenter/portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/tej-carpenter/portfolio
- Repository: https://github.com/tej-carpenter/portfolio

## Overview

This repository is a static personal portfolio site with a small content-data layer. The main goal is to present profile, projects, certificates, contact details, and a resume through a set of HTML pages, with shared styling and client-side rendering.

1. **Page layer**
   The site is split into separate top-level pages: `index.html`, `projects.html`, `certificates.html`, and `contact.html`. This suggests a traditional multi-page portfolio rather than a SPA. `template.html` is likely a reusable scaffold or working template for new pages.

2. **Shared presentation layer**
   `css/style.css` provides the common visual system across all pages. Because the repository has only one stylesheet, the architecture is centered on consistent global styling rather than page-specific CSS modules.

3. **Client-side behavior**
   `js/script.js` is the only JavaScript entrypoint and likely handles dynamic rendering and page interactions. Its main architectural role is to connect static page shells to structured content in the `data/` folder.

4. **Content/data separation**
   The portfolio content is not hardcoded entirely in the HTML. Instead, `data/projects.json` and `data/certificates.json` act as content sources for the Projects and Certificates sections. This is an important boundary: structure and styling live in HTML/CSS, while repeatable content is externalized in JSON.

5. **Data flow**
   The likely runtime flow is: page loads → `script.js` fetches or reads the JSON files → script transforms that data into cards/entries → content is injected into the relevant page containers. That means the site is static at deploy time, but content presentation is data-driven at runtime in the browser.

6. **Portfolio content model**
   Projects and certificates are the two structured collections. The README explicitly says these sections are “pulled from” the JSON files, so the architecture supports easy maintenance by editing data records instead of changing page markup.

7. **Media and asset boundaries**
   Visual assets are mostly remote images hosted on Cloudinary, while the resume is stored locally at `docs/resume.pdf`. This means the repo itself is not responsible for image storage, but it does own the downloadable PDF asset.

8. **Navigation and user-facing sections**
   The site is organized around portfolio navigation: home/about, projects, certificates, contact, and resume. The contact page includes external profile links, so the repo acts as a link hub to third-party platforms rather than integrating them deeply.

9. **Technology profile**
   The implementation is lightweight and browser-native: HTML, CSS, and vanilla JavaScript, with JSON as the content format. There is no evidence in this repo of a build system, framework runtime, backend service, or database.

10. **Operational boundary**
   Because everything here is static, deployment is straightforward: serve the files as-is from a static host. The only runtime dependency is the browser plus network access for remote images and external profile links.

11. **How to diagram it**
   A good architecture diagram would show: browser pages on the left, shared CSS/JS in the middle, and JSON content files feeding the JS renderer. External boundaries should include Cloudinary image hosting, GitHub/LinkedIn/LeetCode/Kaggle/HackerRank links, and the local PDF resume asset.

12. **Overall structure**
   In short, this is a content-driven static portfolio with clear separation between presentation, dynamic data, and external references. The repo is optimized for simple maintenance and presentation consistency rather than application complexity.

Main entry points: [`js/script.js`](https://github.com/tej-carpenter/portfolio/blob/main/js/script.js) (Renderer), [`contact.html`](https://github.com/tej-carpenter/portfolio/blob/main/contact.html) (Contact), [`template.html`](https://github.com/tej-carpenter/portfolio/blob/main/template.html) (Template), [`index.html`](https://github.com/tej-carpenter/portfolio/blob/main/index.html) (Home)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pages["Pages"]
  node_index_html["Home<br/>page<br/>[index.html]"]
  node_projects_html["Projects<br/>page<br/>[projects.html]"]
  node_certificates_html["Certificates<br/>page<br/>[certificates.html]"]
  node_contact_html["Contact<br/>page<br/>[contact.html]"]
  node_template_html["Template<br/>scaffold<br/>[template.html]"]
end

subgraph group_frontend["Frontend"]
  node_style_css["Styles<br/>[style.css]"]
  node_script_js["Renderer<br/>client script<br/>[script.js]"]
end

subgraph group_content["Content"]
  node_projects_json["Projects data<br/>content json<br/>[projects.json]"]
  node_certificates_json["Certificates data<br/>content json<br/>[certificates.json]"]
  node_resume_pdf["Resume<br/>pdf asset<br/>[resume.pdf]"]
end

subgraph group_external["External"]
  node_browser(("Browser<br/>runtime"))
  node_cloudinary[("Images<br/>remote media")]
  node_social_links(("Profiles<br/>external links"))
end

node_browser -->|"loads"| node_index_html
node_browser -->|"loads"| node_projects_html
node_browser -->|"loads"| node_certificates_html
node_browser -->|"loads"| node_contact_html
node_index_html -->|"uses"| node_style_css
node_projects_html -->|"uses"| node_style_css
node_certificates_html -->|"uses"| node_style_css
node_contact_html -->|"uses"| node_style_css
node_index_html -->|"runs"| node_script_js
node_projects_html -->|"runs"| node_script_js
node_certificates_html -->|"runs"| node_script_js
node_contact_html -->|"runs"| node_script_js
node_script_js -->|"reads"| node_projects_json
node_script_js -->|"reads"| node_certificates_json
node_script_js -->|"embeds"| node_cloudinary
node_contact_html -->|"links"| node_social_links
node_contact_html -->|"downloads"| node_resume_pdf
node_template_html -.->|"scaffolds"| node_index_html
node_template_html -.->|"scaffolds"| node_projects_html
node_template_html -.->|"scaffolds"| node_certificates_html
node_template_html -.->|"scaffolds"| node_contact_html

click node_index_html "https://github.com/tej-carpenter/portfolio/blob/main/index.html"
click node_projects_html "https://github.com/tej-carpenter/portfolio/blob/main/projects.html"
click node_certificates_html "https://github.com/tej-carpenter/portfolio/blob/main/certificates.html"
click node_contact_html "https://github.com/tej-carpenter/portfolio/blob/main/contact.html"
click node_template_html "https://github.com/tej-carpenter/portfolio/blob/main/template.html"
click node_style_css "https://github.com/tej-carpenter/portfolio/blob/main/css/style.css"
click node_script_js "https://github.com/tej-carpenter/portfolio/blob/main/js/script.js"
click node_projects_json "https://github.com/tej-carpenter/portfolio/blob/main/data/projects.json"
click node_certificates_json "https://github.com/tej-carpenter/portfolio/blob/main/data/certificates.json"
click node_resume_pdf "https://github.com/tej-carpenter/portfolio/blob/main/docs/resume.pdf"

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_projects_html,node_certificates_html,node_contact_html,node_template_html toneBlue
class node_style_css,node_script_js toneAmber
class node_projects_json,node_certificates_json,node_resume_pdf toneMint
class node_browser,node_cloudinary,node_social_links toneRose
```

## Components

### Pages

Top-level site pages and reusable HTML scaffold

- [Home](https://github.com/tej-carpenter/portfolio/blob/main/index.html): page · Landing page for profile and overview · `index.html`
- [Projects](https://github.com/tej-carpenter/portfolio/blob/main/projects.html): page · Projects listing page · `projects.html`
- [Certificates](https://github.com/tej-carpenter/portfolio/blob/main/certificates.html): page · Certificates listing page · `certificates.html`
- [Contact](https://github.com/tej-carpenter/portfolio/blob/main/contact.html): page · Contact and profile links page · `contact.html`
- [Template](https://github.com/tej-carpenter/portfolio/blob/main/template.html): scaffold · Reusable HTML starter scaffold · `template.html`

### Frontend

Shared styling and client-side rendering

- [Styles](https://github.com/tej-carpenter/portfolio/blob/main/css/style.css): stylesheet · Shared visual system for the site · `css/style.css`
- [Renderer](https://github.com/tej-carpenter/portfolio/blob/main/js/script.js): client script · Browser-side content loading and page behavior · `js/script.js`

### Content

Structured portfolio data and document asset

- [Projects data](https://github.com/tej-carpenter/portfolio/blob/main/data/projects.json): content json · Project records consumed by the renderer · `data/projects.json`
- [Certificates data](https://github.com/tej-carpenter/portfolio/blob/main/data/certificates.json): content json · Certificate records consumed by the renderer · `data/certificates.json`
- [Resume](https://github.com/tej-carpenter/portfolio/blob/main/docs/resume.pdf): pdf asset · Downloadable resume document · `docs/resume.pdf`

### External

Remote assets and outbound profile destinations

- **Browser**: runtime · Static site execution environment
- **Images**: remote media · Externally hosted portfolio images
- **Profiles**: external links · Outbound links to GitHub and other profiles

## Connections

- Browser → Home: loads · User opens the home page
- Browser → Projects: loads · User opens the projects page
- Browser → Certificates: loads · User opens the certificates page
- Browser → Contact: loads · User opens the contact page
- Home → Styles: uses · Home page shares global styles
- Projects → Styles: uses · Projects page shares global styles
- Certificates → Styles: uses · Certificates page shares global styles
- Contact → Styles: uses · Contact page shares global styles
- Home → Renderer: runs · Home page initializes client behavior
- Projects → Renderer: runs · Projects page initializes client behavior
- Certificates → Renderer: runs · Certificates page initializes client behavior
- Contact → Renderer: runs · Contact page initializes client behavior
- Renderer → Projects data: reads · Renderer pulls project data
- Renderer → Certificates data: reads · Renderer pulls certificate data
- Renderer → Images: embeds · Pages display remotely hosted images
- Contact → Profiles: links · Contact page points to external profiles
- Contact → Resume: downloads · Contact page exposes the resume asset
- Template → Home: scaffolds · Template informs page structure
- Template → Projects: scaffolds · Template informs page structure
- Template → Certificates: scaffolds · Template informs page structure
- Template → Contact: scaffolds · Template informs page structure
