How gregorygeorgereinis/portfolio works
Project type and purpose
• This is a frontend‐only personal portfolio website built with Next.js (TypeScript) and the “create-t3-app” stack.
• It serves static and hybrid‐rendered pages (SSG/SSR), using modern UI animations (framer-motion, locomotive-scroll) and Tailwind CSS for styling.
File structure
• Top-level config and metadata:
• next.config.js, tsconfig.json, tailwind.config.ts, postcss.config.cjs
• package.json / pnpm-lock.yaml, .eslintrc.cjs, prettier.config.js
• Public assets:
• public/assets (webm demos, 3D scenes), public/fonts, manifest.json, robots.txt
• Source code:
• src/pages – Next.js pages and custom App (_app.tsx)
• src/components – React components (Container, Footer, Preloader)
• src/components/ui – Reusable UI primitives (button, card, carousel)
• src/lib – Utility functions (utils.ts)
• src/styles – CSS modules + global styles + external font CSS
README for additional insights
• Confirms use of create-t3-app (Next.js + TypeScript + Tailwind CSS).
• Highlights responsive design, customizability, smooth animations (locomotive-scroll, framer-motion).
• Deployment targets: Vercel, Netlify, Docker.
a. Main components
• Developer Codebase
• Build Pipeline (Next.js + Tailwind CSS + PostCSS)
• Deployment Platform (Vercel / Netlify / Docker container)
• CDN / Static Asset Host
• Browser (end user)
• Public Assets (webm, fonts, 3D scenes)
b. Relationships and interactions
• Developer pushes code → CI/CD triggers build
• Build step compiles React/TSX, processes CSS, bundles static assets
• Artifacts deployed to hosting (serverless Next.js functions or static host)
• CDN caches pages and assets
• Browser requests page → CDN or Edge → Next.js runtime (if SSR) or serves static HTML
• Client downloads JS bundles, CSS, fonts, media assets
• UI components (framer-motion, locomotive-scroll) run in browser
c. Architectural patterns
• Component‐based UI (atomic design in src/components/ui)
• Hybrid rendering (SSG for index, SSR on‐demand)
• Static asset serving from public/ via CDN
d. Key technologies/frameworks
• Next.js (routing, SSG/SSR)
• React + TypeScript
• Tailwind CSS + PostCSS
• Framer Motion + locomotive-scroll (animations)
• Vercel/Netlify for deployment