|
1 | 1 | 'use client' |
2 | 2 |
|
3 | 3 | import { useRef, useMemo } from 'react' |
4 | | -import { useInView } from 'framer-motion' |
| 4 | +import { useInView, motion, useScroll, useTransform } from 'framer-motion' |
5 | 5 | import { Container } from '@/components/shared/Container' |
6 | | -import { motion, useScroll, useTransform } from 'framer-motion' |
7 | 6 | import { FontAwesomeIcon } from '@fortawesome/react-fontawesome' |
8 | 7 | import { faDiscord, faGithub } from '@fortawesome/free-brands-svg-icons' |
9 | 8 | import { faLightbulb, faComments, faPaperPlane } from '@fortawesome/free-solid-svg-icons' |
@@ -89,27 +88,27 @@ export function ApplyHeader({ children }) { |
89 | 88 | {/* background track line */} |
90 | 89 | <div className="absolute left-[-1px] top-0 h-full w-[3px] rounded-full bg-zinc-200 dark:bg-zinc-700" /> |
91 | 90 |
|
92 | | - {/* animated yellow fill */} |
| 91 | + {/* animated green and yellow fill */} |
93 | 92 | <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" |
95 | 94 | style={{ height: lineProgress }} |
96 | 95 | /> |
97 | 96 |
|
98 | 97 | {/* travelling dot with pulsing rings */} |
99 | 98 | <motion.div |
100 | 99 | 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" |
102 | 101 | style={{ top: lineProgress }} |
103 | 102 | > |
104 | 103 | <motion.span |
105 | 104 | animate={isDotInView ? { scale: [1, 2.5, 1], opacity: [0.7, 0, 0.7] } : { scale: 1, opacity: 0 }} |
106 | 105 | 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" |
108 | 107 | /> |
109 | 108 | <motion.span |
110 | 109 | animate={isDotInView ? { scale: [1, 2, 1], opacity: [0.4, 0, 0.4] } : { scale: 1, opacity: 0 }} |
111 | 110 | 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" |
113 | 112 | /> |
114 | 113 | </motion.div> |
115 | 114 |
|
|
0 commit comments