diff --git a/web/components/PredictionPanel.tsx b/web/components/PredictionPanel.tsx index 28d1ef5..cedcd63 100644 --- a/web/components/PredictionPanel.tsx +++ b/web/components/PredictionPanel.tsx @@ -94,19 +94,30 @@ export function PredictionPanel({ code, initial, onResult }: Props) {
예측 기간: - {PREDICT_PRESETS.map((p, i) => ( - - ))} + {PREDICT_PRESETS.map((p, i) => { + const on = presetIdx === i; + return ( + // segmented control — PeriodTabs / InvestorCumulative window / SMA·RSI·MACD 토글과 + // 같은 패턴. type="button" 으로 폼 submit 기본값 사고 차단, aria-pressed 로 스크린 + // 리더에 현재 선택 노출. 시각 토큰은 PredictionPanel 자체 톤(bg-zinc-700 solid) + // 유지 — 본문 카드 영역 안 primary 보조 컨트롤이라 툴바용 zinc-800/80 보다 한 + // 단계 도드라지는 게 의도. 패딩(px-3 py-1) 도 옆 rose-600 실행 버튼과 시각 + // 무게 균형을 위해 툴바 토글(px-2 py-0.5) 보다 큼. + + ); + })} {presetIdx === 2 && ( ※ 30거래일 너머는 모델 학습 범위 밖 — 참고용