Skip to content

Commit 105ab60

Browse files
committed
minor
1 parent f962cc3 commit 105ab60

4 files changed

Lines changed: 24 additions & 3 deletions

File tree

public/team/moti.jpeg

70.6 KB
Loading

public/team/somnath.jpeg

-2.08 MB
Loading

src/components/Hero.jsx

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ function Hero() {
1010
const subtitle = useRef(null);
1111
const subtitle2 = useRef(null);
1212
const date = useRef(null);
13+
const poster = useRef(null);
1314

1415
useEffect(() => {
1516
const ctx = gsap.context(() => {
@@ -19,7 +20,19 @@ function Hero() {
1920
.fromTo(title1.current, { opacity: 0, y: 40 }, { opacity: 1, y: 0 }, "-=0.8")
2021
.fromTo(subtitle.current, { opacity: 0, y: 80 }, { opacity: 1, y: 0 }, "-=0.6")
2122
.fromTo(subtitle2.current, { opacity: 0, y: 60 }, { opacity: 1, y: 0 }, "-=0.5")
22-
.fromTo(date.current, { opacity: 0, y: 50 }, { opacity: 1, y: 0 }, "-=0.4");
23+
.fromTo(date.current, { opacity: 0, y: 50 }, { opacity: 1, y: 0 }, "-=0.4")
24+
// Minimal fade-in animation for poster
25+
.fromTo(
26+
poster.current,
27+
{ opacity: 0 },
28+
{
29+
opacity: 1,
30+
duration: 1,
31+
ease: "power1.out",
32+
delay: 0.2,
33+
},
34+
"-=0.8"
35+
);
2336
}, root);
2437

2538
return () => ctx.revert();
@@ -89,7 +102,7 @@ function Hero() {
89102
</a>
90103
</div>
91104

92-
{/* Poster Image
105+
{/* Poster Image // ✅ */}
93106
<div ref={poster} className="z-10 order-1 lg:order-2 opacity-0">
94107
<Image
95108
src="/club-poster-cultural.png"
@@ -99,7 +112,7 @@ function Hero() {
99112
className="w-[260px] sm:w-[340px] md:w-[420px] lg:w-[460px] object-contain rounded-2xl shadow-[0_0_40px_rgba(255,255,255,0.15)] border border-white/20 hover:shadow-[0_0_60px_rgba(255,255,255,0.4)] hover:scale-[1.03] transition-transform duration-300"
100113
draggable="false"
101114
/>
102-
</div> */}
115+
</div>
103116
</div>
104117
</section>
105118
);

teams.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@
6565
"img": "/team/somnath.jpeg",
6666
"linkedin": "",
6767
"insta": ""
68+
},
69+
{
70+
"id": "tf5",
71+
"name": "Moti Sankar Nayak",
72+
"post": "Organizing Lead",
73+
"img": "/team/moti.jpeg",
74+
"linkedin": "",
75+
"insta": ""
6876
}
6977
]
7078
},

0 commit comments

Comments
 (0)