22
33import { useState , useEffect } from "react"
44import { motion , AnimatePresence } from "framer-motion"
5+ import { Button } from "./Button"
56
67const POSITIVE_RESPONSES = [
78 "Sounds awesome!" ,
@@ -108,14 +109,11 @@ export function QuestionNode({ node }: { node: Node }) {
108109 That's all of our teams.
109110 </ h2 >
110111 < p className = "text-xl md:text-2xl text-white/70 font-normal tracking-wide" >
111- try starting over and exploring the sub-options. we promise there's something for everyone!
112+ try starting over and exploring the sub-options. we promise there's something for everyone!
112113 </ p >
113114 </ div >
114115 < div className = "flex flex-col gap-3 md:gap-4 w-full max-w-md mx-auto" >
115- < motion . button
116- whileHover = { { scale : 1.02 } }
117- whileTap = { { scale : 0.98 } }
118- className = "py-3 md:py-4 px-6 md:px-8 text-lg md:text-xl font-medium bg-[#111827] hover:bg-[#1f2937] text-white rounded-full transition-colors shadow-lg font-red-hat cursor-pointer"
116+ < Button
119117 onClick = { ( ) => {
120118 setCurrentNode ( node )
121119 setOptionIndex ( 0 )
@@ -125,7 +123,7 @@ export function QuestionNode({ node }: { node: Node }) {
125123 } }
126124 >
127125 Start Over
128- </ motion . button >
126+ </ Button >
129127 < p className = "text-sm md:text-base text-white/60 italic mt-4" >
130128 Not finding something that interests you? Join our{ ' ' }
131129 < a
@@ -160,10 +158,7 @@ export function QuestionNode({ node }: { node: Node }) {
160158 ) }
161159 </ div >
162160 < div className = "flex flex-col gap-3 md:gap-4 w-full max-w-md mx-auto" >
163- < motion . button
164- whileHover = { { scale : 1.02 } }
165- whileTap = { { scale : 0.98 } }
166- className = "py-3 md:py-4 px-6 md:px-8 text-lg md:text-xl font-medium bg-[#111827] hover:bg-[#1f2937] text-white rounded-full transition-colors shadow-lg font-red-hat cursor-pointer"
161+ < Button
167162 onClick = { ( ) => {
168163 if ( currentOption . link ) {
169164 window . open ( currentOption . link , '_blank' )
@@ -178,11 +173,9 @@ export function QuestionNode({ node }: { node: Node }) {
178173 } }
179174 >
180175 { positiveButtonText }
181- </ motion . button >
182- < motion . button
183- whileHover = { { scale : 1.02 } }
184- whileTap = { { scale : 0.98 } }
185- className = "py-3 md:py-4 px-6 md:px-8 text-lg md:text-xl font-medium bg-[#DC2626] hover:bg-[#B91C1C] text-white rounded-full transition-colors shadow-lg font-red-hat cursor-pointer"
176+ </ Button >
177+ < Button
178+ variant = "negative"
186179 onClick = { ( ) => {
187180 if ( isLastOption ) {
188181 if ( isMainLevel ) {
@@ -203,7 +196,7 @@ export function QuestionNode({ node }: { node: Node }) {
203196 } }
204197 >
205198 { negativeButtonText }
206- </ motion . button >
199+ </ Button >
207200 </ div >
208201 </ motion . div >
209202 ) }
0 commit comments