MimicStyler is a tool designed for developers to practice and challenge their frontend skills. Players can choose a target image and attempt to replicate it using HTML and CSS. With real-time visual feedback and similarity comparison, players can continuously refine and perfect their code.
- Login Interface: Players enter their HCTI API key.
- Image Upload: Players upload the image they wish to mimic.
- Real-time Coding and Preview: Players can write HTML and CSS and see the results instantly.
- Similarity Comparison: The system compares the similarity between the player's created image and the target image.
- Logout feature.
- First, run start.bat.
- Open a browser and enter 127.0.0.1:8000.
- Navigate to the login interface and enter your HCTI API key.
- Upload the target image you wish to mimic.
- Write HTML and CSS on the coding page and click "Submit" to view the results.
- Click "Compare" to see the similarity between your image and the target image.
- If done, click "Logout".
- Frontend Technology: Built with native HTML and CSS for a basic web interface.
- Backend Technology: Designed with PHP for backend logic, especially in handling API requests and image generation.
- Backend Technology: Uses PHP's curl function to call an external API (https://hcti.io/v1/image) to generate images from the player's HTML/CSS code.
- Image Processing: Uses a JavaScript function to compare the similarity between two images, calculating pixel differences.
- Optimize API Key Input Process: Currently, entering the API Key through the login interface every time is cumbersome. We're looking for a more intuitive and convenient method.
- RWD & Adaptive Screen Design: Ensure MimicStyler displays perfectly on all devices, offering players an enhanced user experience.
- Refine Image Similarity Comparison Algorithm: Further improve the accuracy of image similarity comparison, helping players understand their mimicry results more precisely.
- Develop In-house Image Generation Tool: Plan to develop a dedicated image generation tool for MimicStyler, eliminating reliance on the external HCTI API, ensuring more stable service quality.
- Optimize Code Input Interface: Offer more shortcut options, like Shift + Alt + F for automatic code formatting, significantly boosting coding efficiency.