Style event items as isolated box cards
This commit is contained in:
@@ -67,10 +67,16 @@ export default function EventTimeline() {
|
|||||||
const renderEventCard = (ev, i, arrLength) => (
|
const renderEventCard = (ev, i, arrLength) => (
|
||||||
<div key={ev.id} style={{
|
<div key={ev.id} style={{
|
||||||
display: 'flex', flexDirection: 'column',
|
display: 'flex', flexDirection: 'column',
|
||||||
paddingBottom: i < arrLength - 1 ? '1rem' : '0',
|
background: 'rgba(255, 255, 255, 0.03)',
|
||||||
|
border: '1px solid rgba(255, 255, 255, 0.05)',
|
||||||
|
borderRadius: '12px',
|
||||||
|
padding: '1rem',
|
||||||
marginBottom: i < arrLength - 1 ? '1rem' : '0',
|
marginBottom: i < arrLength - 1 ? '1rem' : '0',
|
||||||
borderBottom: i < arrLength - 1 ? '1px solid rgba(255,255,255,0.05)' : 'none'
|
transition: 'transform 0.2s ease, background 0.2s ease'
|
||||||
}}>
|
}}
|
||||||
|
onMouseEnter={(e) => e.currentTarget.style.background = 'rgba(255, 255, 255, 0.06)'}
|
||||||
|
onMouseLeave={(e) => e.currentTarget.style.background = 'rgba(255, 255, 255, 0.03)'}
|
||||||
|
>
|
||||||
<div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: '0.5rem' }}>
|
<div style={{ display: 'flex', justifyContent: 'space-between', marginBottom: '0.5rem' }}>
|
||||||
<span style={{ fontSize: '0.85rem', color: 'var(--text-secondary)' }}>
|
<span style={{ fontSize: '0.85rem', color: 'var(--text-secondary)' }}>
|
||||||
{ev.start_time.substring(0, 5)} - {ev.end_time.substring(0, 5)}
|
{ev.start_time.substring(0, 5)} - {ev.end_time.substring(0, 5)}
|
||||||
|
|||||||
Reference in New Issue
Block a user