EN
Start a project
Back to Projects
solara.kiapmd.dev/en
Solara Home: a Demo Solar Company Site with Its Own Admin Panel (Next.js)

Solara Home: a Demo Solar Company Site with Its Own Admin Panel (Next.js)

November 2026

Next.jsReactTypeScriptTailwind CSSi18nDockerGitHub Actions

Overview

Solara Home is a website for a solar company that does not exist. It is a portfolio demo: the company, the reviews, the projects and the prices are made up, and a strip at the top of every page says so.

What it shows is real: a fast, safe business site in three languages, which the owner can run alone. Every text and picture is changed in an admin panel at /admin, and the change is on the site the moment it is saved.

The home page

Three languages

English, Italian and Persian, each at its own address (/en, /it, /fa). Persian is written right to left, so the whole layout turns around for it: menus, arrows, text and its own font. Dates follow each language too. A visitor who arrives at the bare address lands in the language their browser asks for.

The services page in Persian, right to left

The owner’s side

I built the admin panel into the site myself, instead of adding a separate CMS. It needs no database: texts are saved as small files on the server, and the site reads them straight from memory.

  • Password login, slowed down after wrong tries, with “change password” and a “forgot password” email
  • One form per page, with a tab for each language; lists can be reordered and every language stays in line
  • Picture upload: every picture is opened and saved again as WebP, at most 1800 px wide, so it is small and carries no hidden data. A file that only pretends to be a picture is refused
  • New blog posts, deleting posts, and “reset to original”

Editing a page in the admin panel

Tech Stack

  • Next.js 16 and React 19, written in TypeScript
  • Tailwind CSS 4, pictures in WebP, sized for the screen
  • 25 pictures made with AI (fal.ai) for about $0.17 in total, each checked by eye
  • Docker behind Caddy (the web server that handles HTTPS) on my own server, shipped by GitHub Actions

The rebuild

The first version (2025) needed four programs to run (the site, Strapi CMS, Postgres and Nginx), its pages were full of placeholder pictures and buttons that went nowhere, and its packages had 101 known security problems. I rebuilt it with Claude Code (an AI coding assistant): I set the plan and checked every change.

Before and after, as the site itself shows them

  • Known security problems in the packages: 101 (5 critical) → 0
  • Programs needed to run it: 4 → 1
  • Languages: 2 → 3
  • Buttons and links that went nowhere: 15+ → 0

Lighthouse (Google’s page checker) on the live site, phone setting: speed 91 to 94, and 100 for accessibility, best practices and SEO.

  • Feels quick on a slow line. A click shows a loading sun at once, and pictures show a soft glow until they arrive, so a visitor never wonders if the click worked.
  • On my own server. The site runs in a small, locked-down Docker box with hard limits on memory and CPU. I tested it by asking for every picture size at once: it stayed under half of its memory limit.

Outcome

  • A three-language business site the owner can edit alone, with no database
  • Right-to-left Persian that looks made for it, not flipped as an afterthought
  • No known security problems, and one small program to run instead of four
  • Honest content: a clearly fictional company, with a demo note on every page