Skip to content

Commit a611380

Browse files
Merge pull request #712 from reach2saksham/fix/apply-timeline-green-missing
fix: added the missing green colour from the pulsating timeline dot animation in apply page
2 parents 25de9b0 + a1eb3ae commit a611380

1 file changed

Lines changed: 6 additions & 7 deletions

File tree

src/components/apply/ApplyHeader.jsx

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,8 @@
11
'use client'
22

33
import { useRef, useMemo } from 'react'
4-
import { useInView } from 'framer-motion'
4+
import { useInView, motion, useScroll, useTransform } from 'framer-motion'
55
import { Container } from '@/components/shared/Container'
6-
import { motion, useScroll, useTransform } from 'framer-motion'
76
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
87
import { faDiscord, faGithub } from '@fortawesome/free-brands-svg-icons'
98
import { faLightbulb, faComments, faPaperPlane } from '@fortawesome/free-solid-svg-icons'
@@ -89,27 +88,27 @@ export function ApplyHeader({ children }) {
8988
{/* background track line */}
9089
<div className="absolute left-[-1px] top-0 h-full w-[3px] rounded-full bg-zinc-200 dark:bg-zinc-700" />
9190

92-
{/* animated yellow fill */}
91+
{/* animated green and yellow fill */}
9392
<motion.div
94-
className="absolute left-[-1px] top-0 w-[3px] rounded-full origin-top bg-yellow-400"
93+
className="absolute left-[-1px] top-0 w-[3px] rounded-full origin-top bg-[#00843D] dark:bg-yellow-400"
9594
style={{ height: lineProgress }}
9695
/>
9796

9897
{/* travelling dot with pulsing rings */}
9998
<motion.div
10099
ref={dotRef}
101-
className="absolute -left-[7px] w-[15px] h-[15px] rounded-full z-10 bg-yellow-400"
100+
className="absolute -left-[7px] w-[15px] h-[15px] rounded-full z-10 bg-[#00843D] dark:bg-yellow-400"
102101
style={{ top: lineProgress }}
103102
>
104103
<motion.span
105104
animate={isDotInView ? { scale: [1, 2.5, 1], opacity: [0.7, 0, 0.7] } : { scale: 1, opacity: 0 }}
106105
transition={{ duration: 1.6, repeat: isDotInView ? Infinity : 0, ease: "easeOut" }}
107-
className="absolute inset-0 rounded-full bg-yellow-400"
106+
className="absolute inset-0 rounded-full bg-[#00843D] dark:bg-yellow-400"
108107
/>
109108
<motion.span
110109
animate={isDotInView ? { scale: [1, 2, 1], opacity: [0.4, 0, 0.4] } : { scale: 1, opacity: 0 }}
111110
transition={{ duration: 1.6, repeat: isDotInView ? Infinity : 0, ease: "easeOut", delay: 0.5 }}
112-
className="absolute inset-0 rounded-full bg-yellow-300"
111+
className="absolute inset-0 rounded-full bg-[#00843D] dark:bg-yellow-400"
113112
/>
114113
</motion.div>
115114

0 commit comments

Comments
 (0)