Repository navigation
Commit 9b10ce6
committed
Let the home page photograph show, and give the page its width back
Three things, all on the top of the home page.
The uploaded background was invisible. Two separate dimmers sat on it: the
image itself at 25% opacity, and a navy gradient over that reaching 95% in the
middle. Multiplied, about one part in fifty of the picture survived -- so
uploading a background looked exactly like the upload not saving, which is
what it was reported as. The image is at full strength now and a single scrim
carries the legibility, the same weighted one the page banners use.
It needed its own variant rather than .page-scrim. Four of the hero's five
blocks are a left-hand column, and then the three points at the bottom run the
full width, so a scrim that clears on the right the way the banners do would
leave the last of those three on bare photograph. This one clears less far and
deepens towards the bottom where that row sits.
Measured rather than judged, against a pure white photograph -- the worst case,
and not a rare one, since a bright sky behind a car is the commonest thing an
owner uploads. Every piece of text: 4.98:1 at the tightest, across 1536, 1280,
768 and 390. Below 1024 it goes to even coverage, because there every line runs
the full width and there is nowhere the photograph can show without something
being read over it.
The band of empty navy between the menu and the first word is gone. The hero
had even padding top and bottom, which is right for a section in the middle of
a page and wrong for the one thing at the top that should be read without
scrolling. Tight above, unchanged below.
And the page is wider: 86rem rather than 72rem, with the side gutters growing
at sm and lg instead of staying at 20px. On a 1536 screen the content ran
1152px with 192px of nothing on each side. Seventeen containers, all the same
change, so the header, the sections and the footer still line up. No horizontal
overflow at 320, 390, 768, 1024, 1280, 1536 or 1920 on six routes.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0128YzbhrfGdegUSc9RrARRf1 parent 0c594e3 commit 9b10ce6
35 files changed
Lines changed: 106 additions & 58 deletions
File tree
- about
- assets
- bikes
- blog
- cars
- contact
- monthly
- my-app/src
- components
- pages
- nri
- places
- services
- tariff
- tourist-vehicles
- wedding-cars
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
This file was deleted.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
3 | | - | |
4 | | - | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
5 | 5 | | |
6 | | - | |
7 | | - | |
| 6 | + | |
| 7 | + | |
8 | 8 | | |
9 | 9 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
41 | | - | |
| 40 | + | |
| 41 | + | |
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
| |||
0 commit comments