refine: enhance responsive design for footer and facts grid
Deploy / validate-dispatch (push) Successful in 39s
Deploy / scheduled-rebuild-dev (push) Skipped
Deploy / scheduled-rebuild-master (push) Skipped
Deploy / rollback-dev (push) Skipped
Deploy / rollback-master (push) Skipped
Deploy / changes (push) Successful in 5s
Deploy / app-quality (push) Successful in 1m16s
Deploy / secret-scan (push) Successful in 10s
Deploy / security-deps (push) Successful in 15s
Deploy / context (push) Successful in 1s
Deploy / app-image (push) Successful in 1m6s
Deploy / deploy-master (push) Skipped
Deploy / deploy-dev (push) Successful in 14s
Deploy / validate-dispatch (push) Successful in 39s
Deploy / scheduled-rebuild-dev (push) Skipped
Deploy / scheduled-rebuild-master (push) Skipped
Deploy / rollback-dev (push) Skipped
Deploy / rollback-master (push) Skipped
Deploy / changes (push) Successful in 5s
Deploy / app-quality (push) Successful in 1m16s
Deploy / secret-scan (push) Successful in 10s
Deploy / security-deps (push) Successful in 15s
Deploy / context (push) Successful in 1s
Deploy / app-image (push) Successful in 1m6s
Deploy / deploy-master (push) Skipped
Deploy / deploy-dev (push) Successful in 14s
This commit is contained in:
@@ -1,36 +1,89 @@
|
|||||||
# Repository Notes
|
# Repository Notes
|
||||||
|
|
||||||
|
## Repository Access and Gitea MCP
|
||||||
|
|
||||||
|
A Gitea MCP server is available for this repository.
|
||||||
|
|
||||||
|
* Use the Gitea MCP for all repository interactions whenever the required operation is supported.
|
||||||
|
* Use the Gitea MCP to inspect files, branches, commits, pull requests, issues, workflow runs, and repository state.
|
||||||
|
* Make repository changes through the Gitea server rather than creating a separate local clone or working copy.
|
||||||
|
* Do not clone the repository locally unless explicitly instructed to do so.
|
||||||
|
* Do not modify a separate local checkout and push it afterwards when the same operation can be performed through the Gitea MCP.
|
||||||
|
* Before making changes, inspect the current repository state and the files relevant to the task through the Gitea MCP.
|
||||||
|
* Keep changes focused on the requested task and avoid unrelated refactoring.
|
||||||
|
|
||||||
|
## Testing and Validation
|
||||||
|
|
||||||
|
Do not run repository tests, builds, linters, type checks, E2E tests, security scanners, or other validation commands locally.
|
||||||
|
|
||||||
|
The Gitea server and its CI workflows are the authoritative validation environment.
|
||||||
|
|
||||||
|
After making changes:
|
||||||
|
|
||||||
|
1. Commit/push the changes through the Gitea workflow available via MCP.
|
||||||
|
2. Let the Gitea Actions workflows execute the configured checks.
|
||||||
|
3. Inspect the workflow results through the Gitea MCP.
|
||||||
|
4. If a workflow fails, inspect the failing job and its logs, determine the cause, make the required repository changes, and let Gitea run the checks again.
|
||||||
|
5. Continue until the relevant Gitea CI checks pass or a failure requires information or infrastructure outside the repository.
|
||||||
|
|
||||||
|
Do not replace Gitea CI validation with local tests.
|
||||||
|
|
||||||
|
Do not run commands such as:
|
||||||
|
|
||||||
|
* `npm ci`
|
||||||
|
* `npm run lint`
|
||||||
|
* `npm run typecheck`
|
||||||
|
* `npm run test`
|
||||||
|
* `npm run build`
|
||||||
|
* `npm run test:e2e`
|
||||||
|
|
||||||
|
locally unless explicitly instructed by the user.
|
||||||
|
|
||||||
|
When reporting completion, include the relevant Gitea workflow/check status. Do not claim that a change is validated unless the corresponding server-side checks have completed successfully.
|
||||||
|
|
||||||
## Next.js
|
## Next.js
|
||||||
|
|
||||||
This repository uses Next.js 16 with breaking changes relative to earlier versions. Read the relevant guide in `node_modules/next/dist/docs/` before changing framework code and heed deprecation notices.
|
This repository uses Next.js 16 with breaking changes relative to earlier versions. Read the relevant guide in `node_modules/next/dist/docs/` before changing framework code and heed deprecation notices.
|
||||||
|
|
||||||
|
Do not rely solely on remembered behavior from earlier Next.js versions.
|
||||||
|
|
||||||
## Shape
|
## Shape
|
||||||
|
|
||||||
- The Next.js application lives at the repository root and uses the App Router, React 19, TypeScript, and `output: "standalone"`.
|
* The Next.js application lives at the repository root and uses the App Router, React 19, TypeScript, and `output: "standalone"`.
|
||||||
- Pages, `GET /api/events`, and health routes run in one Node.js process.
|
* Pages, `GET /api/events`, and health routes run in one Node.js process.
|
||||||
- Calendar data is fetched at runtime from an external ICS source.
|
* Calendar data is fetched at runtime from an external ICS source.
|
||||||
- TSX content modules live under `src/trip-reports/` and are registered in `src/trip-reports/index.ts`.
|
* TSX content modules live under `src/trip-reports/` and are registered in `src/trip-reports/index.ts`.
|
||||||
|
|
||||||
## Commands
|
## Commands
|
||||||
|
|
||||||
- Install dependencies exactly as CI does: `npm ci`.
|
The following commands document the repository's CI behavior. They are primarily intended to describe what Gitea CI executes, not commands that the agent should run locally.
|
||||||
- Checks: `npm run lint`, `npm run typecheck`, `npm run test`, `npm run build`.
|
|
||||||
- E2E smoke test: `npm run test:e2e`.
|
|
||||||
- Dev server: set `CALENDAR_URL`, then run `npm run dev`.
|
|
||||||
|
|
||||||
## Configuration and assets
|
* Install dependencies exactly as CI does: `npm ci`.
|
||||||
|
* Checks: `npm run lint`, `npm run typecheck`, `npm run test`, `npm run build`.
|
||||||
|
* E2E smoke test: `npm run test:e2e`.
|
||||||
|
* Dev server: set `CALENDAR_URL`, then run `npm run dev`.
|
||||||
|
|
||||||
- `.env.example` documents safe example settings.
|
For agent-driven repository changes, validation must be performed by the Gitea server as described above.
|
||||||
- `CALENDAR_URL` is required at runtime but not during `next build`.
|
|
||||||
- `APP_URL` controls canonical URLs, sitemap, robots, host checks, and the default CORS origin.
|
|
||||||
- Original image sources live in `.media-source/`; generated variants live under `public/images/`.
|
|
||||||
- Use `npm run content:new` for new TSX content modules.
|
|
||||||
|
|
||||||
## CI and deployment
|
## Configuration and Assets
|
||||||
|
|
||||||
- Workflows live in `.gitea/workflows/`.
|
* `.env.example` documents safe example settings.
|
||||||
- CI runs lint, Vitest, typecheck, build, E2E, and security scans.
|
* `CALENDAR_URL` is required at runtime but not during `next build`.
|
||||||
- Deploy builds and scans a configurable container image, deploys with Docker Compose, verifies app/API/health routes, and supports rollback.
|
* `APP_URL` controls canonical URLs, sitemap, robots, host checks, and the default CORS origin.
|
||||||
|
* Original image sources live in `.media-source/`; generated variants live under `public/images/`.
|
||||||
|
* Use `npm run content:new` for new TSX content modules when working in an environment where repository commands have explicitly been permitted.
|
||||||
|
|
||||||
|
Do not commit secrets, production credentials, private API keys, or environment-specific configuration.
|
||||||
|
|
||||||
|
## CI and Deployment
|
||||||
|
|
||||||
|
* Workflows live in `.gitea/workflows/`.
|
||||||
|
* CI runs lint, Vitest, typecheck, build, E2E, and security scans.
|
||||||
|
* Deploy builds and scans a configurable container image, deploys with Docker Compose, verifies app/API/health routes, and supports rollback.
|
||||||
|
* Treat Gitea Actions as the source of truth for whether a change passes repository validation.
|
||||||
|
* Inspect failed workflow jobs through Gitea before attempting a fix.
|
||||||
|
* Do not weaken, skip, remove, or bypass CI checks merely to make a workflow pass unless explicitly requested.
|
||||||
|
* Do not modify deployment, CI, security scanning, or production configuration unless it is part of the requested task.
|
||||||
|
|
||||||
<!-- BEGIN:nextjs-agent-rules -->
|
<!-- BEGIN:nextjs-agent-rules -->
|
||||||
|
|
||||||
|
|||||||
@@ -28,7 +28,8 @@ a:focus-visible,button:focus-visible { outline:3px solid var(--gold-500); outlin
|
|||||||
.municipality-footer { padding-block:3rem; background:#061f30; color:white; } .footer-grid { display:flex; justify-content:space-between; gap:2rem; } .footer-brand { font-size:1.2rem; font-weight:700; margin-bottom:.2rem; } .footer-grid nav { display:flex; flex-wrap:wrap; gap:1.5rem; align-items:center; } .footer-grid a { text-underline-offset:5px; }
|
.municipality-footer { padding-block:3rem; background:#061f30; color:white; } .footer-grid { display:flex; justify-content:space-between; gap:2rem; } .footer-brand { font-size:1.2rem; font-weight:700; margin-bottom:.2rem; } .footer-grid nav { display:flex; flex-wrap:wrap; gap:1.5rem; align-items:center; } .footer-grid a { text-underline-offset:5px; }
|
||||||
.footer-grid nav{max-width:660px;justify-content:flex-end}
|
.footer-grid nav{max-width:660px;justify-content:flex-end}
|
||||||
@media(max-width:980px){ .menu-button{display:inline-flex;align-items:center;gap:.6rem;padding:.6rem;cursor:pointer}.menu-icon{display:grid;gap:4px}.menu-icon i{display:block;width:22px;height:2px;background:currentColor}.primary-navigation{display:none;position:absolute;inset:88px 0 auto;padding:1.3rem max(1.25rem,calc((100vw - 1180px)/2));background:var(--paper);border-bottom:1px solid var(--line);flex-direction:column;align-items:stretch}.primary-navigation[data-open="true"]{display:flex}.primary-navigation a{padding:.6rem 0;font-size:1rem}.municipality-hero__grid{min-height:500px;padding-block:5rem}}
|
@media(max-width:980px){ .menu-button{display:inline-flex;align-items:center;gap:.6rem;padding:.6rem;cursor:pointer}.menu-icon{display:grid;gap:4px}.menu-icon i{display:block;width:22px;height:2px;background:currentColor}.primary-navigation{display:none;position:absolute;inset:88px 0 auto;padding:1.3rem max(1.25rem,calc((100vw - 1180px)/2));background:var(--paper);border-bottom:1px solid var(--line);flex-direction:column;align-items:stretch}.primary-navigation[data-open="true"]{display:flex}.primary-navigation a{padding:.6rem 0;font-size:1rem}.municipality-hero__grid{min-height:500px;padding-block:5rem}}
|
||||||
@media(max-width:700px){.header-bar{min-height:74px}.brand-mark{height:50px}.primary-navigation{top:74px}.municipality-hero{background-position:center center}.municipality-hero__grid{min-height:460px;padding-block:3.7rem}.facts__grid{grid-template-columns:1fr 1fr}.fact:nth-child(odd){border-left:0}.fact{border-bottom:1px solid rgb(255 255 255 / 18%)}.quick-grid{grid-template-columns:1fr}.quick-card{min-height:190px}.footer-grid{flex-direction:column}}
|
@media(max-width:700px){.header-bar{min-height:74px}.brand-mark{height:50px}.primary-navigation{top:74px}.municipality-hero{background-position:center center}.municipality-hero__grid{min-height:460px;padding-block:3.7rem}.facts__grid{grid-template-columns:repeat(2,minmax(0,1fr))}.fact{min-height:132px;border-bottom:0}.fact:nth-child(odd){border-left:0}.fact:nth-child(-n+2){border-bottom:1px solid rgb(255 255 255 / 18%)}.fact:last-child{border-right:0}.quick-grid{grid-template-columns:1fr}.quick-card{min-height:190px}.footer-grid{flex-direction:column}}
|
||||||
|
@media(max-width:360px){.facts__grid{grid-template-columns:1fr}.fact{min-height:112px;border-left:0}.fact:nth-child(-n+2){border-bottom:0}.fact:not(:last-child){border-bottom:1px solid rgb(255 255 255 / 18%)}}
|
||||||
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
|
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;transition:none!important}}
|
||||||
|
|
||||||
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
|
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
|
||||||
|
|||||||
Reference in New Issue
Block a user