diff --git a/frontend/src/pages/SurveyPage.tsx b/frontend/src/pages/SurveyPage.tsx index 1f2eb182..f77a2abf 100644 --- a/frontend/src/pages/SurveyPage.tsx +++ b/frontend/src/pages/SurveyPage.tsx @@ -260,8 +260,8 @@ export default function SurveyPage() {
-
-
+
+
@@ -272,7 +272,7 @@ export default function SurveyPage() {

You can safely close this browser window now.

-
+

Have feedback unrelated to the survey?{' '} @@ -306,35 +306,35 @@ export default function SurveyPage() { {/* Top bar */}

-
- +
+ - ResolutionFlow + ResolutionFlow -
+
- {answeredCount} of {TOTAL_QUESTIONS} + {answeredCount}/{TOTAL_QUESTIONS}
-
+
{/* Hero — visible only on first slide */} {currentSlide === 0 && !isComplete && ( -
-
+
+
FlowPilot Research
-

+

Help Build an AI That
Thinks Like You

-

+

We're building an AI assistant for MSP engineers. Your expertise shapes how it thinks. Takes about 5 minutes.

-
+
~5 minutes @@ -353,11 +353,11 @@ export default function SurveyPage() { {/* Step dots */} {!isComplete && ( -
+
{SLIDES.map((_, i) => (
( ))} -
+
{si > 0 ? ( - ) :
} {si < SLIDES.length - 1 ? ( - ) : ( - @@ -405,22 +405,22 @@ export default function SurveyPage() { {/* Completion */} {isComplete && ( -
+

Response Submitted!

-

+

Your answers will directly shape how FlowPilot troubleshoots. Would you like a copy of your responses?

{/* Email a copy */} -
+

Email a copy to yourself

{!emailSent ? ( -
+
{emailSending ? ( <> @@ -479,13 +479,13 @@ export default function SurveyPage() { {/* Copy + Finish buttons */}
- ))}
@@ -557,17 +557,17 @@ function QuestionCard({ question: q, answer, setAnswer }: { question: SurveyQues const current = Array.isArray(answer) ? answer : [] setAnswer(q.id, selected ? current.filter(v => v !== opt) : [...current, opt]) }} - className="flex items-center gap-3 px-4 py-3 rounded-[9px] text-left text-sm transition-all duration-150 select-none" + className="flex items-start gap-3 px-3.5 py-3 sm:px-4 rounded-[9px] text-left text-[13px] sm:text-sm transition-all duration-150 select-none" style={{ background: selected ? 'rgba(6, 182, 212, 0.1)' : 'rgba(16, 17, 20, 0.6)', border: `1px solid ${selected ? '#06b6d4' : 'var(--glass-border)'}`, color: selected ? 'hsl(var(--foreground))' : 'hsl(var(--muted-foreground))', }} > -
+
{'\u2713'}
- {opt} + {opt} ) })} @@ -583,7 +583,7 @@ function QuestionCard({ question: q, answer, setAnswer }: { question: SurveyQues value={(answer as string) || ''} onChange={e => setAnswer(q.id, e.target.value)} placeholder="Type your answer here..." - className="w-full min-h-[100px] rounded-[9px] p-3.5 text-sm text-foreground leading-relaxed resize-y transition-all duration-200 placeholder:text-[#5a6170] focus:outline-none" + className="w-full min-h-[100px] rounded-[9px] p-3 sm:p-3.5 text-[13px] sm:text-sm text-foreground leading-relaxed resize-y transition-all duration-200 placeholder:text-[#5a6170] focus:outline-none" style={{ background: 'rgba(16, 17, 20, 0.6)', border: '1px solid var(--glass-border)', @@ -614,7 +614,7 @@ function RangeInput({ question: q, value, onChange }: { question: SurveyQuestion step={q.step} value={numVal} onChange={e => onChange(e.target.value + (q.suffix || ''))} - className="w-full h-1 rounded-full appearance-none cursor-pointer" + className="w-full h-2 sm:h-1 rounded-full appearance-none cursor-pointer touch-none" style={{ background: `linear-gradient(to right, #06b6d4 0%, #06b6d4 ${((numVal - (q.min || 0)) / ((q.max || 10) - (q.min || 0))) * 100}%, hsl(var(--border)) ${((numVal - (q.min || 0)) / ((q.max || 10) - (q.min || 0))) * 100}%, hsl(var(--border)) 100%)`, }} @@ -710,7 +710,7 @@ function DragRank({ items, onChange }: { items: string[]; onChange: (items: stri onDragEnd={handleDragEnd} onDragLeave={() => setOverIdx(null)} onTouchStart={() => handleTouchStart(idx)} - className="flex items-center gap-3 px-4 py-2.5 rounded-[9px] text-sm transition-all duration-150 select-none" + className="flex items-center gap-2.5 sm:gap-3 px-3 py-3 sm:px-4 sm:py-2.5 rounded-[9px] text-[13px] sm:text-sm transition-all duration-150 select-none" style={{ background: overIdx === idx ? 'rgba(6, 182, 212, 0.1)' : 'rgba(16, 17, 20, 0.6)', border: `1px solid ${overIdx === idx || draggingIdx === idx ? '#06b6d4' : 'var(--glass-border)'}`, @@ -723,7 +723,7 @@ function DragRank({ items, onChange }: { items: string[]; onChange: (items: stri
{idx + 1}
-
{item}
+
{item}
))}