Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions DESIGN.md
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ worth sending.
clean board: tactile, cheerful, quick. Not cream paper and serifs, not a
casino, not a brain-training lab.

**The tile is the idea.** The mark is an ink tile with a question-mark hook
and an amber dot; that amber dot is the moment the answer clicks. Games are
**The tile is the idea.** The mark is a T built from five puzzle tiles on an
ink ground, the last one amber; that amber tile is the moment the answer clicks. Games are
tiles, buttons are tiles with a pressable edge, and the one amber thing on a
screen is the thing to press next.

Expand Down Expand Up @@ -247,7 +247,7 @@ tiles or blobs. Icons: 2px rounded-stroke line icons, 24px grid.
- Do give each game one tile colour and use it on its card, hero and share image.
- Do put Ink text on every Amber and tile-colour fill; never white on them.
- Do show the free daily puzzle first and let a guest finish it with no signup.
- Don't use cream paper, newspaper serifs or rule lines; that is another brand.
- Don't use newspaper serifs in the interface or decorative rule lines; the home masthead's one heavy ink rule is the only rule.
- Don't put Sylphx next to the mark, in headlines or in any image.
- Don't show today's answer in any post, preview or result card.
- Don't rely on colour alone for tile states.
Expand Down
20 changes: 12 additions & 8 deletions apps/puzzled/e2e-tests/phone-first.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ for (const viewport of [
{ width: 390, height: 844 },
{ width: 360, height: 640 },
]) {
test(`first visit keeps the whole puzzle, Play and consent clear at ${viewport.width}x${viewport.height}`, async ({
test(`first visit keeps the whole puzzle and Play above the consent bar at ${viewport.width}x${viewport.height}`, async ({
page,
}) => {
// The served build is plain HTTP on loopback, where this spec's WebKit
Expand Down Expand Up @@ -45,25 +45,29 @@ for (const viewport of [
const action = document.querySelector('[data-day-primary-action]')!
const r = action.getBoundingClientRect()
return {
cardDocTop:
document.querySelector('[data-day-puzzle-card]')!.getBoundingClientRect().top +
window.scrollY,
card: bounds('[data-day-puzzle-card]'),
play: bounds('[data-day-primary-action]'),
consent: bounds('[data-consent-banner]'),
nav: bounds('nav.fixed[aria-label="Main navigation"]'),
hit: action.contains(document.elementFromPoint(r.x + r.width / 2, r.y + r.height / 2)),
}
})
expect(geometry.consent.bottom).toBeLessThanOrEqual(geometry.card.top)
expect(geometry.card.bottom).toBeLessThanOrEqual(geometry.nav.top)
// The consent bar sits at the bottom, above the tab bar, and below the
// whole featured card: it never covers the puzzle or Play.
expect(geometry.card.bottom).toBeLessThanOrEqual(geometry.consent.top)
expect(geometry.consent.bottom).toBeLessThanOrEqual(geometry.nav.top + 1)
expect(geometry.play.height).toBeGreaterThanOrEqual(48)
expect(geometry.hit).toBe(true)
await expect(play).toHaveAttribute('href', /start=1#play$/)
await consent.getByRole('button', { name: 'Decline', exact: true }).click()
await expect(consent).toBeHidden()
await expect(play).toBeVisible()
const after = await card.boundingBox()
expect(after!.y).toBeCloseTo(
geometry.card.top - (geometry.consent.bottom - geometry.consent.top),
0,
)
// Deciding moves nothing in the layout: the bar never pushed the hero down.
// (Compared in document coordinates: pressing a sticky button may scroll.)
const after = await card.evaluate((el) => el.getBoundingClientRect().top + window.scrollY)
expect(after).toBeCloseTo(geometry.cardDocTop, 0)
})
}
Binary file modified apps/puzzled/public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion apps/puzzled/public/brand/mark-mono.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion apps/puzzled/public/brand/mark.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/puzzled/public/favicon.ico
Binary file not shown.
Binary file modified apps/puzzled/public/favicon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion apps/puzzled/public/favicon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/puzzled/public/icons/icon-128.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/puzzled/public/icons/icon-144.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/puzzled/public/icons/icon-152.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/puzzled/public/icons/icon-192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/puzzled/public/icons/icon-384.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/puzzled/public/icons/icon-48.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/puzzled/public/icons/icon-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/puzzled/public/icons/icon-72.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/puzzled/public/icons/icon-96.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified apps/puzzled/public/icons/icon-maskable-512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions apps/puzzled/public/motifs/arithmo-zoom.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Loading