I will start by listing the files in the project to understand the current structure.
I will install the necessary dependencies, including framer-motion for animations, lucide-react for icons, and clsx and tailwind-merge for styling.
I will create a CardViewer component to handle the 3D tilt effect, a CardControls component for the UI, and a ProceduralBackground component for the stone-like textures. I'll start by defining the types and the main App component structure.
I will update the src/index.css file to include the custom scrollbar and 3D perspective styles, and I will also clean up the src/App.tsx file to resolve the linting errors.
I will read the src/index.css file to see the current content.
I will overwrite the src/index.css file with the updated content.
I will fix the lint errors in src/App.tsx.
I will read src/App.tsx again to check the imports.
I will correct the import statement in src/App.tsx.
I will update the index.html title.
I will read index.html.
I will update the title in index.html.
I will add some custom Tailwind colors and styles to src/index.css to enhance the visual appeal.
I will perform a final check of the App.tsx file to ensure the textures and effects are integrated correctly.
I have completed the MTG Card Maker with a 3D visualizer, procedural backgrounds, and both modern and retro styles.
I've built a comprehensive 3D MTG Card Maker with the following features:
-
3D-ish Card Visualizer:
- Responsive 3D tilt effect using
framer-motion that reacts to mouse movement (or touch on mobile).
- Dynamic light reflection that follows the cursor, creating a realistic depth effect.
-
Procedural Textures:
- Customized background gradients for each color identity (White, Blue, Black, Red, Green, Gold, Artifact, Land).
- Layered noise and granite textures to simulate a "stone-like" MTG card surface.
-
Visual Enhancements:
- Foil/Holographic Toggle: Adds a moving prismatic color-dodge overlay that shifts with the card tilt.
- Holo-Stamp: Rare and Mythic cards in the modern style feature the iconic security holofoil at the bottom.
- Adaptive Layout: Automatically adjusts for creatures (showing P/T box) vs. non-creatures.
-
Full Customization:
- Editable Name, Mana Cost (parses symbols like 2RW), Type Line, Text, and Flavor Text.
- Image upload support to visualize custom artwork.
- Toggle between Modern and Retro (classic brown border/serif font) styles.
-
Mobile Friendly:
- Responsive layout that stacks controls on mobile and side-by-side on desktop.
- Touch-friendly interaction for the 3D card tilt.
The application is built with React, Vite, Tailwind CSS, and Framer Motion.
Files built: src/App.tsx, src/index.css, index.html