Spaces:
Sleeping
Sleeping
Update src/App.jsx
Browse files- src/App.jsx +13 -6
src/App.jsx
CHANGED
|
@@ -1,14 +1,21 @@
|
|
| 1 |
-
|
| 2 |
-
import
|
|
|
|
|
|
|
|
|
|
| 3 |
|
| 4 |
-
function App() {
|
| 5 |
return (
|
| 6 |
-
<div className="min-h-screen
|
| 7 |
-
|
|
|
|
|
|
|
| 8 |
<ICFAIChatbot />
|
| 9 |
</div>
|
| 10 |
</div>
|
| 11 |
);
|
| 12 |
}
|
| 13 |
|
| 14 |
-
|
|
|
|
|
|
|
|
|
| 1 |
+
// App.jsx (or src/main page where chatbot mounts)
|
| 2 |
+
import React from "react";
|
| 3 |
+
import ReactDOM from "react-dom/client";
|
| 4 |
+
import ICFAIChatbot from "./components/ICFAIChatbot"; // adjust path if needed
|
| 5 |
+
import "./index.css"; // your global tailwind / css
|
| 6 |
|
| 7 |
+
export default function App() {
|
| 8 |
return (
|
| 9 |
+
<div className="min-h-screen min-w-0">
|
| 10 |
+
{/* Force full-screen gradient background and horizontal layout */}
|
| 11 |
+
<div className="flex w-full min-h-screen">
|
| 12 |
+
{/* chatbot component should internally implement the 600px sidebar + chat flex */}
|
| 13 |
<ICFAIChatbot />
|
| 14 |
</div>
|
| 15 |
</div>
|
| 16 |
);
|
| 17 |
}
|
| 18 |
|
| 19 |
+
// index render (main entry)
|
| 20 |
+
const root = ReactDOM.createRoot(document.getElementById("root"));
|
| 21 |
+
root.render(<App />);
|