feat: Improve loading, error handling, and console output

Adds a loading animation fade-in and reduces initial loading time.
Suppresses Tailwind CDN production warnings in the console for a cleaner developer experience.
Enhances error messages for missing API keys and API communication failures, providing more specific guidance.
Removes redundant content from README.md and updates the banner image reference.
Sets body overflow to hidden to prevent unwanted scrolling and ensures the application handles its own scroll.
This commit is contained in:
m5rcel { Marcel }
2025-12-05 13:19:05 +01:00
parent 27ea26e36d
commit 89e465ed12
4 changed files with 35 additions and 135 deletions

11
App.tsx
View File

@@ -12,24 +12,23 @@ const App: React.FC = () => {
// Simulate initial asset loading
const timer = setTimeout(() => {
setIsLoading(false);
}, 1500);
}, 1000);
return () => clearTimeout(timer);
}, []);
if (isLoading) {
return (
<div className="h-screen w-screen bg-[#313338] flex flex-col items-center justify-center">
<div className="relative w-24 h-24 mb-4 animate-bounce">
<div className="h-screen w-screen bg-[#313338] flex flex-col items-center justify-center animate-fade-in">
<div className="relative w-24 h-24 mb-4">
{/* Simple Logo Placeholder */}
<div className="w-20 h-20 bg-[#5865F2] rounded-2xl flex items-center justify-center mx-auto shadow-xl">
<div className="w-20 h-20 bg-[#5865F2] rounded-2xl flex items-center justify-center mx-auto shadow-xl animate-bounce">
<svg width="48" height="48" viewBox="0 0 24 24" fill="white" xmlns="http://www.w3.org/2000/svg">
<path d="M19.25 4.5H4.75C3.50736 4.5 2.5 5.50736 2.5 6.75V17.25C2.5 18.4926 3.50736 19.5 4.75 19.5H19.25C20.4926 19.5 21.5 18.4926 21.5 17.25V6.75C21.5 5.50736 20.4926 4.5 19.25 4.5Z" stroke="white" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
<path d="M8.5 10L12 14L15.5 10" stroke="white" strokeWidth="2" strokeLinecap="round" strokeLinejoin="round"/>
</svg>
</div>
</div>
<div className="text-[#dbdee1] font-bold text-lg animate-pulse">Starting...</div>
<div className="text-[#949ba4] text-sm mt-2">Connecting to Discord-Style Interface</div>
<div className="text-[#dbdee1] font-bold text-lg animate-pulse">Starting Discord AI...</div>
</div>
);
}