Commit f4bd3d1
authored
fix(site): use the animated mascot logo in the hero (#65)
## Related Issue
No issue. The problem is described below.
## Problem
The landing page hero rendered `/pythinker-hero-clean-v2.mp4` inside a
play/pause `<button>`. That asset is no longer present in
`apps/site/public`, so `pnpm -C apps/site run build` fails outright on
`main`:
```
[vite]: Rollup failed to resolve import "/pythinker-hero-clean-v2.mp4" from ".../apps/site/src/App.vue"
```
## What changed
- The hero now renders the existing `PythinkerMascot` component instead
of the video. It inlines the same artwork as
`public/pythinker_animated.svg` — 34 identical `<path>` elements and the
same four animations (blink, mouthTalk, antennaGlow, eyeShine) — and
already ships a scoped `prefers-reduced-motion` guard, so no extra
request and no new motion handling.
- Removed the now-dead video machinery: `heroVideo` / `heroVideoPlaying`
refs, `playHeroVideo`, `syncHeroMotionPreference`, `toggleHeroVideo`,
their `matchMedia` listeners, and the `.hero-mascot-video` rules (radial
mask + `mix-blend-mode: multiply`). `reducedMotionQuery` stays — the
reveal-on-scroll observer still uses it.
- `.hero-mascot` sizes the logo at `clamp(128px, 12vw, 164px)`,
centered. The hero block is roughly 55px taller than the old 4:3 video,
so content below shifts down slightly.
- Deleted four assets nothing references: `pythinker-hero-clean-v2.mp4`,
`arctecture.webp`, `logo.png`, `brand/linux.svg`.
Deliberately kept, because they are addressed by URL or convention
rather than by an import: `_headers` (Cloudflare Pages), `bimi-logo.svg`
(DNS BIMI record), `code/oauth-success.html` (OAuth redirect landing
page), and `icon-192.png` / `icon-512.png`.
Verified: `pnpm -C apps/site run build` now succeeds, and `pnpm exec
oxlint --type-aware apps/site/src/App.vue` is clean.
## Checklist
- [x] I have read the
[CONTRIBUTING](https://github.com/Pythoughts-labs/pythinker-code/blob/main/CONTRIBUTING.md)
document.
- [x] I have linked a related issue, or explained the problem above.
- [x] I have added tests that prove my feature works. — `apps/site` has
no test suite; the site build is the gate, and it goes from failing to
passing with this change.
- [x] Ran `gen-changesets` skill, or this PR needs no changeset. `[skip
changeset]` — the only published package is
`@pythoughts/pythinker-code`, and `@pythoughts/site` is a private
marketing site that does not enter the CLI bundle, so nothing here
reaches a release artifact. No site-only change in this repo has ever
carried a changeset.
- [x] Ran `gen-docs` skill, or this PR needs no doc update.
<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->
## Summary by CodeRabbit
* **Bug Fixes**
* Replaced the hero mascot video with a static mascot illustration.
* Removed video playback controls and related motion behavior.
* Preserved terminal demo functionality and reduced-motion support.
* Updated responsive styling for the mascot display.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->1 parent 8f11dd8 commit f4bd3d1
5 files changed
Lines changed: 4 additions & 73 deletions
Binary file not shown.
This file was deleted.
Binary file not shown.
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
61 | 61 | | |
62 | 62 | | |
63 | 63 | | |
64 | | - | |
65 | | - | |
66 | 64 | | |
67 | 65 | | |
68 | 66 | | |
| |||
171 | 169 | | |
172 | 170 | | |
173 | 171 | | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | 172 | | |
193 | 173 | | |
194 | 174 | | |
195 | 175 | | |
196 | | - | |
197 | | - | |
198 | 176 | | |
199 | 177 | | |
200 | 178 | | |
| |||
214 | 192 | | |
215 | 193 | | |
216 | 194 | | |
217 | | - | |
218 | 195 | | |
219 | 196 | | |
220 | 197 | | |
| |||
250 | 227 | | |
251 | 228 | | |
252 | 229 | | |
253 | | - | |
254 | | - | |
255 | | - | |
256 | | - | |
257 | | - | |
258 | | - | |
259 | | - | |
260 | | - | |
261 | | - | |
262 | | - | |
263 | | - | |
264 | | - | |
265 | | - | |
266 | | - | |
267 | | - | |
268 | | - | |
269 | | - | |
270 | | - | |
271 | | - | |
272 | | - | |
273 | | - | |
274 | | - | |
| 230 | + | |
275 | 231 | | |
276 | 232 | | |
277 | 233 | | |
| |||
768 | 724 | | |
769 | 725 | | |
770 | 726 | | |
771 | | - | |
772 | | - | |
| 727 | + | |
773 | 728 | | |
774 | | - | |
| 729 | + | |
| 730 | + | |
775 | 731 | | |
776 | | - | |
777 | | - | |
778 | | - | |
779 | | - | |
780 | | - | |
781 | | - | |
782 | | - | |
783 | | - | |
784 | | - | |
785 | | - | |
786 | | - | |
787 | | - | |
788 | | - | |
789 | | - | |
790 | | - | |
791 | | - | |
792 | | - | |
793 | | - | |
794 | | - | |
795 | | - | |
796 | | - | |
797 | | - | |
798 | | - | |
799 | | - | |
800 | 732 | | |
801 | 733 | | |
802 | 734 | | |
| |||
0 commit comments