-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
469 lines (425 loc) · 22.7 KB
/
Copy pathindex.html
File metadata and controls
469 lines (425 loc) · 22.7 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="Michele Mattioni — Computational Neuroscientist, Engineer & Maker">
<meta name="author" content="Michele Mattioni">
<title>Michele Mattioni</title>
<!-- Favicon -->
<link rel="icon" href="favicon.ico" type="image/x-icon">
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap" rel="stylesheet">
<!-- Main Styles -->
<link rel="stylesheet" href="assets/css/main.css">
</head>
<body>
<!-- ═══════════════════════ NAVIGATION ═══════════════════════ -->
<nav class="navbar" id="navbar">
<div class="container">
<a href="#" class="navbar-brand">MM</a>
<ul class="navbar-nav" id="navMenu">
<li><a href="#home" class="active">Home</a></li>
<li><a href="#blog">Blog</a></li>
<li><a href="#projects">Projects</a></li>
<li><a href="https://github.com/mattions" target="_blank" rel="noopener">GitHub</a></li>
</ul>
<button class="nav-toggle" id="navToggle" aria-label="Toggle navigation">
<span></span><span></span><span></span>
</button>
</div>
</nav>
<!-- ═══════════════════════ HERO ═══════════════════════ -->
<section class="hero" id="home">
<div class="container">
<div class="hero-content">
<div class="hero-text">
<h1>
<span class="gradient-text">Michele</span><br>
<span class="gradient-text">Mattioni</span>
</h1>
<p class="tagline">Computational Neuroscientist · Engineer · Maker</p>
<p class="bio">
I obtained my Bachelor (hons) from the
<a href="http://www.univpm.it/">Università Politecnica delle Marche</a>,
then my Master Of Science (hons) from the
<a href="http://www.unicam.it/">Università di Camerino</a>.
<br><br>
I received my joint <strong>Ph.D.</strong> from the
<strong><a href="http://www.cam.ac.uk/">University of Cambridge</a></strong>
and the <strong><a href="http://www.ebi.ac.uk">EBI</a></strong>,
during which I studied multiscale modelling, multicompartiment neurons,
biochemical pathways and their interaction on synaptic plasticity.
</p>
<div class="social-links">
<a href="https://twitter.com/mattions" target="_blank" rel="noopener" class="social-link twitter">
<svg viewBox="0 0 24 24"><path d="M18.244 2.25h3.308l-7.227 8.26 8.502 11.24H16.17l-5.214-6.817L4.99 21.75H1.68l7.73-8.835L1.254 2.25H8.08l4.713 6.231zm-1.161 17.52h1.833L7.084 4.126H5.117z"/></svg>
Twitter
</a>
<a href="https://github.com/mattions" target="_blank" rel="noopener" class="social-link github">
<svg viewBox="0 0 24 24"><path d="M12 0c-6.626 0-12 5.373-12 12 0 5.302 3.438 9.8 8.207 11.387.599.111.793-.261.793-.577v-2.234c-3.338.726-4.033-1.416-4.033-1.416-.546-1.387-1.333-1.756-1.333-1.756-1.089-.745.083-.729.083-.729 1.205.084 1.839 1.237 1.839 1.237 1.07 1.834 2.807 1.304 3.492.997.107-.775.418-1.305.762-1.604-2.665-.305-5.467-1.334-5.467-5.931 0-1.311.469-2.381 1.236-3.221-.124-.303-.535-1.524.117-3.176 0 0 1.008-.322 3.301 1.23.957-.266 1.983-.399 3.003-.404 1.02.005 2.047.138 3.006.404 2.291-1.552 3.297-1.23 3.297-1.23.653 1.653.242 2.874.118 3.176.77.84 1.235 1.911 1.235 3.221 0 4.609-2.807 5.624-5.479 5.921.43.372.823 1.102.823 2.222v3.293c0 .319.192.694.801.576 4.765-1.589 8.199-6.086 8.199-11.386 0-6.627-5.373-12-12-12z"/></svg>
GitHub
</a>
<a href="https://www.linkedin.com/in/michele-mattioni/" target="_blank" rel="noopener" class="social-link linkedin">
<svg viewBox="0 0 24 24"><path d="M20.447 20.452h-3.554v-5.569c0-1.328-.027-3.037-1.852-3.037-1.853 0-2.136 1.445-2.136 2.939v5.667H9.351V9h3.414v1.561h.046c.477-.9 1.637-1.85 3.37-1.85 3.601 0 4.267 2.37 4.267 5.455v6.286zM5.337 7.433c-1.144 0-2.063-.926-2.063-2.065 0-1.138.92-2.063 2.063-2.063 1.14 0 2.064.925 2.064 2.063 0 1.139-.925 2.065-2.064 2.065zm1.782 13.019H3.555V9h3.564v11.452zM22.225 0H1.771C.792 0 0 .774 0 1.729v20.542C0 23.227.792 24 1.771 24h20.451C23.2 24 24 23.227 24 22.271V1.729C24 .774 23.2 0 22.222 0h.003z"/></svg>
LinkedIn
</a>
<a href="https://blog.michelemattioni.me/" target="_blank" rel="noopener" class="social-link blog">
<svg viewBox="0 0 24 24"><path d="M12 10.6c-2.7 0-4.8 2.1-4.8 4.8 0 2.7 2.1 4.8 4.8 4.8 2.7 0 4.8-2.1 4.8-4.8 0-2.7-2.1-4.8-4.8-4.8zm0-8.4C6 2.2 1 7.2 1 13.4S6 24.6 12 24.6 23 19.6 23 13.4 18 2.2 12 2.2z"/></svg>
Blog
</a>
<a href="https://www.slideshare.net/mattions/" target="_blank" rel="noopener" class="social-link slideshare">
<svg viewBox="0 0 24 24"><path d="M2 2l9.5 13.5L21 2H2zm2.1 2.1h13.8l-8 11.4-5.8-11.4z"/></svg>
Slideshare
</a>
</div>
</div>
<div class="hero-photo">
<div class="photo-frame">
<img src="assets/gfx/Michele_Mattioni_sepia.jpg" alt="Michele Mattioni">
</div>
</div>
</div>
</div>
<div class="scroll-indicator">
<span>Scroll</span>
<div class="arrow"></div>
</div>
</section>
<!-- ═══════════════════════ BLOG FEED ═══════════════════════ -->
<section class="section" id="blog">
<div class="container">
<div class="section-header fade-in">
<h2>Latest from <span class="gradient-text">the Blog</span></h2>
<p>Thoughts, updates, and deep dives from my personal blog.</p>
<div class="section-divider"></div>
</div>
<div class="blog-feed fade-in" id="blogFeed">
<div class="blog-loading">
<svg width="40" height="40" viewBox="0 0 40 40" fill="none">
<circle cx="20" cy="20" r="16" stroke="rgba(74,158,255,0.2)" stroke-width="3" fill="none"/>
<circle cx="20" cy="20" r="16" stroke="url(#loaderGrad)" stroke-width="3" fill="none" stroke-linecap="round" stroke-dasharray="80" stroke-dashoffset="20">
<animateTransform attributeName="transform" type="rotate" from="0 20 20" to="360 20 20" dur="1s" repeatCount="indefinite"/>
</circle>
<defs>
<linearGradient id="loaderGrad" x1="0" y1="0" x2="40" y2="40">
<stop offset="0%" stop-color="#4a9eff"/>
<stop offset="100%" stop-color="#8b5cf6"/>
</linearGradient>
</defs>
</svg>
<p style="margin-top: 16px; color: var(--text-muted);">Fetching latest posts...</p>
</div>
</div>
<div style="text-align: center; margin-top: 32px;" class="fade-in">
<a href="https://blog.michelemattioni.me/" target="_blank" rel="noopener" style="display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 12px; font-size: 0.9rem; font-weight: 600; color: var(--text-primary); background: var(--gradient-accent); transition: all 0.3s ease; text-decoration: none;">
<svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor"><path d="M12 10.6c-2.7 0-4.8 2.1-4.8 4.8 0 2.7 2.1 4.8 4.8 4.8 2.7 0 4.8-2.1 4.8-4.8 0-2.7-2.1-4.8-4.8-4.8zm0-8.4C6 2.2 1 7.2 1 13.4S6 24.6 12 24.6 23 19.6 23 13.4 18 2.2 12 2.2z"/></svg>
Read the Full Blog
</a>
</div>
</div>
</section>
<!-- ═══════════════════════ PROJECTS ═══════════════════════ -->
<section class="section" id="projects">
<div class="container">
<div class="section-header fade-in">
<h2>My <span class="gradient-text">Projects</span></h2>
<p>A collection of work spanning computational neuroscience, sustainability, and engineering.</p>
<div class="section-divider"></div>
</div>
<div class="projects-grid">
<!-- Project 1: Neuronvisio -->
<div class="glass-card project-card fade-in">
<div class="card-header">
<span class="card-category">Academic</span>
</div>
<h3>Neuronvisio — A Neuron Companion</h3>
<p>A Graphical User Interface for the NEURON simulator environment with 3D capabilities. Makes it easy to select and investigate sections' properties with matplotlib integration.</p>
<div class="card-tags">
<span class="tag">3D Visualization</span>
<span class="tag">Computational Neuroscience</span>
<span class="tag">NeuroML</span>
</div>
<div class="card-meta">
<span>2012</span>
<a href="#" class="card-link" onclick="showProjectModal('neuronvisio'); return false;">Details →</a>
</div>
</div>
<!-- Project 2: Multiscale Modelling -->
<div class="glass-card project-card fade-in">
<div class="card-header">
<span class="card-category">Academic</span>
</div>
<h3>Multiscale Modelling — Integrating Electrical and Biochemical</h3>
<p>Developed an event-driven algorithm to integrate different simulators for multiscale modeling of a Medium Spiny Neuron with 1,504 explicit spines, where plasticity is computed from the integration of electrical and biochemical processes.</p>
<div class="card-tags">
<span class="tag">Multiscale Modelling</span>
<span class="tag">Event Driven</span>
<span class="tag">MSN</span>
<span class="tag">Plasticity</span>
</div>
<div class="card-meta">
<span>2013</span>
<a href="https://github.com/mattions/TimeScales" target="_blank" rel="noopener" class="card-link">Code →</a>
</div>
</div>
<!-- Project 3: NeuroML -->
<div class="glass-card project-card fade-in">
<div class="card-header">
<span class="card-category">Academic</span>
</div>
<h3>NeuroML & Standards</h3>
<p>Advancing standard model representation in computational neuroscience, similar to SBML in systems biology. A "Lego system" where different models can be plugged together for complex simulations.</p>
<div class="card-tags">
<span class="tag">Standards</span>
<span class="tag">NeuroML</span>
<span class="tag">SBML</span>
</div>
<div class="card-meta">
<span>2012</span>
<a href="https://github.com/NeuralEnsemble/libNeuroML" target="_blank" rel="noopener" class="card-link">Contribute →</a>
</div>
</div>
<!-- Project 4: Science & Society -->
<div class="glass-card project-card fade-in">
<div class="card-header">
<span class="card-category">Academic</span>
</div>
<h3>Science and Society Program</h3>
<p>Involved in the EMBL-EBI Science and Society program, organizing conferences on the Personal Genome (2009) and "Who Owns Science" — addressing the role of patents and their effect on scientific discovery.</p>
<div class="card-tags">
<span class="tag">Public Engagement</span>
<span class="tag">EMBL-EBI</span>
<span class="tag">Science Policy</span>
</div>
<div class="card-meta">
<span>2009–2010</span>
</div>
</div>
<!-- Project 5: SustainableSouk -->
<div class="glass-card project-card fade-in">
<div class="card-header">
<span class="card-category">Sustainability</span>
</div>
<h3>SustainableSouk</h3>
<p>A geolocalized marketplace connecting local producers (urban growers, small farmers) with busy customers. Set up in collaboration with Transition Cambridge and concluded in 2015.</p>
<div class="card-tags">
<span class="tag">Local Food</span>
<span class="tag">Geospatial</span>
<span class="tag">Maps</span>
</div>
<div class="card-meta">
<span>2012–2015</span>
</div>
</div>
<!-- Project 6: Coinduit -->
<div class="glass-card project-card fade-in">
<div class="card-header">
<span class="card-category">FinTech</span>
</div>
<h3>Coinduit</h3>
<p>A platform making it easy and quick to buy bitcoins in the UK. A practical solution for the growing demand for cryptocurrency access.</p>
<div class="card-tags">
<span class="tag">Bitcoin</span>
<span class="tag">FinTech</span>
<span class="tag">Payments</span>
</div>
<div class="card-meta">
<span>2014</span>
<a href="https://coinduit.io" target="_blank" rel="noopener" class="card-link">Visit →</a>
</div>
</div>
</div>
</div>
</section>
<!-- ═══════════════════════ FOOTER ═══════════════════════ -->
<footer class="footer">
<div class="container">
<p>© <span id="footerYear"></span> Michele Mattioni · Built with care</p>
<p style="margin-top: 8px; font-size: 0.75rem;">
<a href="https://github.com/mattions/mattions.github.com" target="_blank" rel="noopener">View Source</a>
</p>
</div>
</footer>
<!-- ═══════════════════════ JAVASCRIPT ═══════════════════════ -->
<script>
// ── Year ──
document.getElementById('footerYear').textContent = new Date().getFullYear();
// ── Navbar scroll effect ──
const navbar = document.getElementById('navbar');
window.addEventListener('scroll', () => {
navbar.classList.toggle('scrolled', window.scrollY > 50);
});
// ── Mobile nav toggle ──
const navToggle = document.getElementById('navToggle');
const navMenu = document.getElementById('navMenu');
navToggle.addEventListener('click', () => {
navMenu.classList.toggle('open');
});
// Close mobile nav on link click
navMenu.querySelectorAll('a').forEach(link => {
link.addEventListener('click', () => navMenu.classList.remove('open'));
});
// ── Active nav link ──
const sections = document.querySelectorAll('section[id]');
const navLinks = document.querySelectorAll('.navbar-nav a[href^="#"]');
window.addEventListener('scroll', () => {
let current = '';
sections.forEach(section => {
const sectionTop = section.offsetTop - 100;
if (window.scrollY >= sectionTop) {
current = section.getAttribute('id');
}
});
navLinks.forEach(link => {
link.classList.remove('active');
if (link.getAttribute('href') === '#' + current) {
link.classList.add('active');
}
});
});
// ── Fade-in on scroll ──
const fadeEls = document.querySelectorAll('.fade-in');
const fadeObserver = new IntersectionObserver((entries) => {
entries.forEach(entry => {
if (entry.isIntersecting) {
entry.target.classList.add('visible');
fadeObserver.unobserve(entry.target);
}
});
}, { threshold: 0.1, rootMargin: '0px 0px -50px 0px' });
fadeEls.forEach(el => fadeObserver.observe(el));
// ── Blog Feed ──
async function fetchBlogFeed() {
const feedEl = document.getElementById('blogFeed');
try {
// Use rss2json.com API (free, handles CORS, converts RSS to JSON)
const apiUrl = 'https://api.rss2json.com/v1/api.json?rss_url=' + encodeURIComponent('https://blog.michelemattioni.me/feed/');
const response = await fetch(apiUrl, { signal: AbortSignal.timeout(10000) });
if (!response.ok) throw new Error('HTTP ' + response.status);
const json = await response.json();
if (json.status !== 'ok' || !json.items || json.items.length === 0) {
feedEl.innerHTML = '<div class="blog-error">No blog posts found. <a href="https://blog.michelemattioni.me/">Visit the blog →</a></div>';
return;
}
let html = '';
const maxItems = Math.min(json.items.length, 5);
for (let i = 0; i < maxItems; i++) {
const item = json.items[i];
const title = item.title || '';
const link = item.link || '';
const description = item.description || '';
const pubDate = item.pubDate || '';
const date = pubDate ? new Date(pubDate).toLocaleDateString('en-US', { year: 'numeric', month: 'long', day: 'numeric' }) : '';
// Strip HTML tags from description
const plainDesc = description.replace(/<[^>]*>/g, '').trim();
const excerpt = plainDesc.substring(0, 180) + (plainDesc.length > 180 ? '...' : '');
html += `
<div class="glass-card blog-item">
<div class="blog-date">${date}</div>
<h3><a href="${link}" target="_blank" rel="noopener">${title}</a></h3>
<p class="blog-excerpt">${excerpt}</p>
<a href="${link}" target="_blank" rel="noopener" class="blog-more">Read more →</a>
</div>
`;
}
feedEl.innerHTML = html;
} catch (err) {
feedEl.innerHTML = `
<div class="glass-card blog-item" style="text-align:center; padding: 40px;">
<p style="color: var(--text-secondary); margin-bottom: 12px;">Unable to load the live feed.</p>
<a href="https://blog.michelemattioni.me/" target="_blank" rel="noopener" style="display: inline-flex; align-items: center; gap: 8px; padding: 12px 28px; border-radius: 12px; font-size: 0.9rem; font-weight: 600; color: var(--text-primary); background: var(--gradient-accent);">
<svg width="18" height="18" viewBox="0 0 24 24" fill="currentColor"><path d="M12 10.6c-2.7 0-4.8 2.1-4.8 4.8 0 2.7 2.1 4.8 4.8 4.8 2.7 0 4.8-2.1 4.8-4.8 0-2.7-2.1-4.8-4.8-4.8zm0-8.4C6 2.2 1 7.2 1 13.4S6 24.6 12 24.6 23 19.6 23 13.4 18 2.2 12 2.2z"/></svg>
Visit blog.michelemattioni.me
</a>
</div>
`;
}
}
// Fetch blog feed eagerly on page load (not just on intersection)
document.addEventListener('DOMContentLoaded', () => {
// Try immediately; if element is not yet in DOM, retry after a short delay
const blogFeed = document.getElementById('blogFeed');
if (blogFeed) {
fetchBlogFeed();
} else {
setTimeout(() => {
if (document.getElementById('blogFeed')) {
fetchBlogFeed();
}
}, 500);
}
});
// ── Project Modal Data ──
const projectData = {
neuronvisio: {
title: 'Neuronvisio',
content: `
<p>Neuronvisio is a Graphical User Interface for NEURON simulator environment with 3D capabilities.</p>
<ul style="margin: 16px 0; padding-left: 20px; color: var(--text-secondary);">
<li>3D visualization of the model with runtime modification</li>
<li>Creation of vectors to record any variables</li>
<li>Pylab integration for direct plotting</li>
<li>Timecourse exploration with color-coded scales</li>
<li>Save results for later analysis</li>
<li>Automatic download and running of models from ModelDB</li>
</ul>
<p>The paper was published in <a href="http://www.frontiersin.org/neuroinformatics/10.3389/fninf.2012.00020/abstract" target="_blank">Frontiers in Neuroinformatics</a>.</p>
<p><a href="http://neuronvisio.org" target="_blank">neuronvisio.org →</a></p>
`
}
};
function showProjectModal(name) {
const data = projectData[name];
if (!data) return;
// Create modal
const modal = document.createElement('div');
modal.style.cssText = `
position: fixed; inset: 0; z-index: 2000;
background: rgba(0,0,0,0.7); backdrop-filter: blur(10px);
display: flex; align-items: center; justify-content: center;
opacity: 0; transition: opacity 0.3s ease;
`;
modal.innerHTML = `
<div style="
background: var(--bg-secondary); border: 1px solid var(--glass-border);
border-radius: var(--border-radius); padding: 36px; max-width: 560px;
width: 90%; max-height: 80vh; overflow-y: auto;
box-shadow: var(--shadow-lg);
">
<div style="display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px;">
<h2 style="font-size: 1.4rem; font-weight: 800;">${data.title}</h2>
<button onclick="this.closest('div[style*=position]').nextElementSibling.remove(); this.closest('div[style*=position]').remove()" style="
background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer;
width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
border-radius: 8px; transition: all 0.2s;
" onmouseover="this.style.color='var(--text-primary)'; this.style.background='rgba(255,255,255,0.06)'" onmouseout="this.style.color='var(--text-muted)'; this.style.background='none'">×</button>
</div>
<div style="color: var(--text-secondary); line-height: 1.8;">${data.content}</div>
</div>
`;
// Add the close button's sibling reference
document.body.appendChild(modal);
// Trigger animation
requestAnimationFrame(() => modal.style.opacity = '1');
// Close on backdrop click
modal.addEventListener('click', (e) => {
if (e.target === modal) {
modal.style.opacity = '0';
setTimeout(() => modal.remove(), 300);
}
});
// Close on Escape
document.addEventListener('keydown', function handler(e) {
if (e.key === 'Escape') {
modal.style.opacity = '0';
setTimeout(() => modal.remove(), 300);
document.removeEventListener('keydown', handler);
}
});
}
</script>
</body>
</html>