Flipped Site Showcase
Platform-Specific Component Demo
This page demonstrates platform-specific component loading. The component below has different styles based on the platform you are viewing:
- Desktop version: Blue background
- Mobile version: Red background
The platform is determined by the PLATFORM env variable accessible by __PLATFORM__ in the app as ''(desktop) or 'mobile'(mobile).
Current Platform View:
This works by using Vite's plugin system to intercept file resolution during the build process. When the app tries to import PlatformIndicator.tsx, the plugin checks if a PlatformIndicator.mobile.tsx exists and uses that instead when building for mobile.
FlipBox Styling System
A simplified styled component system for creating flexible layouts:
FlipBox Generator
Customize your FlipBox component and see the code:
Preview Area (vertical)
Preview Area (horizontal)
UI Components
Component library available in this template:
Modal Dialog
Accessible modal dialog component based on Radix UI
Popover
Floating popover component based on Radix UI with FlipBox integration
Form Controls
Form input components with label and hint
3D Scene Examples
Interactive 3D scenes with modern rendering techniques:
Layout Examples
Layout components for building consistent page structures:
Form Examples
Form components with validation and map integration:
Platform-Specific Components
Components that adapt to different platforms: