ReviewOS

also looking at this

stacks/commshq

fix(ui): align component palette and contain homepage hero

#16
Merged glennmichael123 wants to merge fix/commshq-component-theme into main
7 files +157 -13
tests/Unit/HomepageLayout.test.tsadded+10-0
Changes to tests/Unit/HomepageLayout.test.ts
@@ -0,0 +1,10 @@
1import { expect, test } from 'bun:test'
2import { readFileSync } from 'node:fs'
3
4const home = readFileSync(new URL('../../resources/views/index.stx', import.meta.url), 'utf8')
5
6test('the hero image stays inside its grid column at desktop widths', () => {
7 const figure = home.match(/<figure class="([^"]*)">/)?.[1] ?? ''
8 expect(figure).toContain('min-w-0')
9 expect(figure).not.toMatch(/(?:^|\s)(?:\w+:)?-mr-/)
10})