1. Context
• Company: Artdantech.
• Deliverables: responsive website (Home, Projects, Project details, About, Contact, optional Blog), SEO (Open Graph, JSON‑LD), privacy‑friendly analytics, dark mode, CI/CD, performance (Core Web Vitals).
• Starting point: content (GitHub projects, screenshots, logos), mockups (Figma), and articles in Markdown/MDX.
2. Need
• Clearly present skills, work, and outcomes through case studies with measurable KPIs (contact clicks, time on page).
• Enable simple content updates (MDX / headless CMS) and frictionless deployments (CI/CD).
• Optimize SEO (technical + content), performance, and accessibility to maximize discoverability and drive inbound contact requests.
3. Client / Audience
• Clients looking for proof of delivery and expertise.
• Peers/community (technical articles, shared resources).
• Artdantech, to publish content quickly and track metrics (analytics).
4. Goals
4.1 Functional
• Browse projects (grid + filters) and open a dedicated project detail page (context, goals, stack, results, visuals, links).
• Read articles (MDX) with embedded code and media.
• Send a message via the contact form.
4.2 Technical
• Static generation (SSG) and fast rendering (islands/partial hydration) for excellent performance.
• Optimized images (WebP/AVIF, responsive sizes, lazy loading) and efficient HTTP caching (ETag).
• Complete SEO: meta tags, Open Graph/Twitter Cards, JSON‑LD (Person, Article, Project), sitemap, robots.txt.
• Accessibility (WCAG AA): semantic HTML, contrast, keyboard navigation, visible focus, aria-live for form messages.
• Quality: tests (unit/E2E), linting, PR previews (Preview URLs), Lighthouse/CWV performance budgets.
5. Constraints / Challenges
• Limited time and the need to iterate quickly on content and design.
• Visual consistency (lightweight design system) and high-quality assets (weight/ratio/cropping).
• Privacy compliance (no unnecessary cookies, non-invasive analytics).
• SEO on a custom domain and long-term maintenance (costs, renewals).
6. Process / Methodology
6.1 Analysis
• Audit existing content (projects, results, media), define personas and priorities.
• Site map: Home → Projects → Project detail; Services; About; Contact; Legal notice.
• KPIs: Contact/CV clicks, case study scroll depth, reading time, pages/session, CWV metrics (LCP/FID/CLS).
6.2 Breakdown into GitHub issues
• Project setup + CI/CD + domain + analytics.
• Design system (colors, typography, spacing, UI components: Button, Tag, Card, Nav, Footer).
• Content model (MDX/frontmatter) or headless CMS schema.
• Pages: Home, Projects, Project detail (slug), About, Blog (list + article), Contact (form).
• SEO (meta, JSON‑LD, sitemap/robots, Open Graph), accessibility, performance (images, code splitting).
• Tests (unit/E2E), Lighthouse audits, a11y checks (axe/pa11y).
6.3 Architecture & logic
• Structure (example):
- src/components (reusable UI), src/layouts, src/styles.
- content/projects/*.mdx, content/blog/*.mdx (frontmatter: title, date, tags, stack, images, results).
- Routes: /, /projects, /projects/[slug], /blog, /blog/[slug], /about, /contact.
• Data: MDX + frontmatter or CMS (Sanity/Contentful/Notion) through an adapter; statically generated pages.
• Theme: CSS variables + prefers-color-scheme; persistent toggle (localStorage) and SSR-safe implementation.
• Contact form: submission via a serverless API (email provider) + anti-spam (honeypot/Turnstile).
6.4 Technical choices (rationale)
• SSG (Next.js) + MDX: easy editing, high performance, and excellent technical SEO.
• Tailwind CSS (or CSS Modules) for fast, consistent design system implementation.
• Built-in image processing (optimization + responsive) to reduce LCP.
• Privacy-friendly analytics (Plausible/Umami), cookie-free by default; banner only if required.
• Accessibility built-in from the start (contrast, tab order, ARIA roles).
6.5 Main flows
• Project discovery: Home → Projects → [slug] → CTAs (Visit, GitHub, Contact).
• Article reading: Blog → Article (MDX with TOC, images, code highlighting) → social sharing (Open Graph).
• Contact: form → client/server validation → send → confirmation (aria-live) → email notification.
• Content update: commit MDX → CI → Preview → validation → production (automated deployment).
6.6 Tests & quality
• Unit: UI components (rendering, variants), helpers (date formatting, SEO tags).
• E2E: navigation, form submission, dark mode, custom 404 page.
• Audits: Lighthouse (Perf ≥ 95, A11y ≥ 100, Best Practices ≥ 95, SEO ≥ 95), pa11y/axe, link checker (broken links).
• CI: GitHub Actions (lint, tests, build), PR previews, performance & a11y budgets as quality gates.
7. Analysis
• An MDX-powered SSG offers the best speed/SEO/maintainability ratio for a portfolio while enabling rich case studies (media, interactive components). Separating content from presentation supports fast iteration and future scalability (i18n, more case studies).
8. Technical decisions
• No OpenAPI requirement; focus on technical SEO (sitemap, robots, JSON‑LD). Tools: Next.js + MDX, Tailwind, image optimizer, Plausible/Umami, serverless API for contact, deployment on Vercel/Netlify.
• Alternatives: headless CMS (Sanity/Contentful) for non-technical editing; Algolia for advanced search; RSS for the blog.
9. Resolution logic
• Start with an MVP (Home, Projects, Services, About, Contact), then enrich (Blog, animations, deeper case studies). Measure, iterate (content, SEO, performance), and automate the edit → deploy cycle.
10. Stack used
• Front: Next.js + MDX, React “islands” for targeted interactivity.
• Styling: Tailwind CSS (or CSS Modules + PostCSS).
• Media: image optimization (WebP/AVIF, srcset), SVG icons.
• Form: serverless API (Resend/EmailJS) + anti-spam (honeypot/Turnstile).
• Analytics: Plausible (or Umami).
• Quality: ESLint, Prettier, Vitest/Jest, Playwright/Cypress, axe/pa11y.
• CI/CD: GitHub Actions; hosting on Vercel/Netlify; custom domain (DNS, HTTPS).
11. Final outcome
• Fast, accessible, SEO-ready website with structured case studies and easy content updates (MDX).
• Performance: “Good” Core Web Vitals, Lighthouse ≥ 95, optimized images, minimal bundle.
• Maintainability: lightweight design system, reusable components, smooth edit → deploy pipeline; roadmap options (i18n, headless CMS, search, newsletter).
