Spaces:
Build error
Build error
Create frontend/src/components/shared/Layout.tsx
Browse files
frontend/src/components/shared/Layout.tsx
ADDED
|
@@ -0,0 +1,64 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
// src/components/shared/Layout.tsx
|
| 2 |
+
import React from 'react';
|
| 3 |
+
import Navigation from './Navigation';
|
| 4 |
+
|
| 5 |
+
const Layout = ({ children }) => {
|
| 6 |
+
return (
|
| 7 |
+
<div className="min-h-screen bg-gray-50">
|
| 8 |
+
<Navigation />
|
| 9 |
+
|
| 10 |
+
<main className="max-w-7xl mx-auto px-4 py-6">
|
| 11 |
+
{/* Alert for announcements */}
|
| 12 |
+
<div className="mb-6 bg-blue-50 border-l-4 border-blue-500 p-4">
|
| 13 |
+
<div className="flex">
|
| 14 |
+
<div className="flex-1">
|
| 15 |
+
<p className="text-sm text-blue-700">
|
| 16 |
+
Welcome to EduAI Platform! Start your learning journey today.
|
| 17 |
+
</p>
|
| 18 |
+
</div>
|
| 19 |
+
</div>
|
| 20 |
+
</div>
|
| 21 |
+
|
| 22 |
+
{/* Main content */}
|
| 23 |
+
<div className="space-y-6">
|
| 24 |
+
{children}
|
| 25 |
+
</div>
|
| 26 |
+
</main>
|
| 27 |
+
|
| 28 |
+
{/* Footer */}
|
| 29 |
+
<footer className="bg-white border-t mt-12">
|
| 30 |
+
<div className="max-w-7xl mx-auto px-4 py-8">
|
| 31 |
+
<div className="grid grid-cols-1 md:grid-cols-3 gap-8">
|
| 32 |
+
<div>
|
| 33 |
+
<h3 className="text-lg font-semibold mb-4">EduAI Platform</h3>
|
| 34 |
+
<p className="text-gray-600">
|
| 35 |
+
Empowering education through AI-driven personalized learning.
|
| 36 |
+
</p>
|
| 37 |
+
</div>
|
| 38 |
+
<div>
|
| 39 |
+
<h3 className="text-lg font-semibold mb-4">Quick Links</h3>
|
| 40 |
+
<ul className="space-y-2 text-gray-600">
|
| 41 |
+
<li><a href="/about" className="hover:text-blue-600">About</a></li>
|
| 42 |
+
<li><a href="/help" className="hover:text-blue-600">Help Center</a></li>
|
| 43 |
+
<li><a href="/privacy" className="hover:text-blue-600">Privacy Policy</a></li>
|
| 44 |
+
</ul>
|
| 45 |
+
</div>
|
| 46 |
+
<div>
|
| 47 |
+
<h3 className="text-lg font-semibold mb-4">Connect</h3>
|
| 48 |
+
<ul className="space-y-2 text-gray-600">
|
| 49 |
+
<li><a href="/contact" className="hover:text-blue-600">Contact Us</a></li>
|
| 50 |
+
<li><a href="/feedback" className="hover:text-blue-600">Feedback</a></li>
|
| 51 |
+
<li><a href="/community" className="hover:text-blue-600">Community</a></li>
|
| 52 |
+
</ul>
|
| 53 |
+
</div>
|
| 54 |
+
</div>
|
| 55 |
+
<div className="mt-8 pt-8 border-t text-center text-gray-600">
|
| 56 |
+
<p>© {new Date().getFullYear()} EduAI Platform. All rights reserved.</p>
|
| 57 |
+
</div>
|
| 58 |
+
</div>
|
| 59 |
+
</footer>
|
| 60 |
+
</div>
|
| 61 |
+
);
|
| 62 |
+
};
|
| 63 |
+
|
| 64 |
+
export default Layout;
|