Spaces:
Running
Running
Update index.html
Browse files- index.html +226 -176
index.html
CHANGED
|
@@ -6,244 +6,294 @@
|
|
| 6 |
<title>MarketGo โ ๊ฐ์ ์ผํ๋ชฐ</title>
|
| 7 |
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap" rel="stylesheet">
|
| 8 |
<style>
|
| 9 |
-
:root
|
| 10 |
-
--bg: #f5f4f0;
|
| 11 |
-
--surface: #ffffff;
|
| 12 |
-
--text: #111;
|
| 13 |
-
--sub: #888;
|
| 14 |
-
--accent: #e63946;
|
| 15 |
-
--border: rgba(0,0,0,.08);
|
| 16 |
-
}
|
| 17 |
*{margin:0;padding:0;box-sizing:border-box;}
|
| 18 |
body{font-family:'Noto Sans KR',sans-serif;background:var(--bg);color:var(--text);}
|
| 19 |
-
|
| 20 |
-
/* GNB */
|
| 21 |
nav{background:#111;color:#fff;padding:0 40px;display:flex;align-items:center;justify-content:space-between;height:56px;position:sticky;top:0;z-index:100;}
|
| 22 |
-
.nav-logo{font-size:20px;font-weight:900;letter-spacing:-1px;}
|
| 23 |
-
.nav-logo span{color:var(--accent);}
|
| 24 |
.nav-links{display:flex;gap:24px;font-size:13px;font-weight:500;}
|
| 25 |
-
.nav-links a{color:rgba(255,255,255,.7);text-decoration:none;
|
| 26 |
-
.nav-
|
| 27 |
-
.
|
| 28 |
-
.nav-right button{border:none;background:none;color:rgba(255,255,255,.7);font-size:20px;cursor:pointer;}
|
| 29 |
-
|
| 30 |
-
/* ํ์ด๋ก ๋ฐฐ๋ */
|
| 31 |
-
.hero{background:linear-gradient(135deg,#111 60%,#1a1a2e);color:#fff;padding:60px 40px;display:flex;align-items:center;gap:40px;overflow:hidden;position:relative;}
|
| 32 |
-
.hero::after{content:'';position:absolute;right:-80px;top:-80px;width:400px;height:400px;border-radius:50%;background:radial-gradient(circle,rgba(230,57,70,.2),transparent 70%);}
|
| 33 |
.hero-text h1{font-size:42px;font-weight:900;line-height:1.15;letter-spacing:-1.5px;}
|
| 34 |
.hero-text h1 em{color:var(--accent);font-style:normal;}
|
| 35 |
.hero-text p{margin-top:12px;font-size:14px;color:rgba(255,255,255,.55);line-height:1.8;}
|
| 36 |
-
.hero-btn{margin-top:24px;display:inline-block;padding:13px 28px;background:var(--accent);color:#fff;border-radius:8px;font-size:14px;font-weight:700;text-decoration:none;
|
| 37 |
-
.hero-btn:hover{background:#c1121f;}
|
| 38 |
.hero-badge{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:20px 28px;min-width:220px;text-align:center;}
|
| 39 |
.hero-badge .num{font-size:48px;font-weight:900;color:var(--accent);}
|
| 40 |
.hero-badge .lbl{font-size:12px;color:rgba(255,255,255,.5);margin-top:4px;}
|
| 41 |
-
|
| 42 |
-
|
| 43 |
-
.cats{background:#fff;border-bottom:1px solid var(--border);padding:0 40px;display:flex;gap:0;overflow-x:auto;}
|
| 44 |
-
.cats a{padding:14px 20px;font-size:13px;font-weight:500;color:var(--sub);text-decoration:none;border-bottom:2px solid transparent;white-space:nowrap;transition:.15s;}
|
| 45 |
.cats a.active,.cats a:hover{color:var(--accent);border-bottom-color:var(--accent);}
|
| 46 |
-
|
| 47 |
-
/* ์น์
*/
|
| 48 |
.section{padding:36px 40px;}
|
| 49 |
.sec-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;}
|
| 50 |
-
.sec-hd h2{font-size:18px;font-weight:800;}
|
| 51 |
-
.sec-hd a{font-size:12px;color:var(--sub);text-decoration:none;}
|
| 52 |
-
|
| 53 |
-
/* ์ํ ๊ทธ๋ฆฌ๋ */
|
| 54 |
.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px;}
|
| 55 |
.card{background:#fff;border-radius:12px;overflow:hidden;border:1px solid var(--border);transition:.2s;cursor:pointer;}
|
| 56 |
.card:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(0,0,0,.1);}
|
| 57 |
-
.card-img{width:100%;aspect-ratio:1;
|
| 58 |
.card-body{padding:12px;}
|
| 59 |
.card-badge{display:inline-block;padding:2px 7px;background:rgba(230,57,70,.1);color:var(--accent);border-radius:4px;font-size:10px;font-weight:700;margin-bottom:6px;}
|
| 60 |
.card-name{font-size:13px;font-weight:600;line-height:1.4;margin-bottom:4px;}
|
| 61 |
.card-sub{font-size:11px;color:var(--sub);margin-bottom:8px;}
|
| 62 |
-
.card-price{font-size:16px;font-weight:900;color:
|
| 63 |
-
.card-price s{font-size:12px;color:var(--sub);font-weight:400;margin-right:4px;}
|
| 64 |
-
.card-price em{font-size:12px;color:var(--accent);font-style:normal;margin-left:4px;}
|
| 65 |
-
|
| 66 |
-
/* ๋ฐฐ๋ */
|
| 67 |
.banner-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:0 40px 36px;}
|
| 68 |
.banner{border-radius:14px;padding:28px;color:#fff;position:relative;overflow:hidden;min-height:120px;display:flex;flex-direction:column;justify-content:flex-end;}
|
| 69 |
-
.banner-a{background:linear-gradient(135deg,#0f3460,#16213e);}
|
| 70 |
-
.banner-
|
| 71 |
-
.banner h3{font-size:16px;font-weight:800;}
|
| 72 |
-
.banner p{font-size:11px;opacity:.7;margin-top:4px;}
|
| 73 |
.banner-ic{position:absolute;right:20px;top:50%;transform:translateY(-50%);font-size:56px;opacity:.3;}
|
| 74 |
-
|
| 75 |
-
/* ํธํฐ */
|
| 76 |
footer{background:#111;color:rgba(255,255,255,.4);text-align:center;padding:24px;font-size:12px;}
|
| 77 |
|
| 78 |
-
/*
|
| 79 |
-
|
| 80 |
-
|
| 81 |
-
|
| 82 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 83 |
</style>
|
| 84 |
</head>
|
| 85 |
<body>
|
| 86 |
|
| 87 |
-
<!-- GNB -->
|
| 88 |
<nav>
|
| 89 |
<div class="nav-logo">Market<span>Go</span></div>
|
| 90 |
-
<div class="nav-links">
|
| 91 |
-
|
| 92 |
-
</div>
|
| 93 |
-
<div class="nav-right">
|
| 94 |
-
<button>๐</button>
|
| 95 |
-
<button>๐</button>
|
| 96 |
-
<button>๐ค</button>
|
| 97 |
-
</div>
|
| 98 |
</nav>
|
| 99 |
|
| 100 |
-
<
|
| 101 |
-
<
|
| 102 |
-
<button class="close-btn" onclick="this.parentElement.remove()">ร</button>
|
| 103 |
<strong>๐ SiteAgent ํ ์ค ์ฝ์
๋ฐ๋ชจ</strong>
|
| 104 |
-
์ด
|
| 105 |
์ฐ์ธก ํ๋จ ๐ค ๋ฒํผ์ ํด๋ฆญํ์ธ์.
|
| 106 |
-
<code><script src="https://ginigen-ai-siteagent.hf.space/
|
| 107 |
</div>
|
| 108 |
|
| 109 |
-
<!-- ํ์ด๋ก -->
|
| 110 |
<div class="hero">
|
| 111 |
<div class="hero-text">
|
| 112 |
<h1>์ค๋์ <em>ํน๊ฐ</em><br>๋์น์ง ๋ง์ธ์</h1>
|
| 113 |
<p>๋งค์ผ ์ค์ 10์, ์ดํน๊ฐ ์ํ์ ํ์ ์๋ ๊ณต๊ฐํฉ๋๋ค.<br>AI๊ฐ ์ต์ ๊ฐ๋ฅผ ์ค์๊ฐ์ผ๋ก ๋ถ์ํด ๋๋ฆฝ๋๋ค.</p>
|
| 114 |
<a href="#" class="hero-btn">ํน๊ฐ ๋ณด๋ฌ๊ฐ๊ธฐ โ</a>
|
| 115 |
</div>
|
| 116 |
-
<div class="hero-badge">
|
| 117 |
-
<div class="num">73%</div>
|
| 118 |
-
<div class="lbl">์ค๋์ ์ต๋ ํ ์ธ์จ</div>
|
| 119 |
-
</div>
|
| 120 |
</div>
|
| 121 |
|
| 122 |
-
<!-- ์นดํ
๊ณ ๋ฆฌ -->
|
| 123 |
<div class="cats">
|
| 124 |
-
<a href="#" class="active">์ ์ฒด</a>
|
| 125 |
-
<a href="#">๊ฐ์ ยท๋์งํธ</a>
|
| 126 |
-
<a href="#">ํจ์
ยท์๋ฅ</a>
|
| 127 |
-
<a href="#">์ํยท๊ฑด๊ฐ</a>
|
| 128 |
-
<a href="#">๋ทฐํฐยท์ํ</a>
|
| 129 |
-
<a href="#">์คํฌ์ธ ยท๋ ์ </a>
|
| 130 |
-
<a href="#">์ ์ยท์๊ตฌ</a>
|
| 131 |
-
<a href="#">๋์ยท๋ฌธ๊ตฌ</a>
|
| 132 |
</div>
|
| 133 |
|
| 134 |
-
<!-- ์ถ์ฒ ์ํ -->
|
| 135 |
<div class="section">
|
| 136 |
-
<div class="sec-hd">
|
| 137 |
-
<h2>๐ฅ ์ค๋์ ์ธ๊ธฐ์ํ</h2>
|
| 138 |
-
<a href="#">๋๋ณด๊ธฐ โ</a>
|
| 139 |
-
</div>
|
| 140 |
<div class="products">
|
| 141 |
-
<div class="card">
|
| 142 |
-
|
| 143 |
-
|
| 144 |
-
|
| 145 |
-
|
| 146 |
-
|
| 147 |
-
<div class="card-price"><s>2,890,000์</s>1,990,000์<em>31%โ</em></div>
|
| 148 |
-
</div>
|
| 149 |
-
</div>
|
| 150 |
-
<div class="card">
|
| 151 |
-
<div class="card-img">๐ฑ</div>
|
| 152 |
-
<div class="card-body">
|
| 153 |
-
<div class="card-badge">์ธ๊ธฐ</div>
|
| 154 |
-
<div class="card-name">์์ดํฐ 16 Pro 256GB</div>
|
| 155 |
-
<div class="card-sub">์์ฐํฐํ๋ ยท ์๊ธ์ </div>
|
| 156 |
-
<div class="card-price"><s>1,750,000์</s>1,490,000์<em>15%โ</em></div>
|
| 157 |
-
</div>
|
| 158 |
-
</div>
|
| 159 |
-
<div class="card">
|
| 160 |
-
<div class="card-img">๐ง</div>
|
| 161 |
-
<div class="card-body">
|
| 162 |
-
<div class="card-badge">ํน๊ฐ</div>
|
| 163 |
-
<div class="card-name">์๋ WH-1000XM6</div>
|
| 164 |
-
<div class="card-sub">๋
ธ์ด์ฆ์บ์ฌ๋ง ยท ๋ฌด์ </div>
|
| 165 |
-
<div class="card-price"><s>459,000์</s>289,000์<em>37%โ</em></div>
|
| 166 |
-
</div>
|
| 167 |
-
</div>
|
| 168 |
-
<div class="card">
|
| 169 |
-
<div class="card-img">โ</div>
|
| 170 |
-
<div class="card-body">
|
| 171 |
-
<div class="card-badge">์ ์</div>
|
| 172 |
-
<div class="card-name">๊ฐค๋ญ์ ์์น7 ์ธํธ๋ผ</div>
|
| 173 |
-
<div class="card-sub">47mm ยท ํฐํ๋</div>
|
| 174 |
-
<div class="card-price"><s>799,000์</s>629,000์<em>21%โ</em></div>
|
| 175 |
-
</div>
|
| 176 |
-
</div>
|
| 177 |
-
<div class="card">
|
| 178 |
-
<div class="card-img">๐ฅ๏ธ</div>
|
| 179 |
-
<div class="card-body">
|
| 180 |
-
<div class="card-badge">ํน๊ฐ</div>
|
| 181 |
-
<div class="card-name">LG ์ธํธ๋ผํ์ธ OLED 27์ธ์น</div>
|
| 182 |
-
<div class="card-sub">4K ยท 120Hz ยท USB-C</div>
|
| 183 |
-
<div class="card-price"><s>1,290,000์</s>890,000์<em>31%โ</em></div>
|
| 184 |
-
</div>
|
| 185 |
-
</div>
|
| 186 |
-
<div class="card">
|
| 187 |
-
<div class="card-img">๐ฎ</div>
|
| 188 |
-
<div class="card-body">
|
| 189 |
-
<div class="card-badge">ํ์ </div>
|
| 190 |
-
<div class="card-name">PS5 ์ฌ๋ฆผ ๋์คํฌ ์๋์
</div>
|
| 191 |
-
<div class="card-sub">+๋์ผ์ผ์ค ์ปจํธ๋กค๋ฌ</div>
|
| 192 |
-
<div class="card-price"><s>729,000์</s>589,000์<em>19%โ</em></div>
|
| 193 |
-
</div>
|
| 194 |
-
</div>
|
| 195 |
</div>
|
| 196 |
</div>
|
| 197 |
|
| 198 |
-
<!-- ๋ฐฐ๋ -->
|
| 199 |
<div class="banner-row">
|
| 200 |
-
<div class="banner banner-a">
|
| 201 |
-
|
| 202 |
-
|
| 203 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 204 |
</div>
|
| 205 |
-
<div class="
|
| 206 |
-
<
|
| 207 |
-
<
|
| 208 |
-
<
|
| 209 |
</div>
|
| 210 |
-
</div>
|
| 211 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 212 |
|
| 213 |
-
<
|
| 214 |
-
|
| 215 |
-
<
|
| 216 |
-
|
| 217 |
-
<
|
| 218 |
-
|
| 219 |
-
<
|
| 220 |
-
|
| 221 |
-
|
| 222 |
-
|
| 223 |
-
|
| 224 |
-
display:
|
| 225 |
-
|
| 226 |
-
|
| 227 |
-
</
|
| 228 |
-
|
| 229 |
-
|
| 230 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
| 231 |
</div>
|
| 232 |
</div>
|
|
|
|
| 233 |
<script>
|
| 234 |
-
var
|
| 235 |
-
|
| 236 |
-
|
| 237 |
-
|
| 238 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 239 |
}
|
| 240 |
-
|
| 241 |
-
|
| 242 |
-
|
| 243 |
-
|
| 244 |
-
|
| 245 |
-
|
| 246 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 247 |
</script>
|
|
|
|
| 248 |
</body>
|
| 249 |
</html>
|
|
|
|
| 6 |
<title>MarketGo โ ๊ฐ์ ์ผํ๋ชฐ</title>
|
| 7 |
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700;900&display=swap" rel="stylesheet">
|
| 8 |
<style>
|
| 9 |
+
:root{--bg:#f5f4f0;--surface:#fff;--text:#111;--sub:#888;--accent:#e63946;--border:rgba(0,0,0,.08);}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 10 |
*{margin:0;padding:0;box-sizing:border-box;}
|
| 11 |
body{font-family:'Noto Sans KR',sans-serif;background:var(--bg);color:var(--text);}
|
|
|
|
|
|
|
| 12 |
nav{background:#111;color:#fff;padding:0 40px;display:flex;align-items:center;justify-content:space-between;height:56px;position:sticky;top:0;z-index:100;}
|
| 13 |
+
.nav-logo{font-size:20px;font-weight:900;letter-spacing:-1px;}.nav-logo span{color:var(--accent);}
|
|
|
|
| 14 |
.nav-links{display:flex;gap:24px;font-size:13px;font-weight:500;}
|
| 15 |
+
.nav-links a{color:rgba(255,255,255,.7);text-decoration:none;}.nav-links a:hover{color:#fff;}
|
| 16 |
+
.nav-right{display:flex;gap:12px;}.nav-right button{border:none;background:none;color:rgba(255,255,255,.7);font-size:20px;cursor:pointer;}
|
| 17 |
+
.hero{background:linear-gradient(135deg,#111 60%,#1a1a2e);color:#fff;padding:60px 40px;display:flex;align-items:center;gap:40px;}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 18 |
.hero-text h1{font-size:42px;font-weight:900;line-height:1.15;letter-spacing:-1.5px;}
|
| 19 |
.hero-text h1 em{color:var(--accent);font-style:normal;}
|
| 20 |
.hero-text p{margin-top:12px;font-size:14px;color:rgba(255,255,255,.55);line-height:1.8;}
|
| 21 |
+
.hero-btn{margin-top:24px;display:inline-block;padding:13px 28px;background:var(--accent);color:#fff;border-radius:8px;font-size:14px;font-weight:700;text-decoration:none;}
|
|
|
|
| 22 |
.hero-badge{background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.1);border-radius:12px;padding:20px 28px;min-width:220px;text-align:center;}
|
| 23 |
.hero-badge .num{font-size:48px;font-weight:900;color:var(--accent);}
|
| 24 |
.hero-badge .lbl{font-size:12px;color:rgba(255,255,255,.5);margin-top:4px;}
|
| 25 |
+
.cats{background:#fff;border-bottom:1px solid var(--border);padding:0 40px;display:flex;overflow-x:auto;}
|
| 26 |
+
.cats a{padding:14px 20px;font-size:13px;font-weight:500;color:var(--sub);text-decoration:none;border-bottom:2px solid transparent;white-space:nowrap;}
|
|
|
|
|
|
|
| 27 |
.cats a.active,.cats a:hover{color:var(--accent);border-bottom-color:var(--accent);}
|
|
|
|
|
|
|
| 28 |
.section{padding:36px 40px;}
|
| 29 |
.sec-hd{display:flex;align-items:center;justify-content:space-between;margin-bottom:20px;}
|
| 30 |
+
.sec-hd h2{font-size:18px;font-weight:800;}.sec-hd a{font-size:12px;color:var(--sub);text-decoration:none;}
|
|
|
|
|
|
|
|
|
|
| 31 |
.products{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:16px;}
|
| 32 |
.card{background:#fff;border-radius:12px;overflow:hidden;border:1px solid var(--border);transition:.2s;cursor:pointer;}
|
| 33 |
.card:hover{transform:translateY(-3px);box-shadow:0 8px 24px rgba(0,0,0,.1);}
|
| 34 |
+
.card-img{width:100%;aspect-ratio:1;display:flex;align-items:center;justify-content:center;font-size:48px;background:#f0f0f0;}
|
| 35 |
.card-body{padding:12px;}
|
| 36 |
.card-badge{display:inline-block;padding:2px 7px;background:rgba(230,57,70,.1);color:var(--accent);border-radius:4px;font-size:10px;font-weight:700;margin-bottom:6px;}
|
| 37 |
.card-name{font-size:13px;font-weight:600;line-height:1.4;margin-bottom:4px;}
|
| 38 |
.card-sub{font-size:11px;color:var(--sub);margin-bottom:8px;}
|
| 39 |
+
.card-price{font-size:16px;font-weight:900;}.card-price s{font-size:12px;color:var(--sub);font-weight:400;margin-right:4px;}.card-price em{font-size:12px;color:var(--accent);font-style:normal;margin-left:4px;}
|
|
|
|
|
|
|
|
|
|
|
|
|
| 40 |
.banner-row{display:grid;grid-template-columns:1fr 1fr;gap:16px;padding:0 40px 36px;}
|
| 41 |
.banner{border-radius:14px;padding:28px;color:#fff;position:relative;overflow:hidden;min-height:120px;display:flex;flex-direction:column;justify-content:flex-end;}
|
| 42 |
+
.banner-a{background:linear-gradient(135deg,#0f3460,#16213e);}.banner-b{background:linear-gradient(135deg,#1b4332,#2d6a4f);}
|
| 43 |
+
.banner h3{font-size:16px;font-weight:800;}.banner p{font-size:11px;opacity:.7;margin-top:4px;}
|
|
|
|
|
|
|
| 44 |
.banner-ic{position:absolute;right:20px;top:50%;transform:translateY(-50%);font-size:56px;opacity:.3;}
|
|
|
|
|
|
|
| 45 |
footer{background:#111;color:rgba(255,255,255,.4);text-align:center;padding:24px;font-size:12px;}
|
| 46 |
|
| 47 |
+
/* SiteAgent ํจ๋ */
|
| 48 |
+
#sa-fab{position:fixed;bottom:32px;right:32px;z-index:99999;width:64px;height:64px;border-radius:50%;background:linear-gradient(145deg,#5856D6,#007AFF);box-shadow:0 8px 32px rgba(88,86,214,.5);border:none;cursor:pointer;font-size:28px;display:flex;align-items:center;justify-content:center;transition:.2s;}
|
| 49 |
+
#sa-fab:hover{transform:scale(1.1);}
|
| 50 |
+
#sa-panel{position:fixed;bottom:110px;right:24px;z-index:99999;width:340px;max-height:78vh;background:#fff;border-radius:20px;box-shadow:0 24px 80px rgba(0,0,0,.2);display:none;flex-direction:column;overflow:hidden;}
|
| 51 |
+
#sa-panel.open{display:flex;}
|
| 52 |
+
.sa-hdr{padding:14px 16px;background:linear-gradient(135deg,#5856D6,#007AFF);color:#fff;display:flex;align-items:center;justify-content:space-between;flex-shrink:0;}
|
| 53 |
+
.sa-hdr span{font-size:14px;font-weight:800;}
|
| 54 |
+
.sa-close{border:none;background:none;color:rgba(255,255,255,.8);font-size:22px;cursor:pointer;line-height:1;padding:0;}
|
| 55 |
+
.sa-tabs{display:flex;border-bottom:1px solid rgba(0,0,0,.06);flex-shrink:0;background:#fff;}
|
| 56 |
+
.sa-tab{flex:1;padding:10px 0;font-size:10px;font-weight:600;color:#8e8e93;border:none;background:none;cursor:pointer;border-bottom:2px solid transparent;}
|
| 57 |
+
.sa-tab.active{color:#5856D6;border-bottom-color:#5856D6;}
|
| 58 |
+
.sa-body{padding:14px;overflow-y:auto;flex:1;}
|
| 59 |
+
.sa-sel{width:100%;padding:7px 10px;border:1px solid rgba(0,0,0,.1);border-radius:8px;font-size:11px;margin-bottom:8px;font-family:inherit;background:#fff;}
|
| 60 |
+
.sa-inp{width:100%;padding:8px 10px;border:1px solid rgba(0,0,0,.1);border-radius:8px;font-size:11px;font-family:inherit;margin-bottom:8px;}
|
| 61 |
+
.sa-ta{width:100%;padding:8px 10px;border:1px solid rgba(0,0,0,.1);border-radius:8px;font-size:11px;font-family:inherit;resize:none;margin-bottom:8px;}
|
| 62 |
+
.sa-btn{width:100%;padding:11px;border:none;border-radius:10px;font-size:12px;font-weight:700;cursor:pointer;color:#fff;margin-bottom:8px;}
|
| 63 |
+
.sa-result{border:1px solid rgba(0,0,0,.08);border-radius:10px;padding:10px;font-size:11px;line-height:1.7;white-space:pre-wrap;color:#111;background:#fafafa;margin-bottom:8px;}
|
| 64 |
+
.sa-copy{padding:6px 14px;border:1px solid rgba(88,86,214,.3);border-radius:8px;font-size:10px;font-weight:700;color:#5856D6;background:rgba(88,86,214,.05);cursor:pointer;}
|
| 65 |
+
.sa-spin{text-align:center;padding:20px;}
|
| 66 |
+
.sa-dot{display:inline-flex;gap:4px;}
|
| 67 |
+
.sa-dot i{width:7px;height:7px;border-radius:50%;background:#5856D6;display:inline-block;animation:sd .8s ease-in-out infinite;}
|
| 68 |
+
.sa-dot i:nth-child(2){animation-delay:.15s;}.sa-dot i:nth-child(3){animation-delay:.3s;}
|
| 69 |
+
@keyframes sd{0%,80%,100%{transform:scale(.6);opacity:.4}40%{transform:scale(1);opacity:1}}
|
| 70 |
+
.sa-store{background:rgba(245,158,11,.05);border:1px solid rgba(245,158,11,.2);border-radius:8px;padding:10px;margin-bottom:8px;}
|
| 71 |
+
.sa-store-lbl{font-size:9px;font-weight:700;color:#92400e;margin-bottom:6px;}
|
| 72 |
+
.sa-shop-item{display:flex;gap:8px;padding:8px 0;border-bottom:1px solid rgba(0,0,0,.05);}
|
| 73 |
+
.sa-shop-img{width:48px;height:48px;border-radius:6px;object-fit:cover;flex-shrink:0;background:#eee;}
|
| 74 |
+
.sa-shop-info{flex:1;min-width:0;}
|
| 75 |
+
.sa-shop-name{font-size:11px;font-weight:600;line-height:1.3;margin-bottom:2px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;}
|
| 76 |
+
.sa-shop-price{font-size:12px;font-weight:800;color:#e63946;}
|
| 77 |
+
.sa-shop-mall{font-size:10px;color:#888;}
|
| 78 |
+
.sa-shop-link{flex-shrink:0;padding:5px 8px;background:#5856D6;color:#fff;border-radius:6px;font-size:9px;font-weight:700;text-decoration:none;align-self:flex-start;margin-top:4px;}
|
| 79 |
+
.sa-notice{position:fixed;top:68px;right:16px;background:#fff;border:2px solid #e63946;border-radius:12px;padding:14px 36px 14px 16px;font-size:11px;line-height:1.7;box-shadow:0 8px 32px rgba(0,0,0,.15);z-index:99998;max-width:280px;}
|
| 80 |
+
.sa-notice strong{display:block;font-size:13px;font-weight:800;color:#e63946;margin-bottom:6px;}
|
| 81 |
+
.sa-notice code{display:block;background:#f5f4f0;border-radius:6px;padding:8px;font-size:10px;color:#333;margin-top:8px;word-break:break-all;}
|
| 82 |
+
.sa-nclose{position:absolute;top:8px;right:10px;border:none;background:none;font-size:16px;cursor:pointer;color:#aaa;}
|
| 83 |
</style>
|
| 84 |
</head>
|
| 85 |
<body>
|
| 86 |
|
|
|
|
| 87 |
<nav>
|
| 88 |
<div class="nav-logo">Market<span>Go</span></div>
|
| 89 |
+
<div class="nav-links"><a href="#">ํ</a><a href="#">๋ฒ ์คํธ</a><a href="#">์ ์ํ</a><a href="#">ํน๊ฐ</a></div>
|
| 90 |
+
<div class="nav-right"><button>๐</button><button>๐</button><button>๐ค</button></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 91 |
</nav>
|
| 92 |
|
| 93 |
+
<div class="sa-notice" id="sa-notice">
|
| 94 |
+
<button class="sa-nclose" onclick="document.getElementById('sa-notice').remove()">ร</button>
|
|
|
|
| 95 |
<strong>๐ SiteAgent ํ ์ค ์ฝ์
๋ฐ๋ชจ</strong>
|
| 96 |
+
์ด ์ผํ๋ชฐ์ ์คํฌ๋ฆฝํธ <b>๋จ ํ ์ค</b>๋ก<br>SiteAgent AI๊ฐ ์๋ํฉ๋๋ค.<br>
|
| 97 |
์ฐ์ธก ํ๋จ ๐ค ๋ฒํผ์ ํด๋ฆญํ์ธ์.
|
| 98 |
+
<code><script src="https://ginigen-ai-siteagent.hf.space/sa-widget.js"></script></code>
|
| 99 |
</div>
|
| 100 |
|
|
|
|
| 101 |
<div class="hero">
|
| 102 |
<div class="hero-text">
|
| 103 |
<h1>์ค๋์ <em>ํน๊ฐ</em><br>๋์น์ง ๋ง์ธ์</h1>
|
| 104 |
<p>๋งค์ผ ์ค์ 10์, ์ดํน๊ฐ ์ํ์ ํ์ ์๋ ๊ณต๊ฐํฉ๋๋ค.<br>AI๊ฐ ์ต์ ๊ฐ๋ฅผ ์ค์๊ฐ์ผ๋ก ๋ถ์ํด ๋๋ฆฝ๋๋ค.</p>
|
| 105 |
<a href="#" class="hero-btn">ํน๊ฐ ๋ณด๋ฌ๊ฐ๊ธฐ โ</a>
|
| 106 |
</div>
|
| 107 |
+
<div class="hero-badge"><div class="num">73%</div><div class="lbl">์ค๋์ ์ต๋ ํ ์ธ์จ</div></div>
|
|
|
|
|
|
|
|
|
|
| 108 |
</div>
|
| 109 |
|
|
|
|
| 110 |
<div class="cats">
|
| 111 |
+
<a href="#" class="active">์ ์ฒด</a><a href="#">๊ฐ์ ยท๋์งํธ</a><a href="#">ํจ์
ยท์๋ฅ</a><a href="#">์ํยท๊ฑด๊ฐ</a><a href="#">๋ทฐํฐยท์ํ</a><a href="#">์คํฌ์ธ ยท๋ ์ </a>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 112 |
</div>
|
| 113 |
|
|
|
|
| 114 |
<div class="section">
|
| 115 |
+
<div class="sec-hd"><h2>๐ฅ ์ค๋์ ์ธ๊ธฐ์ํ</h2><a href="#">๋๋ณด๊ธฐ โ</a></div>
|
|
|
|
|
|
|
|
|
|
| 116 |
<div class="products">
|
| 117 |
+
<div class="card"><div class="card-img">๐ป</div><div class="card-body"><div class="card-badge">ํน๊ฐ</div><div class="card-name">์ผ์ฑ ๊ฐค๋ญ์๋ถ4 Pro</div><div class="card-sub">16์ธ์น ยท 32GB</div><div class="card-price"><s>2,890,000์</s>1,990,000์<em>31%โ</em></div></div></div>
|
| 118 |
+
<div class="card"><div class="card-img">๐ฑ</div><div class="card-body"><div class="card-badge">์ธ๊ธฐ</div><div class="card-name">์์ดํฐ 16 Pro 256GB</div><div class="card-sub">์์ฐํฐํ๋ ยท ์๊ธ์ </div><div class="card-price"><s>1,750,000์</s>1,490,000์<em>15%โ</em></div></div></div>
|
| 119 |
+
<div class="card"><div class="card-img">๐ง</div><div class="card-body"><div class="card-badge">ํน๊ฐ</div><div class="card-name">์๋ WH-1000XM6</div><div class="card-sub">๋
ธ์ด์ฆ์บ์ฌ๋ง ยท ๋ฌด์ </div><div class="card-price"><s>459,000์</s>289,000์<em>37%โ</em></div></div></div>
|
| 120 |
+
<div class="card"><div class="card-img">โ</div><div class="card-body"><div class="card-badge">์ ์</div><div class="card-name">๊ฐค๋ญ์ ์์น7 ์ธํธ๋ผ</div><div class="card-sub">47mm ยท ํฐํ๋</div><div class="card-price"><s>799,000์</s>629,000์<em>21%โ</em></div></div></div>
|
| 121 |
+
<div class="card"><div class="card-img">๐ฅ๏ธ</div><div class="card-body"><div class="card-badge">ํน๊ฐ</div><div class="card-name">LG ์ธํธ๋ผํ์ธ OLED 27์ธ์น</div><div class="card-sub">4K ยท 120Hz</div><div class="card-price"><s>1,290,000์</s>890,000์<em>31%โ</em></div></div></div>
|
| 122 |
+
<div class="card"><div class="card-img">๐ฎ</div><div class="card-body"><div class="card-badge">ํ์ </div><div class="card-name">PS5 ์ฌ๋ฆผ ๋์คํฌ ์๋์
</div><div class="card-sub">+๋์ผ์ผ์ค ์ปจํธ๋กค๋ฌ</div><div class="card-price"><s>729,000์</s>589,000์<em>19%โ</em></div></div></div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 123 |
</div>
|
| 124 |
</div>
|
| 125 |
|
|
|
|
| 126 |
<div class="banner-row">
|
| 127 |
+
<div class="banner banner-a"><div class="banner-ic">๐</div><h3>๋ก์ผ๋ฐฐ์ก ์ค๋ ์ฃผ๋ฌธ โ ๋ด์ผ ๋์ฐฉ</h3><p>์คํ 3์ ์ด์ ์ฃผ๋ฌธ ์ ์ต์ผ ๋ฐฐ์ก ๋ณด์ฅ</p></div>
|
| 128 |
+
<div class="banner banner-b"><div class="banner-ic">๐ฟ</div><h3>์นํ๊ฒฝ ํจํค์ง ์ ํ ์๋ฃ</h3><p>100% ์ฌํ์ฉ ๊ฐ๋ฅํ ํฌ์ฅ์ฌ ์ฌ์ฉ</p></div>
|
| 129 |
+
</div>
|
| 130 |
+
|
| 131 |
+
<footer>ยฉ 2026 MarketGo (๊ฐ์ ๋ฐ๋ชจ ์ฌ์ดํธ) ยท SiteAgent ํ ์ค ์ฝ์
๋ฐ๋ชจ์ฉ</footer>
|
| 132 |
+
|
| 133 |
+
<!-- SiteAgent FAB -->
|
| 134 |
+
<button id="sa-fab" onclick="saToggle()">๐ค</button>
|
| 135 |
+
|
| 136 |
+
<!-- SiteAgent ํจ๋ -->
|
| 137 |
+
<div id="sa-panel">
|
| 138 |
+
<div class="sa-hdr">
|
| 139 |
+
<span>๐ค SiteAgent AI</span>
|
| 140 |
+
<button class="sa-close" onclick="saToggle()">ร</button>
|
| 141 |
</div>
|
| 142 |
+
<div class="sa-tabs">
|
| 143 |
+
<button class="sa-tab active" onclick="saTab(0,this)">โ๏ธ ๊ธ์ฐ๊ธฐ</button>
|
| 144 |
+
<button class="sa-tab" onclick="saTab(1,this)">โญ ๋ฆฌ๋ทฐ ๋ต๋ณ</button>
|
| 145 |
+
<button class="sa-tab" onclick="saTab(2,this)">๐ ์ผํ</button>
|
| 146 |
</div>
|
|
|
|
| 147 |
|
| 148 |
+
<!-- ๊ธ์ฐ๊ธฐ -->
|
| 149 |
+
<div class="sa-body" id="sa-t0">
|
| 150 |
+
<select class="sa-sel" id="wr-style">
|
| 151 |
+
<option value="๋ธ๋ก๊ทธ">๐ ๋ธ๋ก๊ทธ</option>
|
| 152 |
+
<option value="SNS">๐ฑ SNS</option>
|
| 153 |
+
<option value="๋ณด๋์๋ฃ">๐ฐ ๋ณด๋์๋ฃ</option>
|
| 154 |
+
<option value="๊ด๊ณ ์นดํผ">๐ข ๊ด๊ณ ์นดํผ</option>
|
| 155 |
+
<option value="์ ํ๋ธ๋๋ณธ">๐ฌ ์ ํ๋ธ๋๋ณธ</option>
|
| 156 |
+
</select>
|
| 157 |
+
<select class="sa-sel" id="wr-tone">
|
| 158 |
+
<option value="์ ๋ฌธ์ ">๐ฉ ์ ๋ฌธ์ </option>
|
| 159 |
+
<option value="์น๊ทผํ">๐ ์น๊ทผํ</option>
|
| 160 |
+
<option value="์ ๋จธ๋ฌ์ค">๐ ์ ๋จธ๋ฌ์ค</option>
|
| 161 |
+
</select>
|
| 162 |
+
<input class="sa-inp" id="wr-topic" placeholder="โ๏ธ ์ฃผ์ (์: AI๊ฐ ๋ฐ๊ฟ ๋ฏธ๋ ๊ต์ก)">
|
| 163 |
+
<button class="sa-btn" style="background:linear-gradient(135deg,#5856D6,#0d9488);" onclick="doWrite()">โ๏ธ ๊ธ ์์ฑํ๊ธฐ</button>
|
| 164 |
+
<div id="wr-spin" class="sa-spin" style="display:none"><div class="sa-dot"><i></i><i></i><i></i></div><div style="font-size:10px;color:#5856D6;margin-top:6px;">์์ฑ ์ค...</div></div>
|
| 165 |
+
<div id="wr-result" class="sa-result" style="display:none"></div>
|
| 166 |
+
<button id="wr-copy" class="sa-copy" style="display:none" onclick="saCopy('wr-result','wr-copy')">๐ ๋ณต์ฌ</button>
|
| 167 |
+
</div>
|
| 168 |
|
| 169 |
+
<!-- ๋ฆฌ๋ทฐ ๋ต๋ณ -->
|
| 170 |
+
<div class="sa-body" id="sa-t1" style="display:none">
|
| 171 |
+
<div class="sa-store">
|
| 172 |
+
<div class="sa-store-lbl">๐ช ๊ฐ๊ฒ ์ ๋ณด (์๋ ์ ์ฅ)</div>
|
| 173 |
+
<input class="sa-inp" id="rv-name" placeholder="๊ฐ๊ฒ๋ช
" style="margin-bottom:4px">
|
| 174 |
+
<input class="sa-inp" id="rv-type" placeholder="์
์ข
(์: ํ์, ์นํจ)" style="margin-bottom:4px">
|
| 175 |
+
<input class="sa-inp" id="rv-menu" placeholder="๋ํ ๋ฉ๋ด" style="margin-bottom:4px">
|
| 176 |
+
<input class="sa-inp" id="rv-str" placeholder="๊ฐ์ " style="margin-bottom:0">
|
| 177 |
+
</div>
|
| 178 |
+
<textarea class="sa-ta" id="rv-text" rows="4" placeholder="๊ณ ๊ฐ ๋ฆฌ๋ทฐ๋ฅผ ๋ถ์ฌ๋ฃ์ผ์ธ์..."></textarea>
|
| 179 |
+
<button class="sa-btn" style="background:linear-gradient(135deg,#f59e0b,#ef4444);" onclick="doReview()">โญ ๋ต๋ณ ์์ฑํ๊ธฐ</button>
|
| 180 |
+
<div id="rv-spin" class="sa-spin" style="display:none"><div class="sa-dot"><i></i><i></i><i></i></div><div style="font-size:10px;color:#f59e0b;margin-top:6px;">๋ถ์ ์ค...</div></div>
|
| 181 |
+
<div id="rv-result" class="sa-result" style="display:none"></div>
|
| 182 |
+
<button id="rv-copy" class="sa-copy" style="display:none" onclick="saCopy('rv-result','rv-copy')">๐ ๋ณต์ฌ</button>
|
| 183 |
+
</div>
|
| 184 |
+
|
| 185 |
+
<!-- ์ผํ -->
|
| 186 |
+
<div class="sa-body" id="sa-t2" style="display:none">
|
| 187 |
+
<input class="sa-inp" id="sh-q" placeholder="๐ ๊ฒ์์ด (์: ์์ดํจ๋ ํ๋ก)">
|
| 188 |
+
<button class="sa-btn" style="background:linear-gradient(135deg,#f59e0b,#f97316);" onclick="doShop()">๐ ๊ฒ์ํ๊ธฐ</button>
|
| 189 |
+
<div id="sh-spin" class="sa-spin" style="display:none"><div class="sa-dot"><i></i><i></i><i></i></div><div style="font-size:10px;color:#f59e0b;margin-top:6px;">๊ฒ์ ์ค...</div></div>
|
| 190 |
+
<div id="sh-result"></div>
|
| 191 |
</div>
|
| 192 |
</div>
|
| 193 |
+
|
| 194 |
<script>
|
| 195 |
+
var SA = 'https://ginigen-ai-siteagent.hf.space';
|
| 196 |
+
|
| 197 |
+
function saToggle(){
|
| 198 |
+
var p = document.getElementById('sa-panel');
|
| 199 |
+
var open = p.classList.toggle('open');
|
| 200 |
+
if(open){
|
| 201 |
+
try{
|
| 202 |
+
var s = JSON.parse(localStorage.getItem('__sa_rv_store')||'{}');
|
| 203 |
+
if(s.store_name) document.getElementById('rv-name').value = s.store_name;
|
| 204 |
+
if(s.store_type) document.getElementById('rv-type').value = s.store_type;
|
| 205 |
+
if(s.menu) document.getElementById('rv-menu').value = s.menu;
|
| 206 |
+
if(s.strengths) document.getElementById('rv-str').value = s.strengths;
|
| 207 |
+
}catch(e){}
|
| 208 |
+
}
|
| 209 |
+
}
|
| 210 |
+
|
| 211 |
+
function saTab(n, el){
|
| 212 |
+
for(var i=0;i<3;i++){
|
| 213 |
+
document.getElementById('sa-t'+i).style.display = i===n?'block':'none';
|
| 214 |
}
|
| 215 |
+
document.querySelectorAll('.sa-tab').forEach(function(t,i){
|
| 216 |
+
t.classList.toggle('active', i===n);
|
| 217 |
+
});
|
| 218 |
+
}
|
| 219 |
+
|
| 220 |
+
function saCopy(rid, bid){
|
| 221 |
+
var txt = document.getElementById(rid).textContent;
|
| 222 |
+
navigator.clipboard.writeText(txt).then(function(){
|
| 223 |
+
var b = document.getElementById(bid);
|
| 224 |
+
b.textContent = 'โ
๋ณต์ฌ๋จ';
|
| 225 |
+
setTimeout(function(){ b.textContent = '๐ ๋ณต์ฌ'; }, 1500);
|
| 226 |
+
});
|
| 227 |
+
}
|
| 228 |
+
|
| 229 |
+
function doWrite(){
|
| 230 |
+
var topic = document.getElementById('wr-topic').value.trim();
|
| 231 |
+
if(!topic){ alert('์ฃผ์ ๋ฅผ ์
๋ ฅํ์ธ์'); return; }
|
| 232 |
+
var style = document.getElementById('wr-style').value;
|
| 233 |
+
var tone = document.getElementById('wr-tone').value;
|
| 234 |
+
document.getElementById('wr-spin').style.display='block';
|
| 235 |
+
document.getElementById('wr-result').style.display='none';
|
| 236 |
+
document.getElementById('wr-copy').style.display='none';
|
| 237 |
+
fetch(SA+'/api/writer',{method:'POST',headers:{'Content-Type':'application/json'},
|
| 238 |
+
body:JSON.stringify({style:style,tone:tone,topic:topic,context:''}),mode:'cors'
|
| 239 |
+
}).then(function(r){return r.json();}).then(function(d){
|
| 240 |
+
document.getElementById('wr-spin').style.display='none';
|
| 241 |
+
if(!d.ok){alert(d.error||'์ค๋ฅ');return;}
|
| 242 |
+
document.getElementById('wr-result').textContent=d.content;
|
| 243 |
+
document.getElementById('wr-result').style.display='block';
|
| 244 |
+
document.getElementById('wr-copy').style.display='inline-block';
|
| 245 |
+
}).catch(function(e){document.getElementById('wr-spin').style.display='none';alert('์ค๋ฅ: '+e.message);});
|
| 246 |
+
}
|
| 247 |
+
|
| 248 |
+
function doReview(){
|
| 249 |
+
var txt = document.getElementById('rv-text').value.trim();
|
| 250 |
+
if(!txt){alert('๋ฆฌ๋ทฐ ๋ด์ฉ์ ์
๋ ฅํ์ธ์');return;}
|
| 251 |
+
var sd={store_name:document.getElementById('rv-name').value.trim(),
|
| 252 |
+
store_type:document.getElementById('rv-type').value.trim(),
|
| 253 |
+
menu:document.getElementById('rv-menu').value.trim(),
|
| 254 |
+
strengths:document.getElementById('rv-str').value.trim()};
|
| 255 |
+
try{localStorage.setItem('__sa_rv_store',JSON.stringify(sd));}catch(e){}
|
| 256 |
+
document.getElementById('rv-spin').style.display='block';
|
| 257 |
+
document.getElementById('rv-result').style.display='none';
|
| 258 |
+
document.getElementById('rv-copy').style.display='none';
|
| 259 |
+
fetch(SA+'/api/review',{method:'POST',headers:{'Content-Type':'application/json'},
|
| 260 |
+
body:JSON.stringify({review_text:txt,store_name:sd.store_name,store_type:sd.store_type,
|
| 261 |
+
menu:sd.menu,strengths:sd.strengths,reply_style:'๊ณต์ํ๊ณ ๋ฐ๋ปํ๊ฒ'}),mode:'cors'
|
| 262 |
+
}).then(function(r){return r.json();}).then(function(d){
|
| 263 |
+
document.getElementById('rv-spin').style.display='none';
|
| 264 |
+
if(!d.ok){alert(d.error||'์ค๋ฅ');return;}
|
| 265 |
+
document.getElementById('rv-result').textContent=d.reply;
|
| 266 |
+
document.getElementById('rv-result').style.display='block';
|
| 267 |
+
document.getElementById('rv-copy').style.display='inline-block';
|
| 268 |
+
}).catch(function(e){document.getElementById('rv-spin').style.display='none';alert('์ค๋ฅ: '+e.message);});
|
| 269 |
+
}
|
| 270 |
+
|
| 271 |
+
function doShop(){
|
| 272 |
+
var q = document.getElementById('sh-q').value.trim();
|
| 273 |
+
if(!q){alert('๊ฒ์์ด๋ฅผ ์
๋ ฅํ์ธ์');return;}
|
| 274 |
+
document.getElementById('sh-spin').style.display='block';
|
| 275 |
+
document.getElementById('sh-result').innerHTML='';
|
| 276 |
+
fetch(SA+'/api/shopping',{method:'POST',headers:{'Content-Type':'application/json'},
|
| 277 |
+
body:JSON.stringify({query:q,sort:'sim'}),mode:'cors'
|
| 278 |
+
}).then(function(r){return r.json();}).then(function(d){
|
| 279 |
+
document.getElementById('sh-spin').style.display='none';
|
| 280 |
+
if(!d.ok){document.getElementById('sh-result').innerHTML='<p style="color:#e11d48;font-size:11px;">'+d.error+'</p>';return;}
|
| 281 |
+
var html='';
|
| 282 |
+
(d.items||[]).slice(0,6).forEach(function(it){
|
| 283 |
+
html+='<div class="sa-shop-item">'
|
| 284 |
+
+'<img class="sa-shop-img" src="'+it.image+'" onerror="this.style.background=\'#eee\';this.src=\'\'">'
|
| 285 |
+
+'<div class="sa-shop-info">'
|
| 286 |
+
+'<div class="sa-shop-name">'+it.title+'</div>'
|
| 287 |
+
+'<div class="sa-shop-price">'+it.price.toLocaleString()+'์</div>'
|
| 288 |
+
+'<div class="sa-shop-mall">'+it.mall+'</div>'
|
| 289 |
+
+'</div>'
|
| 290 |
+
+'<a class="sa-shop-link" href="'+it.link+'" target="_blank">๊ตฌ๋งค</a>'
|
| 291 |
+
+'</div>';
|
| 292 |
+
});
|
| 293 |
+
document.getElementById('sh-result').innerHTML=html||'<p style="font-size:11px;color:#888;padding:10px 0;">๊ฒฐ๊ณผ ์์</p>';
|
| 294 |
+
}).catch(function(e){document.getElementById('sh-spin').style.display='none';alert('์ค๋ฅ: '+e.message);});
|
| 295 |
+
}
|
| 296 |
</script>
|
| 297 |
+
|
| 298 |
</body>
|
| 299 |
</html>
|