I am going to explore the project directory and check the existing files and dependencies.
I will inspect package.json to see what libraries and packages are installed in this project.
I will now install lucide-react and canvas-confetti to add icons and interactive UI feedback.
I will check src/index.css and index.html.
I will inspect index.html.
I will update index.html with a title like "TextCraft Studio - Text Analyzer & Document Manager" and sleek Google Fonts.
I will now update src/index.css with styling for font families, custom scrollbars, animations, and glowing backdrop utilities.
I will now create src/types.ts to define the TypeScript data structures for document files, text statistics, and UI state.
I will now create src/utils/textAnalyzer.ts containing accurate text analysis logic for English, Bengali, and Unicode characters.
I will now create src/utils/fileDownloader.ts to handle downloads in .txt, .md, and .doc formats.
I will now create src/utils/storage.ts to manage persistence for saved files, auto-drafts, and preset sample texts.
I will now create src/utils/translations.ts to support both Bengali and English language UI labels.
I will now create src/components/Header.tsx featuring the header bar with the 3-line hamburger menu button, quick paste action, word badge, and language toggle.
I will remove the unused Menu import from src/components/Header.tsx.
I will now create src/components/TextEditor.tsx with rich typing capabilities, clipboard paste button, quick presets, case transform buttons, and text-to-speech reading.
I will now create src/components/StatsDashboard.tsx to display all text metrics: words, characters, spaces, paragraphs, file size (Bytes/KB), reading duration, and keyword frequencies.
I will now create src/components/ThreeLineDrawer.tsx to handle the slide-over drawer triggered by the header's 3-line hamburger menu.
I will now create src/components/SaveModal.tsx for quick 1-click saving with document name input.
I will now create src/components/DownloadModal.tsx.
I will remove the unused Check import from src/components/DownloadModal.tsx.
I will now build the main src/App.tsx component connecting all the editor, analyzer, slide-over drawer, modals, and persistence states.
I will now run build_project to verify there are no TypeScript or compilation errors.
I will now run build_project one last time to ensure everything is perfect.
আপনার দেওয়া সব নির্দেশনাবলী অনুযায়ী TextCraft Studio (টেক্সট এনালাইজার & ডকুমেন্ট স্টুডিও) তৈরি করা হয়েছে।
✨ যা যা তৈরি করা হয়েছে:
-
ইনপুট বক্স & পেস্ট ফিচার (Input Box & Paste Button):
- একটি আধুনিক ও রেসপনসিভ টেক্সট ইনপুট বক্স যেখানে আপনি সরাসরি টাইপ করতে পারবেন।
- একটি আকর্ষণীয় "📋 পেস্ট করুন (Paste)" বাটন রয়েছে, যাতে ক্লিক করলেই ক্লিপবোর্ডে থাকা লেখা সরাসরি ইনপুট বক্সে চলে আসে (এছাড়াও কীবোর্ড শর্টকাট
Ctrl+V বা ⌘V কাজ করবে)।
- সাথে রয়েছে কপি, ক্লিয়ার, আন্ডু, টেক্সট-টু-স্পিচ অডিও রিডিং এবং ক্যাপিটালাইজেশন টুলস।
-
নিচের বিস্তারিত টেক্সট মেট্রিক্স ও পরিসংখ্যান (Real-time Stats Dashboard):
ইনপুট বক্সের নিচে রিয়েল-টাইমে নিখুঁতভাবে হিসাব করে দেখানো হচ্ছে:
- শব্দ সংখ্যা (Word Count)
- মোট অক্ষর (Characters) এবং স্পেস ছাড়া অক্ষর
- মোট স্পেস (Total Spaces)
- প্যারাগ্রাফ সংখ্যা (Paragraphs)
- ফাইলের সাইজ (File Size in Bytes / KB) (আসল UTF-8 মেমোরি সাইজ)
- অতিরিক্ত বিস্তারিত: বাক্য (Sentences), লাইন সংখ্যা (Lines), পড়ার সময়কাল (Reading Time), বলার সময়কাল (Speaking Time) এবং শীর্ষ ব্যবহৃত শব্দের ঘনত্ব (Keyword Density)।
-
উপরে হেডারে ৩-লাইনের মেন্যু বাটন (3-Line Hamburger Menu & Drawer Panel):
- হেডারের ডানপাশে স্পষ্ট ☰ ৩-লাইন মেন্যু বাটন রয়েছে।
- ৩-লাইনে ক্লিক করলে একটি মসৃণ স্লাইড-ওভার কন্ট্রোল প্যানেল ওপেন হয় যাতে ৩টি প্রধান সেকশন রয়েছে:
- 📥 ডাউনলোড (Download):
.txt, .md এবং .doc (Microsoft Word) ফরম্যাটে তাৎক্ষণিক ফাইল ডাউনলোডের অপশন।
- 💾 সংরক্ষণ (Save File): এখানে ফাইলের একটি পছন্দের নাম দিয়ে সেভ বাটনে ক্লিক করলেই ফাইলটি সফলভাবে ব্রাউজারে সংরক্ষিত হয়ে যায়।
- 📁 সংরক্ষিত ফাইলসমূহ (Saved Files): আপনার সেভ করা ফাইলগুলো সুন্দর কার্ড আকারে তারিখ, শব্দের সংখ্যা এবং প্রিভিউসহ দেখা যাবে। যেকোনো ফাইলে ক্লিক করে এক ক্লিকে এডিটরে রি-লোড করা বা আলাদাভাবে ডাউনলোড ও ডিলিট করা যাবে।
-
৩টি ফরম্যাটে ডাউনলোড (.txt, .md, .doc):
.txt (Universal Plain Text)
.md (Markdown Formatted File)
.doc (Microsoft Word ডকুমেন্ট যা MS Word, Google Docs বা WPS Office-এ ওপেন করা যাবে)
Files built: index.html, src/index.css, src/types.ts, src/utils/textAnalyzer.ts, src/utils/fileDownloader.ts, src/utils/storage.ts, src/utils/translations.ts, src/components/Header.tsx, src/components/TextEditor.tsx, src/components/StatsDashboard.tsx, src/components/ThreeLineDrawer.tsx, src/components/SaveModal.tsx, src/components/DownloadModal.tsx, src/App.tsx