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

View File

@@ -4,6 +4,16 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Discord-Style AI Chat</title>
<!-- Script to suppress Tailwind CDN production warning for a cleaner console -->
<script>
(function() {
var originalWarn = console.warn;
console.warn = function(...args) {
if (args[0] && typeof args[0] === 'string' && args[0].includes('cdn.tailwindcss.com')) return;
originalWarn.apply(console, args);
};
})();
</script>
<script src="https://cdn.tailwindcss.com"></script>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap" rel="stylesheet">
<style>
@@ -11,6 +21,7 @@
font-family: 'Inter', sans-serif;
background-color: #313338;
color: #dbdee1;
overflow: hidden; /* Prevent body scroll, let app handle it */
}
/* Custom Scrollbar to match Discord feel */
::-webkit-scrollbar {
@@ -123,5 +134,6 @@
</head>
<body>
<div id="root"></div>
<script type="module" src="./index.tsx"></script>
</body>
</html>