forked from UKSOURCE/hailearning.edu.vn
feat: create Partnership and Blog functional components
This commit is contained in:
47
app/components/blog/ResearcherSpotlight.tsx
Normal file
47
app/components/blog/ResearcherSpotlight.tsx
Normal file
@@ -0,0 +1,47 @@
|
||||
const researchers = [
|
||||
{
|
||||
name: "Dr. Sarah Jenkins",
|
||||
field: "Cognitive Linguistics",
|
||||
bio: "Exploring the intersection of language processing and modern ethical frameworks in digital communication.",
|
||||
avatar: "https://storage.googleapis.com/uxpilot-auth.appspot.com/avatars/avatar-5.jpg",
|
||||
},
|
||||
{
|
||||
name: "Prof. Marcus Chen",
|
||||
field: "Economic History",
|
||||
bio: "Recent recipient of the European Heritage Grant for his work on interwar economic policies.",
|
||||
avatar: "https://storage.googleapis.com/uxpilot-auth.appspot.com/avatars/avatar-4.jpg",
|
||||
},
|
||||
{
|
||||
name: "Dr. Elena Rostova",
|
||||
field: "Political Science",
|
||||
bio: "Leading the new comparative study on post-war democratic institutions across Western Europe.",
|
||||
avatar: "https://storage.googleapis.com/uxpilot-auth.appspot.com/avatars/avatar-6.jpg",
|
||||
},
|
||||
];
|
||||
|
||||
export default function ResearcherSpotlight() {
|
||||
return (
|
||||
<div className="bg-white rounded-xl border border-ui-border shadow-soft p-6">
|
||||
<div className="flex items-center justify-between mb-6 pb-4 border-b border-ui-border">
|
||||
<div className="blog-widget-title font-bold text-ui-text">Researcher Spotlight</div>
|
||||
<a href="#" className="text-sm text-brand-blue font-medium hover:underline">View All</a>
|
||||
</div>
|
||||
<div className="space-y-6">
|
||||
{researchers.map((r) => (
|
||||
<div key={r.name} className="flex gap-4 items-start group cursor-pointer">
|
||||
<img
|
||||
src={r.avatar}
|
||||
alt={r.name}
|
||||
className="w-16 h-16 rounded-lg object-cover border border-ui-border group-hover:border-brand-blue transition-colors"
|
||||
/>
|
||||
<div>
|
||||
<div className="font-bold text-ui-text text-sm group-hover:text-brand-blue transition-colors">{r.name}</div>
|
||||
<p className="text-xs text-brand-blue font-medium mb-1">{r.field}</p>
|
||||
<p className="text-xs text-ui-muted line-clamp-2">{r.bio}</p>
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user