I originally wanted GPT to write this blog post, but what it wrote was truly unbearable to read—I'd rather write it myse…
I originally wanted GPT to write this blog post, but what it wrote was truly unbearable to read—I'd rather write it myse…
AI summary: The author redesigned a personal homepage using a modern tech stack, inspired by imsyy's old project. Originally an experimental page at /shouping, it became the site's main entrance, swapped with the original homepage. The layout uses strict 1:1 symmetry: left side for profile, right side with a 6-grid system for info cards and navigation. They used Nuxt UI's UCarousel instead of Swiper to avoid extra dependencies. Dynamic features include a clock with SSR hydration defense, weather API with 30-minute localStorage caching, and i18n locale paths. They solved issues with @click.capture, and created a door-opening transition using DOM snapshots, MutationObserver, and requestAnimationFrame to eliminate white-screen flicker, with reduced-motion support. Final routing swaps and TypeScript checks passed.
AI summary: Developer sin encountered a severe coordinate offset bug in a theme toggle button using the View Transitions API and WAAPI, where the ripple effect's center didn't align with the click point. Sin disproved initial hypotheses by showing the official NuxtUI template had the same bug and that a pure CSS control button worked perfectly. The root cause was identified as a Chromium rendering issue where WAAPI animations on snapshot pseudo-elements don't correctly account for device pixel ratio (DPR) scaling in modern versions, unlike CSS variables which are handled by the style engine. The solution was to refactor the component to use pure CSS with CSS variables for the animation, ensuring 0-pixel deviation. The article also discusses future View Transitions Level 2 'types' feature and reflects on the collaborative debugging process, emphasizing the importance of challenging authoritative templates and using control experiments.