Build UI components, sections, and pages for the Friendship Corner Daycare website with proper theming, animations, i18n, SEO, and responsive design. Use for: creating new components, adding page sections, building new pages, recreating UI layouts from design inspiration, ensuring theme compatibility across 5 themes, integrating i18n for 5 languages (en, zh, fr, es, ko), implementing responsive layouts. For detailed animation workflows, use /web-animations skill.
Instalação
Instalar com Codex ou Claude Copie este prompt, cole no Codex, Claude ou outro assistente e deixe que ele revise a página da skill e instale para você.
Build UI components, sections, and pages for the Friendship Corner Daycare website with proper theming, animations, i18n, SEO, and responsive design. Use for: creating new components, adding page sections, building new pages, recreating UI layouts from design inspiration, ensuring theme compatibility across 5 themes, integrating i18n for 5 languages (en, zh, fr, es, ko), implementing responsive layouts. For detailed animation workflows, use /web-animations skill.
argument-hint
Describe what UI element to create/recreate (component/section/page) or design pattern to implement
Daycare UI Development Skill
Build UI elements for the Friendship Corner Daycare website following established patterns for theming, animation, internationalization, and design system consistency.
When to Use
Creating new UI components (buttons, cards, forms, etc.)
Add to navigation in /src/components/layout/Header.tsx if needed.
4. Theme Integration Checklist
Ensure components work across all 5 themes:
Use CSS variables instead of hardcoded colors
Test in Professional theme (clean corporate blue)
Test in Nature theme (earthy greens/browns)
Test in Playful theme (default colorful)
Test in Dark theme (dark backgrounds)
Test in Violet theme (purple tones)
Verify text contrast meets WCAG AA standards
Check hover states work in all themes
Verify borders/shadows are visible in dark theme
5. Animation Integration
Add animations consistently:
When to Animate:
Hero sections: fadeIn + slideUp
Card grids: staggerContainer + staggerItem
Images: scaleIn
Text reveals: textReveal (from magicui-animations)
CTA buttons: Hover/tap animations
Animation Best Practices:
Use viewport={{ once: true }} to animate only on first view
Add margin: "-100px" to trigger animations slightly before element enters viewport
Keep durations between 0.3-0.8 seconds
Use ease: 'easeOut' for natural feel
UI Recreation from Design Inspiration
Scenario: You want to recreate a UI section from another design (e.g., hero section, feature grid, testimonial layout) while maintaining your existing functionality and tech stack.
Step 1: Analyze the Design Pattern
When viewing a design you want to recreate, identify:
✅ Existing data sources (carousel images, content from CMS)
✅ i18n integration (all text uses t())
✅ Theme compatibility (use CSS variables)
✅ Responsive behavior (mobile-first)
✅ Animations (consistent with rest of site)
Example: Keeping Carousel While Changing Layout:
// Before: Old hero section
<HeroImageCarousel images={images} />
// After: New hero with carousel background<sectionclassName="relative min-h-screen">
{/* Keep carousel, change how it's positioned */}
<divclassName="absolute inset-0 -z-10"><HeroImageCarouselimages={images} /> {/* Same component */}
</div>
{/* New content layout on top */}
<divclassName="relative z-10">
{/* Your new hero content */}
</div></section>
Step 6: Refine Visual Details
Match the design aesthetics:
Spacing (Tailwind):
py-4// 16px padding vertical
py-20// 80px padding vertical
gap-6// 24px gap between grid items
space-y-8// 32px vertical spacing between children
Typography:
text-5xl md:text-7xl // Responsive heading size
font-display font-bold // Display font family + bold
text-center // Centered text
leading-tight // Tight line-height
Colors (Theme Variables):
bg-primary // Brand color
text-foreground // Main text color
bg-card // Card backgrounds
border-border // Borders
text-muted-foreground // Secondary text
Effects:
backdrop-blur-sm // Glassmorphism effect
shadow-2xl // Large shadow
rounded-2xl // Large border radiushover:scale-105 transition-transform // Hover animation
Step 7: Test & Iterate
After implementing:
Test responsiveness: Check mobile (375px), tablet (768px), desktop (1440px)
Test themes: Cycle through all 5 themes
Test languages: Switch languages to verify text fits