diff --git a/src/pages/stock/Stock.css b/src/pages/stock/Stock.css index 8858f0a..03112d2 100644 --- a/src/pages/stock/Stock.css +++ b/src/pages/stock/Stock.css @@ -2740,6 +2740,39 @@ flex-shrink: 0; } +.advisor-prompt__toolbar { + display: flex; + align-items: center; + justify-content: space-between; + gap: 12px; + flex-wrap: wrap; +} + +.advisor-prompt__info { + font-size: 12px; + color: var(--text-muted); +} + +.button.primary.small.is-copied { + background: #34d399; + color: #0f172a; +} + +.advisor-prompt__preview { + white-space: pre-wrap; + word-break: break-word; + font-family: 'Courier New', Courier, monospace; + font-size: 12px; + line-height: 1.7; + color: var(--text); + background: rgba(255, 255, 255, 0.03); + border: 1px solid var(--line); + border-radius: 12px; + padding: 16px 20px; + max-height: 520px; + overflow-y: auto; +} + .advisor-panel__timestamp { font-size: 11px; color: var(--text-muted); diff --git a/src/pages/stock/StockTrade.jsx b/src/pages/stock/StockTrade.jsx index ca34457..bf98b22 100644 --- a/src/pages/stock/StockTrade.jsx +++ b/src/pages/stock/StockTrade.jsx @@ -19,7 +19,6 @@ import { addSellHistory, updateSellHistory, deleteSellHistory, - getAiAnalysis, } from '../../api'; import Loading from '../../components/Loading'; import './Stock.css'; @@ -92,38 +91,6 @@ const toNumeric = (value) => { return Number.isNaN(numeric) ? null : numeric; }; -/* ── AdvisorMarkdown — 경량 마크다운 렌더러 ──────────────────────── */ - -const AdvisorMarkdown = ({ text }) => { - if (!text) return null; - const lines = text.split('\n'); - const elements = []; - let i = 0; - while (i < lines.length) { - const line = lines[i]; - if (line.startsWith('### ')) { - elements.push(
$1');
- elements.push(
-
- );
- }
- i++;
- }
- return - 보유 종목 현재가와 오늘의 뉴스를 기반으로 전문가 관점의 매매 조언을 제공합니다. + 보유 종목 정보를 담은 전문가용 프롬프트를 생성합니다. + 복사 후 Gemini, ChatGPT 등에 붙여넣어 분석을 받아보세요.
Gemini Pro가 포트폴리오를 분석 중입니다...
-현재가 조회 · 뉴스 분석 · 전략 수립
-- ※ 이 분석은 AI가 생성한 참고 자료이며 투자 결정은 본인의 판단과 책임 하에 이루어져야 합니다. -
-아직 분석 결과가 없습니다.
- + 📋 +포트폴리오 탭에서 보유 종목을 먼저 등록해주세요.
+{buildAdvisorPrompt()}
+
+ + ※ 이 프롬프트를 AI에 붙여넣으면 전문가 관점의 매매 조언을 받을 수 있습니다. + 투자 결정은 최종적으로 본인의 판단과 책임 하에 이루어져야 합니다. +