Repository navigation
Commit 8d19295
committed
Every picture on the site is uploadable from the panel
Fourteen places showed an image and only some of them could be changed without
a deploy. Two separate causes.
**SectionArt never asked the panel.** It looked in public/photos and nowhere
else, so the six cards under "What we hire", the three "How it works" steps and
the areas-we-serve panel all ignored anything uploaded. That is worse than
having no slot: someone uploads a photograph of their own fleet, the panel says
it saved, and the drawing stays. It asks useSiteImage now -- uploaded first,
then a file in the repository, then the drawing -- which also makes the
special case AreasServed carried for `coast` unnecessary.
**Three more were hardcoded paths**: the home page background, the two
photographs beside "Why hire from us", and the open road band. The first
picture a visitor sees was the one picture the owner could not change.
Website content gains thirteen slots: Home page background, the two Why-hire
photos, Open road band, the six cards named after the page each links to, and
the three steps. Nineteen images on the site, every one of them uploadable.
Slot names may now contain digits. They could not: the sanitiser stripped them
and the reader's pattern rejected them, so step-1, step-2 and step-3 would all
have been written as "step-" and then served as a 404.
The open road band stays a CSS background rather than becoming an <img>. If the
file is missing the band falls back to the navy beneath it and still looks
deliberate, where an <img> would leave a broken-image icon on a live page.
Verified by seeding all thirteen new slots: every one renders, no drawing is
left on the home page, the six cards carry their uploads on /services too, and
nothing overflows at 390px. The seeds are not committed.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0128YzbhrfGdegUSc9RrARRf1 parent 25b2e66 commit 8d19295
25 files changed
Lines changed: 103 additions & 63 deletions
File tree
- about
- admin
- src
- assets
- bikes
- blog
- cars
- contact
- monthly
- my-app/src/components
- art
- 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 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
41 | 47 | | |
42 | 48 | | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
43 | 63 | | |
44 | 64 | | |
45 | 65 | | |
| |||
105 | 125 | | |
106 | 126 | | |
107 | 127 | | |
108 | | - | |
109 | | - | |
110 | | - | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
111 | 133 | | |
112 | 134 | | |
113 | 135 | | |
| |||
This file was deleted.
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 | | |
| |||
0 commit comments