Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
title: "Genome-Wide Association Study Meta-Analysis For Parkinson Disease Motor Subtypes (S53. 005)"
authors: ["Isabel Alfradique-Dunham", "Cornelis Blauwendraat", "Rami Al-Ouran", "Rainer von Coelln", "Manuela Tan", "Emily Hill", "Lan Luo", "Emily Young", "Amanda Stillwell", "Zhandong Liu"]
year: 2019
venue: "AAN Enterprises"
type: "paper"
cover: "../../assets/paper-vision.jpg"
links:
pdf: ""
code: ""
website: ""
demo: ""
slides: ""
video: ""
description: "Published in AAN Enterprises."
featured: false
---
Published in AAN Enterprises.
45 changes: 12 additions & 33 deletions src/pages/index.astro
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ const papers = (await getCollection('publications'))
.sort((a, b) => b.data.year - a.data.year)
.slice(0, 3);

const activities = (await getCollection('activities'))
const news = (await getCollection('news'))
.sort((a, b) => b.data.date.valueOf() - a.data.date.valueOf())
.slice(0, 3);
---
Expand Down Expand Up @@ -124,46 +124,25 @@ const activities = (await getCollection('activities'))
</div>
</section>

<!-- Latest Activities -->
<!-- Latest News -->
<section class="py-16 bg-white">
<div class="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div class="flex justify-between items-end mb-8">
<h2 class="text-3xl font-bold text-gray-900" data-i18n-key="section.latestNews">Latest Activities</h2>
<a href="/activities" class="text-blue-600 hover:text-blue-700 font-medium flex items-center gap-1 group">
<h2 class="text-3xl font-bold text-gray-900" data-i18n-key="section.latestNews">Latest News</h2>
<a href="/news#latestNews" class="text-blue-600 hover:text-blue-700 font-medium flex items-center gap-1 group">
<span data-i18n-key="section.viewAll">View all</span> <ArrowRight className="w-4 h-4 group-hover:translate-x-1 transition-transform" />
</a>
</div>

<div class="grid gap-8 md:grid-cols-3">
{activities.map(item => {
const link = `/activities/${item.id.replace(/\.[^/.]+$/, "")}`;
return (
<div class="group bg-white rounded-xl border border-gray-100 overflow-hidden hover:shadow-lg transition-all">
{item.data.cover && (
<a href={link} class="block h-48 overflow-hidden">
<Image
src={item.data.cover}
alt={item.data.title}
class="w-full h-full object-cover transition-transform duration-500 group-hover:scale-110"
quality={80}
format="webp"
widths={[320, 480, 600]}
sizes="(max-width: 768px) 100vw, (max-width: 1200px) 50vw, 33vw"
/>
</a>
)}
<div class="p-6">
<div class="text-sm text-gray-500 mb-2 flex items-center gap-2">
<Calendar className="w-4 h-4" />
{item.data.date.toLocaleDateString()}
</div>
<h3 class="text-xl font-bold text-gray-900 group-hover:text-blue-600 transition-colors mb-2 line-clamp-2">
<a href={link}>{item.data.title}</a>
</h3>
<p class="text-gray-600 line-clamp-3 text-sm">{item.data.description || (item.body || '').substring(0, 100)}</p>
</div>
<div class="border-l-2 border-gray-100 pl-8 space-y-8 max-w-4xl">
{news.map(item => (
<div class="relative group">
<span class="absolute -left-[37px] top-1.5 w-4 h-4 rounded-full bg-blue-100 border-2 border-white ring-1 ring-blue-600"></span>
<time class="block text-sm text-gray-500 mb-2">{item.data.date.toISOString().split('T')[0]}</time>
<h3 class="text-xl font-bold text-gray-900 mb-2">{item.data.title}</h3>
{item.data.summary && <p class="text-gray-600">{item.data.summary}</p>}
</div>
)})}
))}
</div>
</div>
</section>
Expand Down
2 changes: 1 addition & 1 deletion src/pages/news.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const allNews = (await getCollection('news')).sort((a, b) => b.data.date.valueOf
<h1 class="text-4xl font-bold text-gray-900 mb-4" data-i18n-key="news.title">News & Updates</h1>
</div>

<div class="border-l-2 border-gray-100 pl-8 space-y-12">
<div id="latestNews" class="border-l-2 border-gray-100 pl-8 space-y-12">
{allNews.map(item => (
<div class="relative">
<span class="absolute -left-[37px] top-1.5 w-4 h-4 rounded-full bg-blue-100 border-2 border-white ring-1 ring-blue-600"></span>
Expand Down