Skip to content
Merged
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
2 changes: 1 addition & 1 deletion src/components/Events.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -418,7 +418,7 @@

{/* Date Badge */}
<div className="absolute top-3 left-3 sm:top-4 sm:left-4 z-10">
<div className="bg-blue-500/90 backdrop-blur-sm text-white px-3 py-1.5 sm:px-4 sm:py-2 rounded-lg sm:rounded-xl shadow-lg">
<div className="relative bg-white/20 backdrop-blur-lg text-white font-medium px-5 py-2.5 rounded-xl border border-white/40 shadow-[0_4px_20px_rgba(255,255,255,0.15)] hover:bg-white/30 hover:border-white/60 hover:shadow-[0_4px_30px_rgba(255,255,255,0.25)] transition-all duration-300 ease-out">
<p className="text-xs sm:text-sm font-semibold">
{new Date(event.startDate).toLocaleDateString('en-US', {
month: 'short',
Expand Down Expand Up @@ -499,7 +499,7 @@
{timelineData.map((event, index) => {
// Calculate when each item should appear based on scroll progress
const itemOffset = index / (timelineData.length - 1);
const itemProgress = useTransform(

Check failure on line 502 in src/components/Events.jsx

View workflow job for this annotation

GitHub Actions / build (20.x)

React Hook "useTransform" cannot be called inside a callback. React Hooks must be called in a React function component or a custom React Hook function

Check failure on line 502 in src/components/Events.jsx

View workflow job for this annotation

GitHub Actions / build (18.x)

React Hook "useTransform" cannot be called inside a callback. React Hooks must be called in a React function component or a custom React Hook function
scrollYProgress,
[Math.max(0, itemOffset - 0.15), Math.min(1, itemOffset + 0.05)],
[0, 1]
Expand Down Expand Up @@ -540,7 +540,7 @@
<motion.div
style={{
opacity: itemProgress,
x: index % 2 === 0 ? useTransform(itemProgress, [0, 1], [50, 0]) : useTransform(itemProgress, [0, 1], [-50, 0])

Check failure on line 543 in src/components/Events.jsx

View workflow job for this annotation

GitHub Actions / build (20.x)

React Hook "useTransform" cannot be called inside a callback. React Hooks must be called in a React function component or a custom React Hook function

Check failure on line 543 in src/components/Events.jsx

View workflow job for this annotation

GitHub Actions / build (20.x)

React Hook "useTransform" cannot be called inside a callback. React Hooks must be called in a React function component or a custom React Hook function

Check failure on line 543 in src/components/Events.jsx

View workflow job for this annotation

GitHub Actions / build (18.x)

React Hook "useTransform" cannot be called inside a callback. React Hooks must be called in a React function component or a custom React Hook function

Check failure on line 543 in src/components/Events.jsx

View workflow job for this annotation

GitHub Actions / build (18.x)

React Hook "useTransform" cannot be called inside a callback. React Hooks must be called in a React function component or a custom React Hook function
}}
className={`timeline-content ${index % 2 === 0 ? 'reverse' : 'normal'}`}
>
Expand Down
Loading