From a8d56a2794364a94e34c0f83f90caba6cd327d07 Mon Sep 17 00:00:00 2001 From: Daniel Ntege Date: Thu, 5 Feb 2026 19:07:11 +0300 Subject: [PATCH 1/2] refactor: remove commented-out code in About and Contact pages, and clean up layout files Signed-off-by: Daniel Ntege --- src/app/[locale]/about/page.tsx | 2 -- src/app/[locale]/contact/page.tsx | 8 ++------ src/app/[locale]/layout.tsx | 3 --- src/app/layout.tsx | 2 -- 4 files changed, 2 insertions(+), 13 deletions(-) diff --git a/src/app/[locale]/about/page.tsx b/src/app/[locale]/about/page.tsx index e288ae13..a3b0486f 100644 --- a/src/app/[locale]/about/page.tsx +++ b/src/app/[locale]/about/page.tsx @@ -35,7 +35,6 @@ export default function AboutPage() { return (
- {/* Hero Background */}
- {/* Decorative images */}
- {/* Decorative lines */} - - {/* Header */} +

@@ -42,13 +40,11 @@ export default function ContactPage() {

- - {/* Content */} +
- {/* Decorative rounds */} Date: Thu, 5 Feb 2026 19:18:23 +0300 Subject: [PATCH 2/2] docs: update README to clarify project structure and deployment process Signed-off-by: Daniel Ntege --- README.md | 32 ++++++++++++++++++++++++++++++-- 1 file changed, 30 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index cfc17140..5c9d27c4 100644 --- a/README.md +++ b/README.md @@ -1,10 +1,10 @@ # Open Elements Website -This repository contains the Open Elements website. +This repository contains the Open Elements website built with Next.js and Tailwind CSS, with legacy Hugo content kept for migration and historical content. ## Architecture (2026) -The project is now a Next.js application with App Router, Tailwind CSS, and `next-intl` for i18n. Legacy Hugo content and templates are still kept in the repo for migration and historical content. +The project is a Next.js application using App Router, Tailwind CSS, and `next-intl` for i18n. Legacy Hugo content and templates are kept in the repo for migration and historical content. ### Runtime layers @@ -58,8 +58,36 @@ pnpm run build pnpm run start ``` +### Lint + +``` +pnpm run lint +``` + ### E2E tests ``` pnpm run test:e2e ``` + +## Repo structure + +``` +src/app Next.js App Router pages & layouts +src/components UI components +src/i18n next-intl routing/messages helpers +locales Translation JSON files +content Legacy Hugo Markdown content +src/layouts Legacy Hugo templates +public Static assets and generated artifacts +react-src Web components source (bundled to public/js) +tests/e2e Playwright specs +``` + +## Web components build + +Custom elements in `react-src` are bundled with esbuild via `react-src/build.mjs` into `public/js`. This output is treated as generated code. + +## Deployment + +Netlify builds run `pnpm install` and `pnpm run build` (see `netlify.toml`).