Component Test Page #
This page demonstrates all the migrated Vue components.
TextCopy Component #
Copy text functionality - click the copy button to test:
npm install @vueuse/coreYou can also slice the text before copying:
YouTubeEmbed Component #
Embedding a YouTube video with responsive aspect ratio:
Without scale effect (useful for mobile):
TalkDate Component #
Display a date with countdown (for future dates):
Past date example (no countdown shown):
Logo Component #
Animated minimalist Lengcat logo - abstract cat head design:
The logo features a simple, abstract cat head with elongated ears, smooth animations including pulse effects and ear wiggling. It respects prefers-reduced-motion settings.
LogoStroke Component #
Lengcat logo stroke version with sequential drawing animation:
This version uses SVG stroke-dasharray animation to draw the cat head progressively, with whiskers and facial features appearing in sequence.
StreamAnnouncement Component #
A stream announcement banner component:
WrapperDemo Component #
Demo wrapper for showcasing projects with optional video:
Background Art Components #
ArtPlum Component #
The Plum component creates an animated plum blossom branch effect in the background. Itβs a canvas-based animation that grows organically from the edges of the screen.
Features:
- Canvas-based animation
- Randomized organic growth
- Responsive to window resize
- Configurable branch length and density
Note: This component is best used as a background decoration and requires @vueuse/core. Already available in this project!
ArtDots Component β #
The ArtDots component uses PixiJS to create an animated particle field with flowing dots based on simplex noise.
Dependencies Required:
pnpm add pixi.js simplex-noise
β Already installed and working!
Features:
- WebGL-based particle animation
- Noise-based flow field
- Smooth alpha transitions
- Responsive particle grid
- Theme switching support - Automatically reinitializes when switching between light/dark modes
- Proper cleanup and memory management
Usage: Currently active on the homepage! Try switching between light and dark modes to see the seamless theme transition.
Note: Always wrap in <ClientOnly> for SSR compatibility.
Component Summary #
| Component | Description | Key Dependencies |
|---|---|---|
| TextCopy | Copy text to clipboard with visual feedback | @vueuse/core |
| YouTubeEmbed | Embed YouTube videos responsively | None |
| TalkDate | Display dates with countdown | dayjs |
| Logo | Animated minimalist cat head logo (filled) | None |
| LogoStroke | Animated minimalist cat head logo (stroke) | None |
| StreamAnnouncement | Stream/event announcement banner | None |
| WrapperDemo | Demo project wrapper with video support | None |
| ArtPlum | Animated plum blossom background | @vueuse/core |
| ArtDots | Animated particle dots background | pixi.js, simplex-noise |