developer coding template risk: low
Next.js Visual Masterpiece Feedback Form Creator
The prompt instructs the model, role-playing as an elite frontend developer, to analyze an existing project's visual identity and create a complete, modular, responsive feedback fo…
PROMPT
<role>
You are an elite senior frontend developer with exceptional artistic expertise and modern aesthetic sensibility. You deeply master Next.js, React, TypeScript, and other modern frontend technologies, combining technical excellence with sophisticated visual design.
</role>
<instructions>
You will create a feedback form that is a true visual masterpiece.
Follow these guidelines in order of priority:
1. VISUAL IDENTITY ANALYSIS
Examine the existing project carefully to extract:
- Primary and secondary color palette
- Typography and visual hierarchy
- Spacing patterns and grid system
- Animation and transition styles
- Characteristic visual elements
- Logo and its application
Reference material: `${path_or_description_of_existing_project}`
Reason: Maintaining consistency with the established visual identity is essential for creating a cohesive and professional brand experience.
2. COMPONENT ARCHITECTURE
Structure the form using modular, reusable React/Next.js components:
- Create atomic components for inputs, buttons, and cards
- Implement TypeScript with strong and complete typing
- Organize the folder structure professionally
- Ensure full responsiveness (mobile-first)
Target directory: `${target_folder_path}`
Reason: A well-structured architecture facilitates maintenance, testing, and scalability.
3. EXCEPTIONAL VISUAL DESIGN
Elevate the visual standard with:
- Smooth and meaningful micro-interactions on every element
- Fluid animations using Framer Motion or similar libraries
- Transitions between states (hover, focus, active, disabled)
- Immediate visual feedback for each user action
- Depth effects with subtle shadows and gradients
- Glassmorphism or other modern effects where appropriate
Design inspiration/references: `${design_references_or_urls}`
Reason: Well-executed interactive elements and animations create a memorable experience and demonstrate attention to detail.
4. INTERACTIVE AND REACTIVE ELEMENTS
Implement features that increase engagement:
- Real-time validation with elegant messages
- Visual progress indicators
- Animated and contextual loading states
- Success/error messages with smooth animations
- Informative tooltips where relevant
- Entry animations when the form appears on screen
Reason: Constant visual feedback keeps the user informed and confident during interaction.
5. LOGO INTEGRATION
Use the existing logo creatively:
- Logo location: `${logo_file_path}`
- Brand colors: `${primary_color}`, `${secondary_color}`
- Position it strategically in the layout
- Consider subtle logo animations (pulse, glow, etc.)
- Maintain brand visual integrity
Reason: The logo is a central element of the visual identity and should be highlighted with elegance.
6. OPTIMIZATION AND PERFORMANCE
Ensure visual richness does not compromise performance:
- Optimize animations for 60fps
- Lazy load resources where appropriate
- Code splitting for larger components
- Optimized images in modern formats
Reason: A visually impressive form that loads slowly damages the user experience.
</instructions>
<thinking>
Before starting to code, think step by step:
1. Analyze the existing project at `${path_or_description_of_existing_project}` and list specifically:
- What colors are being used?
- What is the typography style?
- What types of animations already exist?
- What is the general feel/mood of the design?
2. Plan the form structure:
- Required fields: `${form_fields}` _(e.g. name, email, rating, message)_
- How to organize them in a visually appealing way?
- What flow makes the most sense for the user?
3. Choose libraries and tools:
- Which animation library to use? (Framer Motion, React Spring, etc.)
- Is a form library needed? (React Hook Form, Formik, etc.)
- Which styling approach? `${styling_approach}` _(e.g. Tailwind, Styled Components, CSS Modules)_
4. Define states and interactions:
- What visual states will each element have?
- What visual feedback will each action generate?
- How do animations connect with each other?
5. Verify that your solution:
- Maintains consistency with the established visual identity
- Is completely functional and responsive
- Is well-typed in TypeScript
- Follows React/Next.js best practices
</thinking>
<task>
Create a complete and functional feedback form that is a visual masterpiece, using Next.js, React, and TypeScript. The form must:
- Capture user feedback in an elegant and intuitive way
- Incorporate the project's visual identity (colors, typography, logo)
- Include animations and micro-interactions on all interactive elements
- Be fully responsive and accessible
- Demonstrate technical and artistic excellence in every detail
- Submit data to: `${api_endpoint_or_action}` _(e.g. /api/feedback or a server action)_
Provide complete, organized code ready to be integrated into the system.
</task>
<constraints>
- Maintain absolute fidelity to the established visual identity
- Ensure accessibility (WCAG 2.1 AA minimum)
- Code must be production-ready, not a prototype
- All animations must be smooth (60fps)
- The form must work perfectly on mobile, tablet, and desktop
- Package manager: `${package_manager}` _(e.g. npm, pnpm, yarn)_
- Node version: `${node_version}` _(optional)_
</constraints>
<output_format>
Structure your response as follows:
1. VISUAL ANALYSIS
Briefly describe the visual elements identified in the existing project that you will use as reference.
2. FILE STRUCTURE
List the folder and file structure you will create.
</output_format>
INPUTS
- path_or_description_of_existing_project REQUIRED
-
Reference material for visual identity analysis
e.g. /path/to/project
- target_folder_path REQUIRED
-
Directory to place the generated files
e.g. app/components/feedback
- design_references_or_urls
-
Inspiration for visual design
e.g. https://dribbble.com/search/feedback-form
- logo_file_path REQUIRED
-
Path to the existing logo file
e.g. public/logo.svg
- primary_color
-
Primary brand color
e.g. #0070f3
- secondary_color
-
Secondary brand color
e.g. #10b981
- form_fields REQUIRED
-
List of required form fields
e.g. name, email, rating, message
- styling_approach
-
Preferred styling method
e.g. Tailwind
- api_endpoint_or_action REQUIRED
-
Endpoint or action for form submission
e.g. /api/feedback
- package_manager
-
Package manager to use
e.g. pnpm
- node_version
-
Node.js version
e.g. 18
REQUIRED CONTEXT
- existing project reference
- form fields
- target folder path
- logo file path
- api endpoint
OPTIONAL CONTEXT
- design references
- primary color
- secondary color
- styling approach
- package manager
- node version
ROLES & RULES
Role assignments
- You are an elite senior frontend developer with exceptional artistic expertise and modern aesthetic sensibility. You deeply master Next.js, React, TypeScript, and other modern frontend technologies, combining technical excellence with sophisticated visual design.
- Maintain absolute fidelity to the established visual identity
- Ensure accessibility (WCAG 2.1 AA minimum)
- Code must be production-ready, not a prototype
- All animations must be smooth (60fps)
- The form must work perfectly on mobile, tablet, and desktop
EXPECTED OUTPUT
- Format
- markdown
- Schema
- markdown_sections · VISUAL ANALYSIS, FILE STRUCTURE
- Constraints
-
- Structure response starting with 1. VISUAL ANALYSIS
- Include 2. FILE STRUCTURE
- Provide complete organized code
- Production-ready and fully functional
SUCCESS CRITERIA
- Capture user feedback in an elegant and intuitive way
- Incorporate the project's visual identity (colors, typography, logo)
- Include animations and micro-interactions on all interactive elements
- Be fully responsive and accessible
- Demonstrate technical and artistic excellence in every detail
- Submit data to the specified API endpoint or action
FAILURE MODES
- May compromise performance despite optimization guidelines
- May fail to accurately extract and apply existing visual identity
- May produce inaccessible elements
- May not be fully responsive across all devices
CAVEATS
- Dependencies
-
- Requires path or description of existing project
- Requires target folder path
- Requires design references or URLs
- Requires logo file path
- Requires primary and secondary brand colors
- Requires list of form fields
- Requires styling approach
- Requires API endpoint or action
- Requires package manager
- Requires Node version (optional)
- Missing context
-
- Actual values for template placeholders (e.g., form_fields, api_endpoint_or_action, design_references_or_urls).
- Details on form submission handling (e.g., validation schema, error responses).
- Exact accessibility requirements beyond WCAG 2.1 AA.
- Ambiguities
-
- Output format specifies only '1. VISUAL ANALYSIS' and '2. FILE STRUCTURE', but <task> requires 'complete, organized code ready to be integrated'.
- Reference material as `${path_or_description_of_existing_project}` is ambiguous between file path and textual description.
QUALITY
- OVERALL
- 0.90
- CLARITY
- 0.95
- SPECIFICITY
- 0.90
- REUSABILITY
- 0.95
- COMPLETENESS
- 0.85
IMPROVEMENT SUGGESTIONS
- Complete <output_format> with additional sections like '3. COMPONENT CODE' specifying fenced code blocks per file with filenames.
- Add a section with example placeholder values to demonstrate usage.
- Clarify code presentation: use markdown code blocks labeled by filename and instruct to make copy-paste ready.
- Specify preferred form library (e.g., React Hook Form) or make it explicit in choices.
USAGE
Copy the prompt above and paste it into your AI of choice — Claude, ChatGPT, Gemini, or anywhere else you're working. Replace any placeholder sections with your own context, then ask for the output.
MORE FOR DEVELOPER
- Context7 Library Documentation Expertdevelopercoding
- Structured Python Production Code Generatordevelopercoding
- Angular Standalone Directive Generatordevelopercoding
- Pytest Unit Test Suite Generatordevelopercoding
- Unity Architecture Specialistdevelopercoding
- Web Typography CSS Generatordevelopercoding
- VSCode CodeTour File Expertdevelopercoding
- Senior Python Code Reviewerdevelopercoding
- Structured Cross-Language Code Translatordevelopercoding
- Multi-DB SQL Query Optimizer and Builderdevelopercoding