~/dev.log

cd ..

Building a Dual-Persona Site

2025-12-30•#Angular#Architecture#Tailwind#AI#Agentic#Antigravity#Web Development

Architecting a single Angular app for two distinct audiences

Photographers typically require a visual portfolio. Developers typically maintain a technical blog. But what happens when you are a developer who shoots photos, or a photographer who writes code?

Often, the solution is to force both interests into a single, unified brand identity. A beige compromise that serves neither audience well. For this site, I wanted something different. I have two distinct interests that serve completely different purposes, and rather than blending them, I decided to lean into the split:

  1. The Photographer: Obsessed with golden hour, natural earth tones, and the silence of the bushveld.
  2. The Developer: Obsessed with terminal neon, monospaced fonts, and the efficient hum of a well-optimized build.

So, rather than trying to mash them into a beige middle ground, I built a "dual-persona" site. One app, two completely distinct worlds.

The Tech Stack (Or: "Ooh, Shiny")

This project wasn't just about putting photos online; it was a gym for keeping pace with the rapid evolution of the Angular ecosystem. While the "shiny new toy" appeal is real, the core motivation is professional: staying current with the latest developments in a sound, enterprise-grade framework that powers a massive portion of the corporate web.

I usually make architectural decisions based on long lasting stability and maintainability, but here, the primary ADR (Architectural Decision Record) driving factor was to strictly use the latest available features to learn and keep up to date with the ecosystem.

Why Angular?

I wanted to get my hands dirty with the modern Renaissance of Angular. Specifically:

  • Native Tailwind Integration: No more complex PostCSS setups words. It just works now, and it's beautiful.
  • Signals: The reactivity war is over, and fine-grained reactivity won. Using Signals for state management (like the filter bar in the gallery) feels so much more intuitive than the RxJS gymnastics of the past.
  • Markdown: I needed a way to write these posts quickly without building or hosting a CMS. ngx-markdown combined with refined typography styles made this effortless.
  • SSG (Static Site Generation): Performance is non-negotiable. The site generates static HTML at build time, meaning the "Photography" side loads images instantly, and the "Dev" side loads zero Javascript until it's needed.

The AI Co-Pilot

Following Devoxx 2023, there was a surge of interest in AI-driven development. I have been actively exploring how Large Language Models (LLMs) and vision models can be leveraged across various projects from simplifying operational reporting, to automating the digital darkroom.

  • Building vs. Consuming: I have spent a good amount of time playing with custom Model Context Protocol (MCP) and recently the Agent to Agent (A2A) integrations. For this project. Here I am exploring the use of web-development mcp servers—using Antigravity to drive the Angular CLI and Chrome DevTools directly.
  • Agentic Coding: You are looking at the result of playing with Google's "Antigravity" agentic coding (hello, world!). It is awesome to outsource the boilerplate and boring mess to AI and get faster turnaround in ideation.
  • Controlled Chaos: Interestingly, wild hallucinations can sometimes lead to valid "out-of-the-box" thinking that a you may miss due to your own "context blindness". The challenge lies in managing the context strictly enough to keep the agent on track, while leaving just enough wiggle room for that creativity to spark, and allowing you to also leverage the agent to challenge your own assumptions.
  • The Review Reality: While these code generators are improving at a breakneck pace, they are not magic wands. As with any generative content, the output requires strict review. Without a human architect ensuring quality, it is all too easy for a codebase (or a blog post) to become generic, nonsensical, and void of personality.
  • Refactoring & DRY: A perfect example of this collaboration happened when we caught some duplicated logic in the HomeComponent. A quick "hey, why aren't we using the service?" prompt led to a refactor that centralized the logic, reduced technical debt, and ensured a single source of truth for the gallery state. AI writes the code, but the human sets the standard.

Future Plans

The dual-persona concept works, but I'm not done tinkering.

Next up, I want to investigate properly unifying Tailwind and Angular Material themes so I can have the best of both worlds (utility-first styling + accessible robust components). I'm also eyeing WebAssembly (WASM) for some client-side image processing on the photography page. Because why upload a 20MB file when I can shrink it in the browser first?

For now, welcome to my two worlds. Click "Portfolio" for the calm, or stay here in the terminal for the code.