Commit 0a38914
authored
Rework Conf 2026 sponsor sizing for clearer tier hierarchy (#2404)
Closes #2403
## Summary
The 2026 Sponsors section had inconsistent visual hierarchy: Gold and
Silver logos rendered larger than Platinum because every non-Meta logo
was forced into a fixed `aspect-[3]` box while Meta was constrained by
`aspect-video`. Logos with internal SVG whitespace (Meta, airbnb) and
logos with very different aspect ratios within the same tier (wide
Apollo vs square ChilliCream) further compounded the imbalance.
This PR replaces the fixed-aspect approach with **per-tier `max-h` /
`max-w` envelopes** plus optional **per-logo overrides** for cases where
intrinsic aspect ratios make a single tier rule look unbalanced.
## Changes
### `src/app/conf/2026/components/sponsors.tsx`
- Tier sizing uses Tailwind `max-h-* max-w-*` per tier with mobile +
desktop breakpoints. Logos render at their natural aspect via
`object-contain` capped by the envelope.
- Added optional `sizeOverride` field on `Sponsor` so individual logos
with extreme aspect ratios (square ChilliCream, stacked airbnb, small
Grafast) can be tuned without raising the whole tier.
- Switched the row layout from a 2-column grid to flex with
`justify-center` so single-logo tiers (Platinum, Community, Bronze)
center on the section instead of sitting in the left grid column.
- Tier label is `md:absolute` on desktop so logos align to the section's
true horizontal center, not centered relative to the post-label area.
- Meta `<img>` no longer needs the `aspect-video` wrapper; the cropped
SVG handles its own sizing.
### SVG asset cleanup
- Cropped internal whitespace from `Meta.svg` and `Meta-dark.svg`
(`viewBox="940 940 5100 1120"`).
- Aligned `airbnb.svg` `width`/`height` attributes with the cropped
viewBox so the logo fills its envelope without internal padding.
- Added explicit `width`/`height` attributes to `Chillicream.svg`,
`airbnb.svg`, `Meta.svg`, `Meta-dark.svg` so they have intrinsic
dimensions when sized via `max-h`/`max-w` alone (previously these
collapsed without the `aspect-[3]` wrapper).
## Result
Visual hierarchy now reads Platinum > Gold > Silver/Community > Bronze
at any viewport, and logos within a tier feel comparable in visual
weight regardless of shape.
## Test plan
- [ ] Open `/conf/2026/#sponsors` and confirm tier hierarchy reads
correctly
- [ ] Verify all logos render in light and dark mode
- [ ] Check at 375px, 768px, 1280px, 1920px viewports
- [ ] Confirm hover state (subtle gray background) still appears on each
logo tile1 parent eee85f2 commit 0a38914
5 files changed
Lines changed: 39 additions & 36 deletions
File tree
- public/img/conf/Sponsors
- src/app/conf/2026/components
Loading
Loading
Loading
Loading
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
17 | 20 | | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | | - | |
| 24 | + | |
| 25 | + | |
29 | 26 | | |
30 | 27 | | |
31 | 28 | | |
32 | 29 | | |
33 | | - | |
| 30 | + | |
34 | 31 | | |
35 | 32 | | |
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
39 | 36 | | |
40 | | - | |
| 37 | + | |
41 | 38 | | |
42 | | - | |
| 39 | + | |
43 | 40 | | |
44 | 41 | | |
45 | 42 | | |
| |||
101 | 98 | | |
102 | 99 | | |
103 | 100 | | |
| 101 | + | |
| 102 | + | |
104 | 103 | | |
105 | 104 | | |
106 | 105 | | |
| |||
118 | 117 | | |
119 | 118 | | |
120 | 119 | | |
| 120 | + | |
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | 124 | | |
125 | 125 | | |
126 | | - | |
127 | | - | |
128 | | - | |
| 126 | + | |
129 | 127 | | |
130 | 128 | | |
| 129 | + | |
| 130 | + | |
131 | 131 | | |
132 | 132 | | |
133 | 133 | | |
| |||
139 | 139 | | |
140 | 140 | | |
141 | 141 | | |
| 142 | + | |
142 | 143 | | |
143 | 144 | | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
144 | 148 | | |
145 | 149 | | |
146 | 150 | | |
147 | 151 | | |
148 | 152 | | |
| 153 | + | |
149 | 154 | | |
150 | 155 | | |
151 | 156 | | |
152 | 157 | | |
153 | 158 | | |
| 159 | + | |
154 | 160 | | |
155 | 161 | | |
156 | 162 | | |
157 | 163 | | |
158 | 164 | | |
| 165 | + | |
159 | 166 | | |
160 | 167 | | |
161 | 168 | | |
162 | 169 | | |
163 | 170 | | |
| 171 | + | |
164 | 172 | | |
165 | 173 | | |
166 | 174 | | |
167 | 175 | | |
168 | 176 | | |
| 177 | + | |
169 | 178 | | |
170 | 179 | | |
171 | 180 | | |
| |||
176 | 185 | | |
177 | 186 | | |
178 | 187 | | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
| 188 | + | |
187 | 189 | | |
188 | 190 | | |
189 | 191 | | |
190 | 192 | | |
191 | 193 | | |
192 | 194 | | |
193 | | - | |
| 195 | + | |
194 | 196 | | |
195 | | - | |
196 | | - | |
| 197 | + | |
| 198 | + | |
197 | 199 | | |
198 | 200 | | |
199 | 201 | | |
200 | | - | |
201 | | - | |
| 202 | + | |
| 203 | + | |
202 | 204 | | |
203 | 205 | | |
204 | 206 | | |
205 | 207 | | |
206 | 208 | | |
207 | 209 | | |
208 | | - | |
| 210 | + | |
209 | 211 | | |
210 | 212 | | |
211 | | - | |
212 | | - | |
213 | | - | |
214 | | - | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
215 | 218 | | |
216 | 219 | | |
217 | 220 | | |
| |||
0 commit comments