Act as an expert frontend web and mobile app developer. Build a complete, production-ready "Offline Image & Audio Utility Toolkit" inside a single, self-contained HTML file (with embedded CSS and vanilla JavaScript). The entire app must work 100% offline using browser-native APIs (HTML5 Canvas, FileReader, Web Audio API) with zero external server uploads and zero external CDN dependencies that could break offline.
### 1. Visual Design & UI System
- **Theme & Aesthetic:** Use a colorful, modern light glassmorphism design (soft pastel mesh gradient background, frosted translucent white cards with subtle borders, soft shadows, and crisp dark slate typography). Do NOT use dark themes, black backgrounds, neon colors, or electric blue.
- **Mobile-First Layout:** Design for mobile portrait viewports (responsive up to desktop), featuring a sticky top header ("MediaKit Offline"), a clean dashboard grid of tools, and a bottom or back navigation bar when inside an active tool.
- **Language:** Use strictly clean English across all UI labels, buttons, code comments, and variable names.
### 2. Core Functional Tools (4 Modules)
Build a tab or card switcher so users can jump between these four working tools:
1. **Passport Photo & Custom Image Resizer:**
- Upload an image (`JPG`, `PNG`, `WEBP`).
- Offer quick preset buttons: "Indian Passport (35x45 mm / 413x531 px)", "Square Profile (1080x1080 px)", "YouTube Thumbnail (1280x720 px)", plus custom Width/Height inputs with an "Aspect Ratio Lock" toggle.
- Include a live HTML5 Canvas preview and a target file-size quality slider (10% to 100%).
- Provide a 1-tap "Download Resized Image" button.
2. **Image Format Converter & Compressor:**
- Upload any image and display original file size and dimensions.
- Allow converting between `PNG`, `JPEG`, and `WEBP` formats using Canvas `toBlob()`.
- Show the estimated new file size in KB/MB before downloading.
3. **Offline Audio Trimmer & Ringtone Cutter:**
- Upload an audio file (`MP3`, `WAV`, `OGG`, `M4A`) and decode it locally using the Web Audio API (`AudioContext`).
- Render a clean visual waveform on an HTML5 Canvas.
- Provide Start Time and End Time range sliders (with numeric seconds display), an audio preview player ("Play Selection"), and an "Export Trimmed WAV" button that encodes the sliced `AudioBuffer` into a downloadable `.wav` file.
4. **Quick Quote & Text Card Maker:**
- A lightweight graphic generator for social media cards or thumbnails.
- Inputs: Custom headline text, subtext, background gradient selector (4–5 light pastel/vibrant presets), text alignment, and font size slider.
- Render live onto an HTML5 Canvas and allow 1-tap PNG export.
### 3. Technical & Performance Requirements
- **Zero Lag & Memory Safety:** Properly revoke object URLs (`URL.revokeObjectURL`) and close unused `AudioContext` instances so the app runs smoothly on mid-range Android WebViews without memory leaks.
- **Error Handling:** Show clean, user-friendly toast notifications for unsupported file types, empty inputs, or successful file downloads.
- **Code Quality:** Write clean, modular, well-structured vanilla JavaScript inside a single `<script>` tag and clean CSS inside a single `<style>` tag so the single HTML file can be directly wrapped into an Android APK.
Landing
Comments (0)
No comments yet. Be the first!
Sign in to leave a comment
Project Tasks
74 tasks
#1
Generate system requirement document
0m 37s0.05 cr used
Done
#2
Generate personas & user flows
0m 7s0.05 cr used
Done
#5
Architecture
0m 24s0.05 cr used
Done
#6
Workspace task plan
1m 16s0.05 cr used
Done
#7
Create flow for Offline Media Creator
0m 5sCredits in parent
Done
#8
Landing
6m 22sCredits in subtasks
Done
#9
Dashboard
9m 30sCredits in subtasks
Done
#10
Image Resizer
13m 43sCredits in subtasks
Done
#11
Format Converter
6m 14sCredits in subtasks
Done
#12
Audio Trimmer
10m 0sCredits in subtasks
Done
#13
Text Card Maker
9m 2sCredits in subtasks
Done
#14
Landing / Header
0m 0s0.85 cr used
Done
#15
Landing / Hero Stage
0m 27s0.85 cr used
Done
#16
Landing / Footer
0m 0s0.85 cr used
Done
#17
Media Kit Header
0m 16sCredits in parent
Done
#18
Footer
0m 14sCredits in parent
Done
#19
Fix Landing: At tablet width the page overflows horizontally: the header nav is not contained, so the…
4m 29sCredits unavailable
Done
#20
Fix Landing: The hero motion is only generic ambient animation ( bobbing four glass primitives, on…
1m 46sCredits unavailable
Done
#21
Fix Landing: The and Manrope imports load external CDN fonts. The user requires zero external CDN…
2m 14sCredits unavailable
Done
#22
Fix Landing review findings: At tablet width the page overflows horizontally: the… (+2 more)
1m 18s0 cr used
Done
#23
Fix Landing review finding: At tablet width the page overflows horizontally: the…
0m 13s0 cr used
Done
#24
Fix Landing review finding: At tablet width the page overflows horizontally: the…
0m 11s0 cr used
Done
#25
Dashboard / Header
0m 0s0.85 cr used
Done
#26
Dashboard / Tool Grid
0m 23s0.85 cr used
Done
#27
Dashboard / Footer
0m 0s0.85 cr used
Done
#28
Image Resizer / Header
0m 0s0.85 cr used
Done
#29
Image Resizer / Workspace
1m 38s0.85 cr used
Done
#30
Image Resizer / Tool Bar
0m 33s0.85 cr used
Done
#31
Image Resizer / Footer
0m 1s0.85 cr used
Done
#32
Format Converter / Header
0m 0s0.85 cr used
Done
#33
Format Converter / Workspace
1m 11s0.85 cr used
Done
#34
Format Converter / Tool Bar
0m 27s0.85 cr used
Done
#35
Format Converter / Footer
0m 0s0.85 cr used
Done
#36
Fix Dashboard: Header nav overflows the viewport horizontally at desktop, page widens beyond 1280px
7m 42sCredits unavailable
Done
#37
Fix Dashboard review finding: Header nav overflows the viewport horizontally at desktop…
0m 15s0 cr used
Done
#38
Audio Trimmer / Header
0m 0s0.85 cr used
Done
#39
Audio Trimmer / Workspace
1m 21s0.85 cr used
Done
#40
Audio Trimmer / Tool Bar
0m 35s0.85 cr used
Done
#41
Audio Trimmer / Footer
0m 1s0.85 cr used
Done
#42
Text Card Maker / Header
0m 1s0.85 cr used
Done
#43
Text Card Maker / Workspace
1m 9s0.85 cr used
Done
#44
Text Card Maker / Tool Bar
0m 23s0.85 cr used
Done
#45
Text Card Maker / Footer
0m 0s0.85 cr used
Done
#46
Fix Dashboard review finding: Header nav overflows the viewport horizontally at desktop…
9m 3s0 cr used
Error
#47
Fix Image Resizer: Header nav overflows the viewport at desktop, causing horizontal page overflow and…
1m 40sCredits unavailable
Done
#48
Fix Image Resizer: Page shell does not fill the tablet width: header and footer are narrower than the…
17m 6sCredits unavailable
Error
#49
Fix Image Resizer review findings: Header nav overflows the viewport at desktop, causing… (+1 more)
0m 53s0 cr used
Done
#50
Fix Format Converter: The conversion effect re-runs whenever changes, so setting to and back to retriggers the…
1m 45sCredits unavailable
Done
#51
Fix Audio Trimmer: Bottom toolbar content collides at tablet width: active tool name overlaps the Back…
3m 32sCredits unavailable
Done
#52
Fix Audio Trimmer: Header nav overflows the viewport horizontally at desktop
4m 0sCredits unavailable
Done
#53
Fix Audio Trimmer: Bottom tool switcher clipped at the right edge on desktop
11m 12sCredits unavailable
Error
#54
Fix Text Card Maker: Header nav overflows the viewport at desktop, pushing the page wider than the screen
4m 17sCredits unavailable
Done
#55
Fix Text Card Maker: Tablet layout: header, toolbar and footer do not span the full viewport width
4m 17sCredits unavailable
Done
#56
Fix Dashboard review finding: Header nav overflows the viewport horizontally at desktop…
0m 16s0 cr used
Error
#57
Fix Format Converter review finding: frontend/src/components/Format Converter Workspace.jsx: the…
No comments yet. Be the first!