refactoring #1

Merged
Nicholai merged 3 commits from refactoring into main 2025-12-12 22:51:46 +00:00

3 Commits

Author SHA1 Message Date
ab8fbf5dee Add HTML marker for diagnostics in consts and integrate into BaseLayout
- Introduced HTML_MARKER constant in consts.ts for website visualization tool diagnostics.
- Updated BaseLayout.astro to include the HTML_MARKER in the head section for improved site diagnostics.
2025-12-12 15:50:18 -07:00
3efb7fd43c Add documentation for development processes and optimization guidelines
- Created CLAUDE.md to provide guidance on development commands, high-level architecture, content structure, and component relationships.
- Added dev/optimization-guidelines.md outlining performance principles and best practices for high-performance web code, inspired by McMaster-Carr's website.
- Introduced a new blog post, 'Building Your Own Tools: From VFX Artist to Developer', discussing the transition to self-hosting and AI development.
- Included a new asset, claude-nuke.png, for use in the blog post.
2025-12-12 14:23:56 -07:00
17c2a3603f Refactor components for performance and accessibility improvements
- Removed unused Lucide CDN script from BaseHead component to reduce network costs.
- Enhanced CustomCursor component with requestAnimationFrame for smoother animations and respect for user motion preferences.
- Updated Hero section styles for faster fade-out transitions and improved responsiveness to user preferences.
- Optimized clock functionality in Hero section to reduce drift and improve performance.
- Streamlined mousemove event handling in Hero section for better performance and reduced resource usage.
- Lazy-loaded markdown renderer in contact page to keep initial JavaScript lighter.
- Added will-change property to global CSS for improved rendering performance.
2025-12-12 14:23:40 -07:00