diff --git a/docs/CURRENT_STATE.md b/docs/CURRENT_STATE.md index e18d75d..1951448 100644 --- a/docs/CURRENT_STATE.md +++ b/docs/CURRENT_STATE.md @@ -1,24 +1,23 @@ # BortStack current state -Updated 2026-11-10. BS-001 Complete and merged into codex at 5226596. Group BS-002–004 implemented on separate stacked local task branches/worktrees; no group merge/push/deployment. +Updated 2026-11-10. BS-001 Complete/merged into codex at 5226596. BS-002–004 remain a local unmerged stack; Captain rejected BS-004 visual fidelity after functional testing. Current accepted correction: BS-011 at `/home/rob/projects/bortstack/.task-worktrees/bs-011`, branch bs-011, based on bs-004/4f3b75b. Changes uncommitted; no merge/deploy. -## Implemented candidate (bs-004 includes BS-002 and BS-003) +## Homepage correction -- Public marketing router with four-link responsive navigation and no mounted AuthProvider or account pages. Services/Projects/case-study/About/Contact/Privacy are honest noindex placeholders pending their tasks. Contact has no form yet. -- Exact approved palette tokens copied unchanged, dark default, persistent optional light before React load, keyboard theme toggle and safe behavior with denied storage. Plain text logo visibly labelled Logo pending. -- Approved homepage section composition: one hero CTA, restrained decorative engineering illustration, four service summaries, exactly one marked featured-project/media slot, three grounded qualities and closing contact invitation. Genuine master logo and project imagery still missing; no fake screenshot or replacement B created. -- Inherited backend/account source remains provisional/unchanged. API Admin independent. Static SEO/legal/contact/backend decoupling and production topology remain later tasks. +Live before screenshot at reference viewport 1024×1536 measured 2133px full-page height, 99px header and 28px gutters. Corrected full page 1557px (includes required understated footer), 67px header, 56px gutters. Hero heading scale/wrap aligned, sections repositioned, service tiles/icons enlarged, extraneous service arrows/CTA eyebrow removed, featured slot matched to about 507×267, closing panel x35/y1288/w954/h205 (reference approximately35/1287/954/203). Theme control follows compact two-icon pill; persistent/storage-safe behavior retained. Poppins self-hosted with OFL as closest visual approximation; exact reference typeface unspecified. + +The unrelated CSS code illustration is removed. Original authentic logo, standalone approved laptop/workspace hero art, and authorized featured-project screenshot/details are absent. Correct placement is reserved with explicit asset placeholders, not fabricated artwork or fake screenshots. Exact approved palette tokens unchanged; darker pixels in reference do not override written palette. Full fidelity remains asset-blocked and Captain accepted homepage composition/manual testing on 2026-11-10; missing assets remain an acknowledged finalization gate. + +Evidence: docs/visual-qa/bs-011/ contains audit, before, after at exact viewport and full page, side-by-side comparison, tablet768/mobile390/narrow320/light1024 screenshots and measured geometry. Iterated and visually inspected; no runtime errors/HTTP failures/overflow in captured layouts. Minor icon/font/gradient differences remain documented; footer retained though reference does not show one. ## Verification -Group candidate: lint, 29 unit tests, Vite production build, all 38 desktop/mobile browser checks passed. Includes 320/768/1440 width checks, CTA navigation, no public session API requests, mobile nav, keyboard skip link, both-theme axe diagnostics, persistent theme, denied storage and stored preference before React. Desktop/mobile dark/light full-page screenshots inspected; light mobile-menu icon corrected. No formal WCAG certification claimed. +Lint, 29 unit tests, final Vite build passed. 38 existing desktop/mobile Playwright checks and 2 new reference-coordinate checks passed. Final 8 affected viewport/reference checks passed again after 320px heading-wrap/tablet row-gap fixes. Both-theme axe, theme persistence/before React/denied storage, keyboard/mobile navigation and CTA links preserved. Backend unchanged, tests not rerun. No packages/lockfile changed; fonts added as licensed static assets. Inherited 10 npm audit alerts remain separate existing risk. -Actual project-root testtask TASK-004 reached ready: exact-state snapshot, Docker builds, disposable SQLite migrations, frontend/direct+proxied API readiness, real headless Firefox and exit 0. Owned task resources removed. Container images cached. Final review snapshots refreshed after context updates. Normal graphical command remains ./scripts/testtask.sh TASK-004, Ctrl-C to stop. +Actual root `./scripts/testtask.sh TASK-011` smoke reached ready with exact snapshot, Docker builds, disposable migrations, direct/proxied HTTP and real headless Firefox; exit 0. Prior TASK-004 containers occupied ports; removed only that project following Captain’s test-complete confirmation. Final TASK-011 containers/network cleanup checked; images/snapshot retained. -No dependencies added or lockfile changed. Existing host Node located via explicit path; locked frontend dependencies installed locally for checks (ignored). npm audit reported 10 inherited alerts: 5 moderate/3 high/2 critical. Backend suites not rerun because no backend behavior changed. +## Scope and gate -## Review location and assets +No Services/Projects/About/Contact implementation proceeded; existing placeholders unchanged. API Admin independent; backend/production infrastructure untouched. Root codex still BS-001, with pre-existing untracked docs/references image copies preserved untouched (byte-identical to canonical assets). Stop at homepage composition screenshot review. BS-011 composition/manual testing accepted; commit/integration remains pending explicit authorization before final Complete. Final asset fidelity needs original approved artwork, then Captain approval before secondary-page reconciliation. -Integration codex is clean at BS-001. bs-002 ea28637, bs-003 2a4ffe1 and bs-004 local review commit form a dependency stack. Per-task worktrees under .task-worktrees/. Captain review/acceptance required before group merge; BS-005+ not started. - -Authentic approved master logo/light board, authorized portfolio screenshot and featured-project choice remain outstanding. Domain/email/legal/provider/hosting decisions remain unverified. The code-native illustration is decorative; featured work explicitly pending. +Captain confirmed task acceptance on 2026-11-10. Task-owned test containers/network cleaned after that confirmation. Existing branch/worktree and screenshot evidence retained; no next-page work or integration performed. diff --git a/docs/HANDOFF.md b/docs/HANDOFF.md index 2754868..c49ea9a 100644 --- a/docs/HANDOFF.md +++ b/docs/HANDOFF.md @@ -1,29 +1,32 @@ -# BortStack group handoff +# BS-011 homepage fidelity handoff -Replaceable supplementary snapshot, 2026-11-10. Captain explicitly authorized BS-001 commit/merge and group BS-002–004 engagement. BS-001 merged into codex at 5226596; no group merge/push/deploy authorized. +Replaceable supplementary snapshot, 2026-11-10. Captain ordered homepage-only fidelity correction after rejecting BS-004’s visual match. No secondary-page work, commit, merge, push or production authorization. -## Review candidate +## Candidate and commands -Separate dependent worktrees/branches: bs-002 at .task-worktrees/bs-002 (ea28637), bs-003 at .task-worktrees/bs-003 (2a4ffe1), bs-004 at .task-worktrees/bs-004 (combined final review candidate). Local task commits isolate route/navigation, theme/system, homepage changes. Review each task against its preceding branch; final candidate includes all three. Integration root remains codex at BS-001, clean. +Source branch bs-011; worktree `/home/rob/projects/bortstack/.task-worktrees/bs-011`; based on unmerged bs-004/4f3b75b. Existing task branches intact; integration codex remains BS-001/5226596. Changes uncommitted. Root pre-existing untracked docs/references copies left untouched. -## Captain manual test — run from project folder +Run from project folder: ```bash -./scripts/testtask.sh TASK-004 +./scripts/testtask.sh TASK-011 ``` -Opens http://127.0.0.1:18081/ in default Firefox; keep terminal running, Ctrl-C stops owned containers/network/browser. Root dispatcher selects exact bs-004 worktree and refreshes snapshot automatically. TASK-002 and TASK-003 can inspect earlier task candidates individually. Fixed ports mean one test session at a time. No account/login required; test email disabled and disposable SQLite only. +This selects corrected homepage candidate and rebuilds an exact test snapshot. Opens Firefox at http://127.0.0.1:18081/; Ctrl-C stops its owned runtime. Shared test ports 15001/18081 allow one session. TASK-004 prior test leftovers were cleaned after Captain confirmed its test complete. TASK-011 real snapshot/Docker/migrations/frontend/direct+proxied API/headless Firefox smoke passed with exit 0; resources cleaned after smoke. Testtask still prints inherited “starter” label; actual selected source is BS-011. No workflow interface changes. -Check: homepage section layout/spacing against approved reference; mobile nav; dark/light toggle and persistence after reload; hero/closing contact and Services/Projects links. Contact, Services, About, Projects/case studies and Privacy intentionally show honest placeholders pending later tasks. Logo pending and featured screenshot pending are intentional, not invented final assets. Confirm visual acceptance before requesting group merge. +## Screenshot review -For a ChatGPT handoff ZIP of this unmerged candidate run `./scripts/create-chatgpt-snapshot.sh` from the bs-004 worktree; root exports only current codex checkout, per existing-project convention. Runtime snapshot creator is scripts/create-test-snapshot.py; distinct from ZIP export. +- docs/visual-qa/bs-011/reference-comparison.png — approved left, live corrected right, 1024×1536 viewport each. +- docs/visual-qa/bs-011/after-1024-viewport.png — exact reference dimensions. +- docs/visual-qa/bs-011/after-1024-full.png — full 1557px page including footer. +- before-1024.png, AUDIT.md, measurements.json and tablet/mobile/narrow/light captures provide evidence. -## Evidence +Original candidate: 2133px height/header99/gutters28. Correction: 1557/header67/gutters56; featured slot about 507×267; closing panel 954×205 at x35/y1288. Heading wraps/scale and section rhythm now align much more closely. Generic invented code-panel hero removed; actual approved laptop artwork missing, explicit placeholder reserves location. Exact logo and genuine featured-project media also missing and labelled. Do not claim full visual completion until authentic assets and Captain acceptance. Poppins is self-hosted, licensed typographic approximation; reference has no specified typeface. -Final candidate lint, 29 unit tests, production build and all 38 desktop/mobile Playwright checks passed. Browser matrix includes narrow 320px/tablet768/desktop1440, route/CTA behavior, zero public account requests, mobile nav, skip link, both-theme automated contrast, keyboard toggling, storage denial, preference before React and reload/navigation persistence. Four full-page dark/light desktop/mobile screenshots inspected. Found/fixed light mobile menu icon and CTA role semantics during QA. +## Verification and next gate -Actual root testtask TASK-004 smoke reached ready with exact source snapshot, Docker build/migrations, direct/proxied API and frontend HTTP readiness plus real headless Firefox. Exit 0 and owned-resource cleanup verified. Captain graphical manual acceptance pending. No backend suites rerun (unchanged). npm audit reports 10 inherited lockfile alerts (5 moderate/3 high/2 critical); no dependencies/lockfile changed. +Lint, 29 unit tests, final Vite build passed. 38 existing browser checks plus 2 new reference-coordinate checks passed; 8 affected checks reran after final narrow/tablet corrections. Screenshot matrix 1024/768/390/320/light1024 has no overflow, page errors or HTTP 400+ responses. Screenshots inspected; desktop composition anchors checked against reference. Existing navigation/theme/keyboard/contrast checks passed. Backend unchanged; suites not rerun. Static fonts/license added, no packages/lockfile changed; inherited 10 npm alerts remain. -## Gates +CURRENT_STATE/TASKS and visual audit updated. Final test snapshots refreshed after context changes. BS-004 visual acceptance reopened; Captain approved BS-011 homepage composition/manual testing on 2026-11-10 with "nice. task complete". Commit/integration remains pending explicit authorization; final Complete follows that gate. Missing authentic assets remain disclosed finalization work. Do not begin secondary pages or merge without further orders. Existing legal/contact/static SEO/portfolio permissions remain later scope. -BS-002–004 implementation-ready, not Complete or merged. Authentic logo/light board and genuine featured-project media/permission remain asset-finalization gates; text/media placeholders are explicit. BS-005+ remain Proposed and untouched. No production actions. Refresh context and exact snapshots after further edits; no development inside test snapshot copies. +Acceptance/cleanup: Captain composition review passed. Removed only bortstack-testtask-011 containers/network after testing confirmation. Keep uncommitted candidate, branch/worktree, screenshots and snapshot for authorized integration. No commit/merge/push/deploy performed. diff --git a/docs/TASKS.md b/docs/TASKS.md index b9812a3..f4ead6c 100644 --- a/docs/TASKS.md +++ b/docs/TASKS.md @@ -29,7 +29,7 @@ Branch/worktree: bs-003 / .task-worktrees/bs-003. Unmerged. Exact logo and compa ## BS-004 — Approved homepage composition -Status: Implementation-ready with approved asset placeholders; Captain manual acceptance/merge pending. Based on BS-003; branch bs-004 / .task-worktrees/bs-004 contains the combined candidate. +Status: Reopened — technical checks passed, but Captain rejected visual fidelity. BS-011 corrects the homepage before any acceptance/merge. Based on BS-003; bs-004 remains the prior unmerged candidate. Objective: implement the spacious approved homepage layout and density. Scope: split hero and one primary Discuss a Project link; decorative code-native illustration; four service summaries; exactly one featured-work slot; three grounded approach points; closing contact invitation; responsive styling and tests. Includes narrowly scoped mobile-menu icon fix identified during combined visual QA. Non-goals: invented master logo/project screenshots/claims; BS-005+ page content and contact functionality; production launch. @@ -50,6 +50,23 @@ Deviation/asset gate: reference photograph replaced by restrained decorative CSS ## Lifecycle and constraints -Proposed → Accepted/scoped → In progress → Implementation-ready → Captain/manual acceptance and authorized integration → Complete. Green checks/local commits do not authorize merge or deployment. No automatic continuation beyond BS-004. Missing brand masters/portfolio permissions and unverified legal/domain/email/hosting remain launch gates. +Proposed → Accepted/scoped → In progress → Implementation-ready → Captain/manual acceptance and authorized integration → Complete. Green checks/local commits do not authorize merge or deployment. The latest mission authorizes BS-011 homepage correction only; no secondary-page continuation before Captain approval. Missing brand masters/portfolio permissions and unverified legal/domain/email/hosting remain launch gates. Inherited npm lockfile reports 10 audit alerts (5 moderate, 3 high, 2 critical). No dependencies added or lockfile changed; follow-up requires separate scope. No claim of full WCAG compliance or production readiness. + + +## BS-011 — Homepage visual fidelity reconciliation + +Status: Captain accepted homepage composition/manual testing on 2026-11-10 ("nice. task complete"). Commit/integration pending explicit authorization; final Complete status follows integration. Missing approved artwork remains an acknowledged finalization gate. Accepted/engaged by Captain’s visual-fidelity mission, 2026-11-10. Branch bs-011, worktree .task-worktrees/bs-011, based on bs-004/4f3b75b. No commit/merge authorized. +Objective: correct the existing homepage against the approved reference as composition, not inspiration. +Scope: pre-edit live screenshot/audit at 1024×1536; homepage proportions/type/spacing/illustration placement; homepage header/theme control/footer styling as needed; repeated same-viewport screenshots and tablet/mobile verification; preserve working navigation/theme. +Non-goals: redesign, invented logo or fake project screenshot, other page implementation, production, merge. Do not proceed to Services/Projects/About/Contact until corrected homepage approval. +Acceptance: measured comparison shows closely aligned header/gutters/hero/section positions/type scale/cards/buttons/closing panel; explicit missing-asset differences; working theme/navigation and no responsive overflow/runtime regressions; updated screenshot supplied for Captain review. Full visual completion requires missing essential assets and Captain acceptance. +Dependencies: original approved logo/light board, standalone approved laptop hero art, genuine approved featured screenshot/details are absent. services-concept.png.png is absent (probable duplicate-name typo); five distinct canonical references inspected. Root docs/references copies match canonical images and remain untouched. +Validation: live Chromium before/after 1024px captures; measured landmarks and visual comparison; 320px/768px/mobile/tablet screenshots; both themes, existing lint/unit/build/browser regression, real testtask snapshot/runtime. +BS-004 visual acceptance is reopened: prior technical checks passed but Captain rejected fidelity. BS-002/003 remain unmerged; no other page work authorized. + +BS-011 result: before 2133px full height at 1024×1536; after 1557px including understated footer (reference 1536). Header 67px, main gutters 56px, featured slot about 507×267, closing panel x35/y1288/w954/h205 versus reference around x35/y1287/w954/h203. Heading line-break/scale, service tiles/type, section alignment and CTA geometry corrected over screenshot iterations; generic CSS code-panel replacement removed. Poppins self-hosted under included OFL to approximate unspecified reference typeface, no runtime font vendor/dependency. +Validation: lint, 29 unit tests, final Vite build; 38 existing desktop/mobile browser checks plus 2 new reference-coordinate checks passed. After final narrow/tablet fixes, 8 affected viewport/reference checks passed again. Screenshot captures at 1024/768/390/320 and light 1024: no overflow, page errors or HTTP 400+ responses. Desktop/tablet/mobile/light screenshots and reference comparison inspected. Actual project-root TASK-011 snapshot/Docker/HTTP/real-headless-Firefox smoke reached ready / exit 0; TASK-004 leftovers cleaned only after Captain’s prior test-complete confirmation. Final snapshot refreshed after context updates. No backend behavior/tests changed. No commit/merge/deploy. + +Captain acceptance update (2026-11-10): homepage composition approved with the disclosed asset placeholders. This supersedes the pending composition-review gate, not the requirement to supply authentic assets before final publication. No commit/merge or secondary-page implementation inferred. diff --git a/docs/visual-qa/bs-011/AUDIT.md b/docs/visual-qa/bs-011/AUDIT.md new file mode 100644 index 0000000..b84970a --- /dev/null +++ b/docs/visual-qa/bs-011/AUDIT.md @@ -0,0 +1,32 @@ +# BS-011 homepage visual audit + +Before code changes: launched existing bs-004 with Vite and captured before-1024.png at Chromium viewport 1024×1536, DPR 1, dark default. No page errors. Approved reference assets/references/home-approved-direction.png is 1024×1536. + +| Area | Current live page | Approved reference / correction | +| --- | --- | --- | +| Overall height | 2133px | Reference 1536px; excessive accumulated vertical space | +| Header | 99px; full-width bottom rule; text logo small; round single-icon toggle | Approximately 67px, inset rule, larger lockup space, compact two-icon pill and divider | +| Gutters | 28px at 1024 | About 56px main content; about 35px outer rule/closing panel | +| Hero | From y99 to609; 47px condensed fallback heading; top-heavy gap | Eyebrow y118; heading y160 around54px; supporting text y280; action y374; services heading y502 | +| Hero media | Generic CSS code panel and floating badge | Laptop/workspace image on right, blended into background. Standalone approved art missing; remove invented code panel, reserve correct footprint with explicit asset placeholder | +| Services | Heading y640; smaller icons/type, arrows added | Heading y502; roughly75px icon tiles/40px icons; larger20px headings/16px body; no extra row arrows | +| Featured work | Heading around1023, media ~313px tall; big provisional title | Heading y787; media x56 y814 ~507×267; right text x610. Keep honest missing-media placeholder, align its footprint | +| Why section | Around y1440, undersized headings/icons | Label y1127, content y1165; three compact columns and dividers | +| Closing CTA | y1651 height315; extra eyebrow and oversized gap | x35 y1287 width954 height203; no extra eyebrow; restrained two-plane geometry | +| Footer | y2038 height95, large separation | Reference ends after closing panel; required understated footer retained, shortened below composition | +| Background | Flat charcoal | Preserve exact approved charcoal/midnight bases; add restrained localized surface gradients rather than unrelated palette | + +Written decisions override illustrative details: single primary hero CTA (do not add View Projects), no generated logo tracing, no mock project screenshot as real work, truthful copy. Exact screenshot pixels/palette sampling cannot override approved tokens. + +Missing assets: authentic Concept 2 symbol/lockup/light companion, standalone approved laptop/workspace hero art, approved genuine featured screenshot and selected project permission. Page preview is not licensed/approved production artwork under DESIGN_SPEC asset policy. Do not crop reference into a production asset or invent replacements. Typography source is unspecified; record chosen closest typographic match as implementation approximation, not fresh brand approval. + + +## Correction iterations and result + +Iteration 1: height 1591px, header 67, gutters 56; matched primary structure. Comparison exposed an extra service-description line, three-line quality copy, clipped hero glow and oversized spacing. Iteration 2: height 1557px; featured media aligns around x56/y815/w506/h266; closing panel x35/y1288/w954/h205. Final pass corrected eyebrow/heading offset, hero action size, 320px heading wrapping and tablet row-gap. Final desktop composition anchors passed automated reference-coordinate tolerances; exact viewport and full-page screenshots retained separately. + +Resolved: header height/inset rule/nav proportions, pill theme control, main gutters, heading line-break/scale, services section positioning/tile/icon/type scale, unnecessary service arrows, featured media footprint/right-copy alignment, Why section alignment, closing CTA size and two-plane detail, footer excess spacing. Working routes/theme/storage behavior preserved. + +Remaining: authentic Concept 2 logo and light artwork absent; approved standalone laptop/workspace hero art absent; genuine featured screenshot/project approval absent. Explicit placeholders remain; full asset fidelity is blocked. Poppins geometric font is a licensed approximation, not verified original typeface. Icon silhouettes/gradients remain approximate; exact approved palette wins over sampled concept pixels. Written single-hero-CTA constraint overrides reference’s secondary View Projects button. Required understated footer retained; final full height 1557 vs reference 1536. + +Validation: lint, 29 unit tests, production build; 38 existing desktop/mobile browser checks plus 2 reference checks passed. After final 320/tablet corrections, 8 affected viewport/reference checks passed again. Captured at 1024/768/390/320 and light 1024, with no overflow, page errors or HTTP 400+ responses. All screenshot variants visually inspected. TASK-011 actual runtime/snapshot smoke passed through Docker/HTTP/real headless Firefox with exit 0. No commit/merge/production or secondary-page implementation. diff --git a/docs/visual-qa/bs-011/after-1024-full.png b/docs/visual-qa/bs-011/after-1024-full.png new file mode 100644 index 0000000..a0c0416 Binary files /dev/null and b/docs/visual-qa/bs-011/after-1024-full.png differ diff --git a/docs/visual-qa/bs-011/after-1024-viewport.png b/docs/visual-qa/bs-011/after-1024-viewport.png new file mode 100644 index 0000000..7e4d20d Binary files /dev/null and b/docs/visual-qa/bs-011/after-1024-viewport.png differ diff --git a/docs/visual-qa/bs-011/before-1024.png b/docs/visual-qa/bs-011/before-1024.png new file mode 100644 index 0000000..1379cdf Binary files /dev/null and b/docs/visual-qa/bs-011/before-1024.png differ diff --git a/docs/visual-qa/bs-011/light-1024-full.png b/docs/visual-qa/bs-011/light-1024-full.png new file mode 100644 index 0000000..cc594ff Binary files /dev/null and b/docs/visual-qa/bs-011/light-1024-full.png differ diff --git a/docs/visual-qa/bs-011/measurements.json b/docs/visual-qa/bs-011/measurements.json new file mode 100644 index 0000000..bc0301c --- /dev/null +++ b/docs/visual-qa/bs-011/measurements.json @@ -0,0 +1,312 @@ +[ + { + "name": "after-1024", + "width": 1024, + "height": 1536, + "theme": "dark", + "errors": [], + "badResponses": [], + "fullHeight": 1557, + "overflow": false, + "sections": [ + { + "name": "NAV", + "x": 0, + "y": 0, + "width": 1024, + "height": 67 + }, + { + "name": "hero-title", + "x": 56, + "y": 67, + "width": 912, + "height": 414 + }, + { + "name": "services-title", + "x": 56, + "y": 481, + "width": 912, + "height": 278 + }, + { + "name": "work-title", + "x": 56, + "y": 759, + "width": 912, + "height": 354 + }, + { + "name": "why-title", + "x": 56, + "y": 1113, + "width": 912, + "height": 168 + }, + { + "name": "contact-title", + "x": 35, + "y": 1288, + "width": 954, + "height": 205 + }, + { + "name": "FOOTER", + "x": 0, + "y": 1509, + "width": 1024, + "height": 48 + } + ], + "h1Font": "49.9712px" + }, + { + "name": "tablet-768", + "width": 768, + "height": 1024, + "theme": "dark", + "errors": [], + "badResponses": [], + "fullHeight": 1566, + "overflow": false, + "sections": [ + { + "name": "NAV", + "x": 0, + "y": 0, + "width": 768, + "height": 67 + }, + { + "name": "hero-title", + "x": 32, + "y": 67, + "width": 704, + "height": 414 + }, + { + "name": "services-title", + "x": 32, + "y": 481, + "width": 704, + "height": 324 + }, + { + "name": "work-title", + "x": 32, + "y": 805, + "width": 704, + "height": 296 + }, + { + "name": "why-title", + "x": 32, + "y": 1101, + "width": 704, + "height": 190 + }, + { + "name": "contact-title", + "x": 11, + "y": 1298, + "width": 746, + "height": 205 + }, + { + "name": "FOOTER", + "x": 0, + "y": 1519, + "width": 768, + "height": 48 + } + ], + "h1Font": "43px" + }, + { + "name": "mobile-390", + "width": 390, + "height": 844, + "theme": "dark", + "errors": [], + "badResponses": [], + "fullHeight": 2257, + "overflow": false, + "sections": [ + { + "name": "NAV", + "x": 0, + "y": 0, + "width": 390, + "height": 67 + }, + { + "name": "hero-title", + "x": 20, + "y": 67, + "width": 350, + "height": 572 + }, + { + "name": "services-title", + "x": 20, + "y": 639, + "width": 350, + "height": 492 + }, + { + "name": "work-title", + "x": 20, + "y": 1131, + "width": 350, + "height": 451 + }, + { + "name": "why-title", + "x": 20, + "y": 1582, + "width": 350, + "height": 367 + }, + { + "name": "contact-title", + "x": 15, + "y": 1954, + "width": 360, + "height": 209 + }, + { + "name": "FOOTER", + "x": 0, + "y": 2179, + "width": 390, + "height": 78 + } + ], + "h1Font": "32px" + }, + { + "name": "narrow-320", + "width": 320, + "height": 900, + "theme": "dark", + "errors": [], + "badResponses": [], + "fullHeight": 2385, + "overflow": false, + "sections": [ + { + "name": "NAV", + "x": 0, + "y": 0, + "width": 320, + "height": 67 + }, + { + "name": "hero-title", + "x": 20, + "y": 67, + "width": 280, + "height": 592 + }, + { + "name": "services-title", + "x": 20, + "y": 659, + "width": 280, + "height": 602 + }, + { + "name": "work-title", + "x": 20, + "y": 1261, + "width": 280, + "height": 414 + }, + { + "name": "why-title", + "x": 20, + "y": 1675, + "width": 280, + "height": 367 + }, + { + "name": "contact-title", + "x": 15, + "y": 2047, + "width": 290, + "height": 244 + }, + { + "name": "FOOTER", + "x": 0, + "y": 2307, + "width": 320, + "height": 78 + } + ], + "h1Font": "30px" + }, + { + "name": "light-1024", + "width": 1024, + "height": 1536, + "theme": "light", + "errors": [], + "badResponses": [], + "fullHeight": 1557, + "overflow": false, + "sections": [ + { + "name": "NAV", + "x": 0, + "y": 0, + "width": 1024, + "height": 67 + }, + { + "name": "hero-title", + "x": 56, + "y": 67, + "width": 912, + "height": 414 + }, + { + "name": "services-title", + "x": 56, + "y": 481, + "width": 912, + "height": 278 + }, + { + "name": "work-title", + "x": 56, + "y": 759, + "width": 912, + "height": 354 + }, + { + "name": "why-title", + "x": 56, + "y": 1113, + "width": 912, + "height": 168 + }, + { + "name": "contact-title", + "x": 35, + "y": 1288, + "width": 954, + "height": 205 + }, + { + "name": "FOOTER", + "x": 0, + "y": 1509, + "width": 1024, + "height": 48 + } + ], + "h1Font": "49.9712px" + } +] diff --git a/docs/visual-qa/bs-011/mobile-390-full.png b/docs/visual-qa/bs-011/mobile-390-full.png new file mode 100644 index 0000000..29e125a Binary files /dev/null and b/docs/visual-qa/bs-011/mobile-390-full.png differ diff --git a/docs/visual-qa/bs-011/narrow-320-full.png b/docs/visual-qa/bs-011/narrow-320-full.png new file mode 100644 index 0000000..11395b6 Binary files /dev/null and b/docs/visual-qa/bs-011/narrow-320-full.png differ diff --git a/docs/visual-qa/bs-011/reference-comparison.png b/docs/visual-qa/bs-011/reference-comparison.png new file mode 100644 index 0000000..36df305 Binary files /dev/null and b/docs/visual-qa/bs-011/reference-comparison.png differ diff --git a/docs/visual-qa/bs-011/tablet-768-full.png b/docs/visual-qa/bs-011/tablet-768-full.png new file mode 100644 index 0000000..7b4c5af Binary files /dev/null and b/docs/visual-qa/bs-011/tablet-768-full.png differ diff --git a/react/e2e/homepage-fidelity.spec.js b/react/e2e/homepage-fidelity.spec.js new file mode 100644 index 0000000..cd50f31 --- /dev/null +++ b/react/e2e/homepage-fidelity.spec.js @@ -0,0 +1,22 @@ +import { expect, test } from '@playwright/test' + +// Measured from assets/references/home-approved-direction.png (1024×1536). +// These are composition anchors, not acceptance of missing brand/media assets. +test('homepage composition stays aligned with approved desktop reference', async ({ page }, testInfo) => { + await page.setViewportSize({ width: 1024, height: 1536 }) + await page.goto('/') + await page.evaluate(() => globalThis.document.fonts.ready) + const header = await page.getByRole('navigation', { name: 'Main navigation' }).boundingBox() + expect(Math.abs(header.height - 67)).toBeLessThanOrEqual(3) + const media = await page.getByRole('region', { name: 'Featured project' }).getByRole('img').boundingBox() + for (const [actual, reference] of [[media.x, 56], [media.y, 814], [media.width, 507], [media.height, 267]]) { + expect(Math.abs(actual - reference)).toBeLessThanOrEqual(8) + } + const closing = await page.getByRole('region', { name: 'Have a project in mind?' }).boundingBox() + expect(Math.abs(closing.x - 35)).toBeLessThanOrEqual(2) + expect(Math.abs(closing.y - 1287)).toBeLessThanOrEqual(15) + expect(Math.abs(closing.width - 954)).toBeLessThanOrEqual(3) + expect(Math.abs(closing.height - 203)).toBeLessThanOrEqual(6) + await page.screenshot({ path: testInfo.outputPath('homepage-reference-viewport.png') }) + await page.screenshot({ path: testInfo.outputPath('homepage-reference-full.png'), fullPage: true }) +}) diff --git a/react/public/fonts/OFL-Poppins.txt b/react/public/fonts/OFL-Poppins.txt new file mode 100644 index 0000000..76df3b5 --- /dev/null +++ b/react/public/fonts/OFL-Poppins.txt @@ -0,0 +1,93 @@ +Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) + +This Font Software is licensed under the SIL Open Font License, Version 1.1. +This license is copied below, and is also available with a FAQ at: +http://scripts.sil.org/OFL + + +----------------------------------------------------------- +SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007 +----------------------------------------------------------- + +PREAMBLE +The goals of the Open Font License (OFL) are to stimulate worldwide +development of collaborative font projects, to support the font creation +efforts of academic and linguistic communities, and to provide a free and +open framework in which fonts may be shared and improved in partnership +with others. + +The OFL allows the licensed fonts to be used, studied, modified and +redistributed freely as long as they are not sold by themselves. The +fonts, including any derivative works, can be bundled, embedded, +redistributed and/or sold with any software provided that any reserved +names are not used by derivative works. The fonts and derivatives, +however, cannot be released under any other type of license. The +requirement for fonts to remain under this license does not apply +to any document created using the fonts or their derivatives. + +DEFINITIONS +"Font Software" refers to the set of files released by the Copyright +Holder(s) under this license and clearly marked as such. This may +include source files, build scripts and documentation. + +"Reserved Font Name" refers to any names specified as such after the +copyright statement(s). + +"Original Version" refers to the collection of Font Software components as +distributed by the Copyright Holder(s). + +"Modified Version" refers to any derivative made by adding to, deleting, +or substituting -- in part or in whole -- any of the components of the +Original Version, by changing formats or by porting the Font Software to a +new environment. + +"Author" refers to any designer, engineer, programmer, technical +writer or other person who contributed to the Font Software. + +PERMISSION & CONDITIONS +Permission is hereby granted, free of charge, to any person obtaining +a copy of the Font Software, to use, study, copy, merge, embed, modify, +redistribute, and sell modified and unmodified copies of the Font +Software, subject to the following conditions: + +1) Neither the Font Software nor any of its individual components, +in Original or Modified Versions, may be sold by itself. + +2) Original or Modified Versions of the Font Software may be bundled, +redistributed and/or sold with any software, provided that each copy +contains the above copyright notice and this license. These can be +included either as stand-alone text files, human-readable headers or +in the appropriate machine-readable metadata fields within text or +binary files as long as those fields can be easily viewed by the user. + +3) No Modified Version of the Font Software may use the Reserved Font +Name(s) unless explicit written permission is granted by the corresponding +Copyright Holder. This restriction only applies to the primary font name as +presented to the users. + +4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font +Software shall not be used to promote, endorse or advertise any +Modified Version, except to acknowledge the contribution(s) of the +Copyright Holder(s) and the Author(s) or with their explicit written +permission. + +5) The Font Software, modified or unmodified, in part or in whole, +must be distributed entirely under this license, and must not be +distributed under any other license. The requirement for fonts to +remain under this license does not apply to any document created +using the Font Software. + +TERMINATION +This license becomes null and void if any of the above conditions are +not met. + +DISCLAIMER +THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT +OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE +COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, +INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL +DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING +FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM +OTHER DEALINGS IN THE FONT SOFTWARE. diff --git a/react/public/fonts/Poppins-Bold.ttf b/react/public/fonts/Poppins-Bold.ttf new file mode 100644 index 0000000..1982f38 Binary files /dev/null and b/react/public/fonts/Poppins-Bold.ttf differ diff --git a/react/public/fonts/Poppins-Regular.ttf b/react/public/fonts/Poppins-Regular.ttf new file mode 100644 index 0000000..0bda228 Binary files /dev/null and b/react/public/fonts/Poppins-Regular.ttf differ diff --git a/react/public/fonts/Poppins-SemiBold.ttf b/react/public/fonts/Poppins-SemiBold.ttf new file mode 100644 index 0000000..c30ad10 Binary files /dev/null and b/react/public/fonts/Poppins-SemiBold.ttf differ diff --git a/react/public/fonts/README.md b/react/public/fonts/README.md new file mode 100644 index 0000000..491cf75 --- /dev/null +++ b/react/public/fonts/README.md @@ -0,0 +1,4 @@ +Poppins fonts, self-hosted under SIL Open Font License 1.1; see OFL-Poppins.txt. +Source: https://github.com/google/fonts/tree/main/ofl/poppins +Files: Poppins-Regular.ttf, Poppins-SemiBold.ttf, Poppins-Bold.ttf. +Typography is a visual approximation to the supplied concept, not a new approved brand decision. No external font requests at runtime. diff --git a/react/src/components/Footer/Footer.module.scss b/react/src/components/Footer/Footer.module.scss index 7050557..d16d0d4 100644 --- a/react/src/components/Footer/Footer.module.scss +++ b/react/src/components/Footer/Footer.module.scss @@ -1,7 +1,8 @@ -.footer { border-top: 1px solid var(--site-line); padding-block: 1.75rem; color: var(--site-muted); font-size: .8rem; } -.footerRow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1.4rem; } -.links { display: flex; gap: 1.5rem; a { color: var(--site-muted); text-decoration: none; } a:hover { color: var(--site-link); } } -.developerSlot { display: inline-flex; border-radius: .2rem; padding: .35rem .6rem; background: #F5F7FA; } -.developerLogo { display: block; width: 95px; height: auto; } +.footer { padding-block: 10px; color: var(--site-muted); font-size: 10px; background: var(--site-bg); } +.footer :global(.container) { width: calc(100% - 112px); max-width: 1280px; padding-inline: 0; } +.footerRow { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; } +.links { display: flex; gap: 18px; a { color: var(--site-muted); text-decoration: none; } a:hover { color: var(--site-link); } } +.developerSlot { display: inline-flex; border-radius: 2px; padding: 3px 5px; background: #F5F7FA; } +.developerLogo { display: block; width: 76px; height: auto; } .copyright { margin: 0; } -@media (max-width: 575.98px) { .footerRow { justify-content: center; } .copyright { flex-basis: 100%; text-align: center; } } +@media (max-width: 767.98px) { .footer :global(.container) { width: calc(100% - 40px); } .footerRow { justify-content: center; } .copyright { flex-basis: 100%; text-align: center; } } diff --git a/react/src/components/Header/Header.module.scss b/react/src/components/Header/Header.module.scss index 938e326..1f8cb84 100644 --- a/react/src/components/Header/Header.module.scss +++ b/react/src/components/Header/Header.module.scss @@ -1,14 +1,30 @@ .header { - padding-block: 1.3rem; + position: relative; + min-height: 67px; + padding: 0; background: var(--site-bg); - border-bottom: 1px solid var(--site-line); - :global(.navbar-brand) { margin: 0; } - :global(.nav-link) { color: var(--site-text); font-size: .9rem; padding: .75rem 1rem !important; } + border-bottom: 0; + &::after { content: ''; position: absolute; height: 1px; bottom: 0; left: 35px; right: 35px; background: var(--site-line); } + :global(.container) { width: calc(100% - 112px); max-width: 1280px; min-height: 66px; padding-inline: 0; } + :global(.navbar-brand) { margin: 0; padding: 0; } + :global(.nav-link) { color: var(--site-text); font-size: 14px; line-height: 22px; padding: 10px 16px !important; } :global(.nav-link:hover), :global(.nav-link.active) { color: var(--site-link); } - :global(.navbar-toggler) { border-color: var(--site-line); padding: .65rem; color: var(--site-text); line-height: 1; svg { width: 22px; height: 22px; } margin-left: auto; margin-right: .8rem; } + :global(.navbar-toggler) { border-color: var(--site-line); padding: 9px; color: var(--site-text); line-height: 1; svg { width: 22px; height: 22px; } margin-left: auto; margin-right: 12px; } +} +.navbarCollapse { justify-content: flex-end; margin-right: 24px; } +@media (min-width: 768px) and (max-width: 991.98px) { + .header :global(.container) { width: calc(100% - 64px); } + .header :global(.nav-link) { padding-inline: 9px !important; font-size: 12px; } + .navbarCollapse { margin-right: 12px; } } -.navbarCollapse { justify-content: flex-end; margin-right: 1.25rem; } @media (max-width: 767.98px) { - .header { padding-block: 1rem; :global(.navbar-collapse) { order: 5; flex-basis: 100%; } } - .navbarCollapse { margin: .8rem 0 0; } + .header { + padding-block: 10px; + &::after { left: 20px; right: 20px; } + :global(.container) { width: calc(100% - 40px); min-height: 43px; } + :global(.navbar-collapse) { order: 5; flex-basis: 100%; } + :global(.nav-link) { font-size: 15px; } + :global(.navbar-toggler) { padding: 8px; margin-right: 10px; } + } + .navbarCollapse { margin: 12px 0 0; } } diff --git a/react/src/components/Logo/Logo.jsx b/react/src/components/Logo/Logo.jsx index 10489e4..f41b27a 100644 --- a/react/src/components/Logo/Logo.jsx +++ b/react/src/components/Logo/Logo.jsx @@ -2,7 +2,7 @@ import { Link } from "react-router-dom"; import styles from "./Logo.module.scss"; export default function Logo() { return + BortStack - Logo pending ; } diff --git a/react/src/components/Logo/Logo.module.scss b/react/src/components/Logo/Logo.module.scss index 174caa4..4290f4d 100644 --- a/react/src/components/Logo/Logo.module.scss +++ b/react/src/components/Logo/Logo.module.scss @@ -1,3 +1,4 @@ -.link { display: inline-flex; flex-direction: column; text-decoration: none; color: var(--site-text); line-height: 1.15; } -.logo { font-size: 1.7rem; font-weight: 750; letter-spacing: -.055em; span { color: var(--site-link); } } -.pending { margin-top: .3rem; font-size: .58rem; text-transform: uppercase; letter-spacing: .14em; color: var(--site-muted); } +.link { display: inline-flex; align-items: center; gap: 13px; text-decoration: none; color: var(--site-text); line-height: 1; } +.logo { font-size: 29px; font-weight: 600; letter-spacing: -.045em; span { color: var(--site-link); } } +.markPlaceholder { display: grid; align-content: center; width: 43px; height: 39px; flex-shrink: 0; border: 1px dashed var(--bs-steel-blue); border-radius: 3px; text-align: center; font-size: 8px; line-height: 11px; color: var(--site-muted); letter-spacing: .025em; } +@media (max-width: 767.98px) { .link { gap: 8px; } .logo { font-size: 21px; } .markPlaceholder { width: 29px; height: 32px; font-size: 6px; line-height: 9px; } } diff --git a/react/src/components/ThemeToggle/ThemeToggle.jsx b/react/src/components/ThemeToggle/ThemeToggle.jsx index 4bc719b..7a66055 100644 --- a/react/src/components/ThemeToggle/ThemeToggle.jsx +++ b/react/src/components/ThemeToggle/ThemeToggle.jsx @@ -12,6 +12,7 @@ export default function ThemeToggle() { setTheme(next); } return ; } diff --git a/react/src/styles/app.scss b/react/src/styles/app.scss index 529d59b..7d492ae 100644 --- a/react/src/styles/app.scss +++ b/react/src/styles/app.scss @@ -1,3 +1,6 @@ +@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/Poppins-Regular.ttf") format("truetype"); } +@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/Poppins-SemiBold.ttf") format("truetype"); } +@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/Poppins-Bold.ttf") format("truetype"); } :root, [data-bs-theme="dark"] { --site-bg: var(--bs-charcoal); @@ -35,7 +38,7 @@ body { margin: 0; background: var(--site-bg); color: var(--site-text); - font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; + font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; } @@ -50,12 +53,15 @@ h1, h2, h3 { color: var(--site-text); font-weight: 650; line-height: 1.15; lette .routePlaceholder h1 { font-size: clamp(2rem, 5vw, 3.5rem); } .routePlaceholder > p:not(.eyebrow) { color: var(--site-muted); max-width: 60ch; margin-block: 1.5rem; } .themeToggle { - display: inline-grid; place-items: center; flex-shrink: 0; - width: 44px; height: 44px; padding: 0; - border: 1px solid var(--site-line); border-radius: 50%; - background: var(--site-surface); color: var(--site-text); font-size: 1.15rem; + position: relative; display: inline-flex; flex-shrink: 0; align-items: center; + width: 70px; height: 30px; padding: 1px; border-radius: 18px; + border: 1px solid var(--site-muted); background: transparent; color: var(--site-text); + &::before { content: ''; position: absolute; width: 1px; height: 28px; left: -28px; top: 0; background: var(--site-line); } } -.themeToggle:hover { border-color: var(--site-link); color: var(--site-link); } +.themeChoice { display: grid; place-items: center; width: 33px; height: 26px; border-radius: 16px; svg { width: 16px; height: 16px; } } +.themeChoice.selected { background: var(--bs-steel-blue); color: #F5F7FA; } +.themeToggle:hover { border-color: var(--site-link); } +@media (max-width: 767.98px) { .themeToggle { width: 58px; height: 30px; &::before { display: none; } } .themeChoice { width: 27px; } } .skipLink { position: fixed; z-index: 2000; top: .5rem; left: .5rem; padding: .75rem 1rem; color: #07151C; background: #26C6DA; transform: translateY(-200%); } .skipLink:focus { transform: translateY(0); } :focus-visible { outline: 3px solid var(--site-link); outline-offset: 4px; } diff --git a/react/src/views/Home/Homepage.jsx b/react/src/views/Home/Homepage.jsx index 8069ad7..e4049a7 100644 --- a/react/src/views/Home/Homepage.jsx +++ b/react/src/views/Home/Homepage.jsx @@ -4,15 +4,15 @@ import { FiArrowRight, FiCode, FiLayers, FiMail, FiMonitor, FiServer, FiTarget, import styles from "./Homepage.module.scss"; const services = [ - { title: "Website Development", description: "Clear, responsive websites for businesses, research projects and online services.", icon: