You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: improve UX Patterns layout and code preview functionality
- Restore previous preview frame design with better centering and positioning:
- Restored black frame with rounded corners and proper shadow
- Fixed centering with flex justify-center and proper max-width
- Maintained 9:16 aspect ratio with 400px height for realistic mobile appearance
- Restored smartphone icon and 'Preview coming soon' text
- Reorganize layout structure:
- Move code preview to left column under description and tags
- Keep live preview in right column for better visual balance
- Improve spacing and organization with space-y-4 for left column
- Add interactive copy functionality:
- Implement copy-to-clipboard with proper error handling
- Add visual feedback with 'Copied!' text that reverts after 3 seconds
- Include smooth tap animation with whileTap scale effect
- Track copied state per pattern to avoid conflicts
- Enhance code preview styling to match website brand:
- Use muted/10 background with border-border/50 for consistency
- Apply muted-foreground text color matching site theme
- Maintain monospace font with proper line height
- Add subtle border and rounded corners for professional appearance
- Improve overall user experience:
- Better visual hierarchy with organized left/right column layout
- Consistent styling that matches the rest of the website
- Interactive feedback for better user engagement
- Clean, professional code presentation
0 commit comments