Create Home.tsx
Browse files
Home.tsx
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// src/pages/Home.tsx
|
| 2 |
+
import React from 'react';
|
| 3 |
+
import { Link } from 'react-router-dom';
|
| 4 |
+
import Header from '../components/Header';
|
| 5 |
+
import Footer from '../components/Footer';
|
| 6 |
+
|
| 7 |
+
const Home: React.FC = () => {
|
| 8 |
+
return (
|
| 9 |
+
<div className="min-h-screen flex flex-col">
|
| 10 |
+
<Header />
|
| 11 |
+
<main className="flex-grow container mx-auto p-4">
|
| 12 |
+
<h1 className="text-3xl font-bold mb-4">Sentiment Analysis Tool</h1>
|
| 13 |
+
<p className="mb-4">Welcome! Analyze the sentiment of your text using advanced AI models.</p>
|
| 14 |
+
<div className="space-x-4">
|
| 15 |
+
<Link to="/login" className="bg-blue-500 text-white px-4 py-2 rounded">Login</Link>
|
| 16 |
+
<Link to="/register" className="bg-green-500 text-white px-4 py-2 rounded">Register</Link>
|
| 17 |
+
<Link to="/analyze" className="bg-purple-500 text-white px-4 py-2 rounded">Analyze Text</Link>
|
| 18 |
+
</div>
|
| 19 |
+
</main>
|
| 20 |
+
<Footer />
|
| 21 |
+
</div>
|
| 22 |
+
);
|
| 23 |
+
};
|
| 24 |
+
|
| 25 |
+
export default Home;
|