Skip to content

Commit 09dfccb

Browse files
chore: research lab page added
1 parent ed1478c commit 09dfccb

File tree

1 file changed

+52
-0
lines changed

1 file changed

+52
-0
lines changed
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
import React from 'react';
2+
import { Beaker, LineChart, BarChart3, Activity } from 'lucide-react';
3+
4+
export const ResearchLab: React.FC = () => {
5+
const factors = [
6+
{ name: 'Momentum', description: 'Price momentum factors', icon: Activity, color: 'blue' },
7+
{ name: 'Value', description: 'Valuation metrics', icon: BarChart3, color: 'green' },
8+
{ name: 'Size', description: 'Market capitalization', icon: LineChart, color: 'purple' },
9+
{ name: 'Volatility', description: 'Price volatility measures', icon: Activity, color: 'red' }
10+
];
11+
12+
return (
13+
<div className="p-8">
14+
<div className="mb-8">
15+
<h1 className="text-3xl font-bold text-gray-900">Research Lab</h1>
16+
<p className="text-gray-600 mt-2">Explore and analyze alpha factors</p>
17+
</div>
18+
19+
<div className="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-6 mb-8">
20+
{factors.map((factor, index) => {
21+
const Icon = factor.icon;
22+
const colorClasses = {
23+
blue: 'bg-blue-100 text-blue-600',
24+
green: 'bg-green-100 text-green-600',
25+
purple: 'bg-purple-100 text-purple-600',
26+
red: 'bg-red-100 text-red-600'
27+
};
28+
29+
return (
30+
<div key={index} className="bg-white rounded-xl shadow-sm border border-gray-200 p-6 hover:shadow-md transition-shadow">
31+
<div className={`w-12 h-12 ${colorClasses[factor.color as keyof typeof colorClasses]} rounded-lg flex items-center justify-center mb-4`}>
32+
<Icon className="w-6 h-6" />
33+
</div>
34+
<h3 className="text-lg font-semibold text-gray-900 mb-2">{factor.name}</h3>
35+
<p className="text-gray-600 text-sm">{factor.description}</p>
36+
<button className="mt-4 w-full bg-gray-100 text-gray-700 py-2 rounded-lg hover:bg-gray-200 transition-colors text-sm">
37+
Analyze Factor
38+
</button>
39+
</div>
40+
);
41+
})}
42+
</div>
43+
44+
<div className="bg-white rounded-xl shadow-sm border border-gray-200 p-6">
45+
<h3 className="text-lg font-semibold text-gray-900 mb-4">Factor Performance</h3>
46+
<div className="h-96 bg-gray-100 rounded-lg flex items-center justify-center text-gray-500">
47+
Factor performance charts will be displayed here
48+
</div>
49+
</div>
50+
</div>
51+
);
52+
};

0 commit comments

Comments
 (0)